Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

able2buy - display monthly price


kunal247

Recommended Posts

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

  • 2 weeks later...
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

  • 6 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...