VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: windgate on January 30, 2020, 20:01:11 PM

Title: Stop rounding up price
Post by: windgate on January 30, 2020, 20:01:11 PM
My product is priced at $199.95, but it is getting rounded up in the cart to $200. I have tried "Round on display" set to on and off with no difference. I have checked currency (decimals set to 2), country, etc. but no luck. The price shows properly on the product page... but in the cart it is $200.
This is a virtual product so shipping is not needed.
The VM files have NOT been hacked and recently updated to 3.6.10. I have gone through every window and every setting I can without coming up with an answer.
Also, I have been using VM from version 1.

Any help you offer would be greatly appreciated.
JPL

Joomla 3.9.15, PHP 7.2,  VM 3.6.10
Title: Re: Stop rounding up price
Post by: GJC Web Design on January 30, 2020, 20:30:34 PM
Use the Rappenrundung for Swiss CHF - off ?
all price rounding on -1 ?

vm admin->config->config->pricing tab
Title: Re: Stop rounding up price
Post by: MSR_Web_Guy on March 04, 2020, 20:13:09 PM
Also check the Shopper Groups, in case you turned on Show Following Prices and set something differently there?
Title: Re: Stop rounding up price
Post by: lostmail on April 09, 2020, 18:26:36 PM
Hm.
Strange in VirtueMart 3.6.11 10289:

I can not modify the final price anymore....up till no I inserted the final price - checking "Calculate the Cost price" - and the the system calculated the cost price (w/o tax).
But after update to VirtueMart 3.6.11 10289 i insert the final price i.e. 26.90 and after saving the final price is now 26.91 !!

Is there a change in new version ?

All  my prices in shop are wrong rounded now....

UPDATE:
I activated the point "Round only display" in price configuration and it seems that the prices are now correct like before....

But another thing:
Is it possible to set the "Calculate the Cost price" activated by default as i always insert the Final Price and let the system calculate the cost price.

Title: Re: Stop rounding up price
Post by: GJC Web Design on April 09, 2020, 20:04:10 PM
over ride

administrator\components\com_virtuemart\views\product\tmpl\product_edit_price.php

change ~ line 174

from
echo '<input type="checkbox" name="mprices[use_desired_price][' . $this->priceCounter . ']" value="1" />'

to

echo '<input type="checkbox" name="mprices[use_desired_price][' . $this->priceCounter . ']" value="1" checked />'
Title: Re: Stop rounding up price
Post by: lostmail on April 10, 2020, 11:13:28 AM
I found the original file and modified it this way - but I think it will be overwritten with new updates.

Which is the override path for these admin files ?
Title: Re: Stop rounding up price
Post by: GJC Web Design on April 10, 2020, 11:56:31 AM
you really need to improve your googling skills!

it is over-ride-able  in the same way as any Joomla based tmpl file is..

\administrator\templates\isis\html\com_virtuemart\product\
Title: Re: Stop rounding up price
Post by: lostmail on April 10, 2020, 13:18:08 PM
Hm - tried this but it did not work - so I thought it was wrong....will try it again ;-)
ThanX