[email protected] Posted August 5, 2008 Share Posted August 5, 2008 Hi , sorry my english .I don't want PRICE 0.000,00$ . I want 0.000$ . EX : I don't want 15 000,00$ , i want 15 000$ Can u help me edit source to delete double zero ( ,00 ) ThanksImage : www.aothuatonline.com/delete.jpg Link to comment Share on other sites More sharing options...
target_locked Posted August 6, 2008 Share Posted August 6, 2008 Hi, you want to use that for Vietnamese currency?You can do this way, but It only affect for category/sub cat view. The home page not affected !!!If any one know how to change for the home page, pls let us know. Thanks.How to change Currency number format for VND: ex: 2 055 570 d (zero numbers after decimal point instead of 2)(does not affect if product belong to home category???)In ../classes/Tools.php, search for: 'function displayPrice' (line 181)Below that, there are 4 casesFor ex if you want to use case 4 for Vietnam currency format:Search for: $ret = number_format($price, 2, '.', ',').' '.$c_sign;Replace with: $ret = number_format($price, 0, ',', ' ').' '.$c_sign;+ Also, change the name for display in admin CP:(optional)Open file \prestashop\adminttt\tabs\AdminCurrencies.phpSearch for: "$currency_formats = array("Search for: 4 => '0,000.00X',Replace with: 4 => '0 000 X ('.$this->l('as with Vietnam dong').')',After that go to Back office>>payment>>currency, select the currency you want then select the formatting to option 4. Link to comment Share on other sites More sharing options...
[email protected] Posted August 12, 2008 Author Share Posted August 12, 2008 hey Target_lockerVery very very thanks you I did it. Very Good. Thanks u again ... Link to comment Share on other sites More sharing options...
Damien Posted September 3, 2008 Share Posted September 3, 2008 I added format number 5, it's better than edit built-in fomates.You need too edit themes/prestashop/js/tools.jsIn function formatCurrency add new format or edit built-in.In function formatNumber last line need to looks like this:return abs_val_string + (deci_string > 0 ? virgule + deci_string : ''); Link to comment Share on other sites More sharing options...
ruilong Posted October 13, 2008 Share Posted October 13, 2008 How about something like this is .tpl files?{convertPrice|replace:".00":"" price=$product.price}I got some problems with pdf files when changing the core files, and even problems with order creations.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now