Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Running Math on Price Variables


Recommended Posts

Hello, I am trying to run some mathematical functions on products with special prices.

On both the orignal and special price values.


I tried this...

$currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']))   // for the original price

$currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) // special price

The variables return a value of 0, and so I am aware that they are not being called correctly.


$product_info['products_price'] // returns correct value in american currency only 
$new_price //correct value in american currency.


How the original price and specials price be called to be cross currency compatible, and also be able to have mathmetical functions run?

Link to comment
Share on other sites


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

  • Create New...