News:

Looking for documentation? Take a look on our wiki

Main Menu

Price has to many 0s

Started by origomedia, August 02, 2014, 14:14:51 PM

Previous topic - Next topic

origomedia

I have a problem with my prices displaying too many 0's. http://www.cellar2door.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=191&virtuemart_category_id=46&Itemid=623

The price should be Rp 300,000 but is showing as Rp 300,000.00

I have tried all the solutions in the forum but it doesn't matter how I change the settings in the decimal section it stays the same. Any pointers would be appreciated.




Peter Pillen

When making adjustments, it is also important to disable and clear all cache. If you change the decimal settings (virtuemart>configuration>configuration> tab prices) and also change the price of a product as a test. Does only the price change? Then it could be coded in the template you are using that there always should be two decimals.

origomedia

Thanks Peter,

Yes have tried a few different things. Even when I put the prices in the product pages when i save them it automatically adds more 0's.

Have attached the settings I am using in case that helps you see what I might be doing wrong.

[attachment cleanup by admin]

Peter Pillen

You forgot the virtuemart>configuration>configuration> tab prices I mentioned earlier (see attachment). There you can set the general look of the prices. So the currency as well as the price config must be set to zero decimals

[attachment cleanup by admin]

origomedia

Thanks Peter that worked a treat.

However, just noticed that in the shopping cart it still has the decimal points and extra 0's

Peter Pillen

Normally that setting should also affect the shopping cart to have no decimals.