Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Round prices up to nearest 5 after conversion


Recommended Posts

Hi there,


I am needing for a custom currency conversion to round the USD prices up to the nearest 5$ to avoid prices being displayed at silly prices such as $263.


I am trying to convert to an int and round the following line : $curr->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id']));


( as for some reason the price is displayed as a string, im guessing to include the currency sign)


However not having much luck.


Does anybody know where the root conversion takes place as it might be easier for me to round() or ceil() from there when it is a raw integer


Or any other ideas of how I can round the conversion?


Thanks for any help


Rhys Thomas

Link to comment
Share on other sites


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

  • Create New...