VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: origomedia on August 02, 2014, 14:14:51 PM

Title: Price has to many 0s
Post by: origomedia on August 02, 2014, 14:14:51 PM
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.



Title: Re: Price has to many 0s
Post by: Peter Pillen on August 02, 2014, 14:45:03 PM
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.
Title: Re: Price has to many 0s
Post by: origomedia on August 02, 2014, 17:35:58 PM
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]
Title: Re: Price has to many 0s
Post by: Peter Pillen on August 02, 2014, 17:55:44 PM
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]
Title: Re: Price has to many 0s
Post by: origomedia on August 02, 2014, 18:01:52 PM
Thanks Peter that worked a treat.

However, just noticed that in the shopping cart it still has the decimal points and extra 0's
Title: Re: Price has to many 0s
Post by: Peter Pillen on August 02, 2014, 18:21:02 PM
Normally that setting should also affect the shopping cart to have no decimals.