News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Very bizzare bug in price visualization [video]

Started by paolo.tateo, August 01, 2013, 15:39:47 PM

Previous topic - Next topic

paolo.tateo

101 VETRINE - bindCommerce
VirtueMart Integration with eBay and other
http://www.bindcommerce.com

sadrem

p.s. Do not forget to change message icon to Solved.

paolo.tateo

101 VETRINE - bindCommerce
VirtueMart Integration with eBay and other
http://www.bindcommerce.com

sadrem

#3
You'r find the problem .
Some of Your rules doesn't work as expected.
Try to disable all of them and You will see there is no bug.

I also suggest You do not use "use generic calculation rule " in product definition. [comment by Milbo: You should "use generic calculation rule ", explanation below]
If You want vat to be applied choose it.

Regards
p.s. Do not forget to change message icon to Solved.

paolo.tateo

Thanks, but...

ok, the problem is caused by the rule "Vat tax per product", but this is a standard function of Virtuemart... and you can see my configuration

101 VETRINE - bindCommerce
VirtueMart Integration with eBay and other
http://www.bindcommerce.com

sadrem

Hi,
logic works fine.
for example product price is 1 euro , You have 21% tax = 1.21 euro works like expected

now round :  1.213 -> round (2 decimal after point) -> 1.21
                      1.216 -> round (2 decimal after point) -> 1.22

Tell want do You want to achieve. Give me example. I'll try to provide the solution
p.s. Do not forget to change message icon to Solved.

paolo.tateo

As you can see from the video that I captured, the problem is the fact that if the rounding is not perfect, VirtueMart shows the price, put a bar on it, and then displays it again as it was discounted

Thanks
101 VETRINE - bindCommerce
VirtueMart Integration with eBay and other
http://www.bindcommerce.com

Milbo

Paolo the rounding is "perfect". But saying that is already showing a misunderstanding of rounding. Rounding is NOT exact => never perfect.
Please read here http://forum.virtuemart.net/index.php?topic=108809.0

And you should use the generic rules, of course. As long you have only one Vat you can configure it for all your products within 5 minutes. But not if you use the overwrite. Selecting directly a rule in a product is an override. As long you have only one tax per product, you can use the overwrite.
Usually I suggest for 2 different VAt in the shop to create unpublished categories as pure calculation categories. You can then use even different methods for B2C and B2B.

You configured a lot of shoppergroups in your rule. When you use the overwrite, all of this anyway not checked. If you use the calculation rule overwrite stuff like the euvatid plugin which is based on shoppergroups wont work. So avoid to overwrite your product calculation rules (same for discounts btw).

If you want that it works for all shoppergroups, just leave it empty.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

paolo.tateo

Thanks Milbo,
I understand your explanation, but (perhaps) could improve the situation by creating a rule, "only for display", which prevents to show a discounted price equal to the non-discounted.

What do you think?
Paolo
101 VETRINE - bindCommerce
VirtueMart Integration with eBay and other
http://www.bindcommerce.com