kunal247 Posted October 12, 2005 Share Posted October 12, 2005 I am looking to integrate the able2buy contribution on my website. At the same time I wanted to display montly cost to purchase an Item. eg: Amount - ?209 Monthly Cost - ?7.91 a month a bit like they have it working on this website - Click Here the java code that I have is: <script LANGUAGE=JavaScript> function runCalc(code,amount,rid,deposit) { var screenX=screen.width; var screenY=screen.height; var winWidth=440; var winHeight=320; var topX=(screenX/2) - (winWidth / 2); var topY=(screenY/2) - (winHeight / 2); newWin = window.open("","Wait","width="+winWidth+",height="+winHeight+", left="+topX+",top="+topY); newWin.location="http://uat.creditenabler.com/able2buy/webjsp/autocalc.jsp?cgid="+code+"&price="+amount+"&id="+rid+"&deposit="+deposit; } </SCRIPT> ***You require a valid credit scheme code(cgid) for your account, the value of credit you require and your retailer id (id). Can some one help me put this code into our product_info.php and also for it to display with product special offers on the home page. Appreciate any help in this matter. Regards, Kunal Link to comment Share on other sites More sharing options...
kunal247 Posted October 24, 2005 Author Share Posted October 24, 2005 I am looking to integrate the able2buy contribution on my website.At the same time I wanted to display montly cost to purchase an Item. eg: Amount - ?209 Monthly Cost - ?7.91 a month a bit like they have it working on this website - Click Here the java code that I have is: <script LANGUAGE=JavaScript> function runCalc(code,amount,rid,deposit) { var screenX=screen.width; var screenY=screen.height; var winWidth=440; var winHeight=320; var topX=(screenX/2) - (winWidth / 2); var topY=(screenY/2) - (winHeight / 2); newWin = window.open("","Wait","width="+winWidth+",height="+winHeight+", left="+topX+",top="+topY); newWin.location="http://uat.creditenabler.com/able2buy/webjsp/autocalc.jsp?cgid="+code+"&price="+amount+"&id="+rid+"&deposit="+deposit; } </SCRIPT> ***You require a valid credit scheme code(cgid) for your account, the value of credit you require and your retailer id (id). Can some one help me put this code into our product_info.php and also for it to display with product special offers on the home page. Appreciate any help in this matter. Regards, Kunal Just added the code to display the price which is fine but the value is being displayed as ?0 <td class="pageHeading" align="right" valign="top">Or <?php echo $products_price*0.03674; ?> per month</td> can some one help me display the correct value on screen on product_info.php Thanks in advance. Kunal Link to comment Share on other sites More sharing options...
Cyclone2007 Posted May 2, 2006 Share Posted May 2, 2006 Can i ask you where did you get the Able2Buy contribution? Thanks in Advance Shaun Link to comment Share on other sites More sharing options...
Cyclone2007 Posted May 2, 2006 Share Posted May 2, 2006 Sorry about this, i have just asked you about the Able2Buy, could you please tell me where did you get the contibution or did you make it yourself? Thanks Again Shaun Link to comment Share on other sites More sharing options...
kunal247 Posted May 8, 2006 Author Share Posted May 8, 2006 Sorry about this, i have just asked you about the Able2Buy, could you please tell me where did you get the contibution or did you make it yourself?Thanks Again Shaun Hi Shaun, Contribution is available from here - http://www.oscommerce.com/community/contributions,3089 Hope this helps. Kunal Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.