vivajj Posted February 22, 2010 Share Posted February 22, 2010 I have the problem about conversion of currency.Although I enable it to use four sorts of currency, conversion is not performed well.In a product page, a currency sign and a price are also changed correctly and are displayed.However, only a currency sign is changed in the page of a product list or a featured product.In this case, although a change of a decimal point is made correctly, it is a price in the default state.Although it was operating correctly altogether till several days before, I have noticed this problem recently.I cannot understand what has happened.I wish someone's advice.Thanks in advance. Link to comment Share on other sites More sharing options...
eileensiow Posted March 9, 2010 Share Posted March 9, 2010 I have the problem about conversion of currency.Although I enable it to use four sorts of currency, conversion is not performed well.In a product page, a currency sign and a price are also changed correctly and are displayed.However, only a currency sign is changed in the page of a product list or a featured product.In this case, although a change of a decimal point is made correctly, it is a price in the default state.Although it was operating correctly altogether till several days before, I have noticed this problem recently.I cannot understand what has happened.I wish someone's advice.Thanks in advance. I am having the same problem but nobody can seem to answer it. ANd my Update currencies rates appear to have parse error. My host told me to ask the developer to give an alternate solution.Can somebody help us! Link to comment Share on other sites More sharing options...
tomerg3 Posted March 9, 2010 Share Posted March 9, 2010 Can you post a URL with an example so we could see it ourselves? Link to comment Share on other sites More sharing options...
MrHieu Posted March 22, 2010 Share Posted March 22, 2010 I have the same problem with displaying the price in PRODUCT PAGE. I edited in classes/tools.php $ret = number_format($price, $c_decimals, ',', '.').$blank.$c_char; and chose the right display of the price.It works well, except for PRODUCT PAGE. The currency sign still stands before the number, like original display. May be I need to edit somewhere else to correct this ? Link to comment Share on other sites More sharing options...
rocky Posted March 22, 2010 Share Posted March 22, 2010 The reason for this is that the price on the product page is formatted using Javascript instead of PHP. You need to make the same change you made in classes/Tools.php to the formatCurrency function in js/tools.js in your theme's directory. In fact, there is a comment at the top of the displayPrice function that says "if you modified this function, don't forget to modify the Javascript function formatCurrency (in tools.js)". Link to comment Share on other sites More sharing options...
MrHieu Posted March 22, 2010 Share Posted March 22, 2010 Thank you so much Rocky. I kept looking for tools.js in classes/ (!!!), not in the theme folder. Now I get it right. 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