VM Salesprice is not calculated, displayed and used properly

Started by rnoppert, November 01, 2013, 10:53:08 AM

Previous topic - Next topic

rnoppert

Hi,

We have a shop that does not calculate the salesprice properly. If I enter a baseprice in the backend and press save, the salesprice is calculated, but rounded without any decimals, while I entered two decimals in the price configuration for all the prices. If I enter a salesprice with decimals, check the "calculate base price from salesprice" checkbox and press save again, the base price is calculated properly, but the sales price is displayed without decimals again.

Now the tricky part. If a visitor looks on the site, the salesprice for any product in the shop is displayed properly, but once you add the product in the shopping cart it is rounded again. How can I make sure the salesprice is always displayed (both backend and frontend) and used with two decimals?

We're using Joomla 2.5.14 and VM 2.0.20b, but I've tested the issue after updating the site to VM 2.0.24, which gave the same result. Salesprice is still not displayed properly.

Thanks in advance.

Regards,

RIchard.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

rnoppert

System information of the live site in Joomla reports PHP version 5.3.10-pl0-gentoo.
I've made a local copy of the website and using MAMP checked the issue with PHP version 5.4.10, but that gave me the same result.
I've attached a screenshot of an example product price from my local copy of the site. The final price shows € 30, but should actually be €29,50.
I've also atached a screenshot of the Virtuemart price configuration.

Regards,

Richard.

[attachment cleanup by admin]