View Single Post
  #8  
Old 09-20-2014, 01:20 AM
 
xtech xtech is offline
 

X-Adept
  
Join Date: Jun 2010
Posts: 605
 

Default Re: "Safe" remove decimals from prices

Quote:
Originally Posted by cherie
One option is to add another format to number_format in the config table of the database. Then select it in the Appearance settings.

Or if you just want to change that currency function then I would adjust the following line similar to the change you were wanting to make:

$result .= str_replace('$', $config['General']['currency_symbol'] , str_replace('x', $cf_value, $config['General']['currency_format']));


Can you please let me know how to do this on 4.6.1 Platinum?

To display prices without decimal part you will need to modify this "function smarty_function_currency" in the following script:

<xcart_dir>/include/templater/plugins/function.currency.php

is it so?
__________________
X-cart Platinum
4.6.1
Reboot template
Reply With Quote