VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: jbenes on October 28, 2012, 18:43:51 PM

Title: Virtuemart 2.0.12F $50 Tax Bug
Post by: jbenes on October 28, 2012, 18:43:51 PM
Hi. I seem to be having a problem while running J 2.5.6 and VM 2.0.12F. My store is available at www.loveall.oneofakind.ws.

I have set 8.25% tax to be charged on any items shipped to Texas. The problem is when I add a $50 item to the cart, the cart messes up when calculating the tax. Here is the math rundown:

The item is $50.00, so tax should be $4.125 (8.25%). The cart only uses two decimal places so it rounds tax to $4.13. For some reason, since it may not properly round, it thinks it has charged $.01 extra so it applies a $.01 discount but the discount doesn't actually do anything. I've attached a screenshot below.

(http://i48.tinypic.com/xmmz5d.jpg)

This solution is easy to replicate, just add a $50 item to your cart (anything in the pants category) and use a Texas address to checkout.
Title: Re: Virtuemart 2.0.12F $50 Tax Bug
Post by: rogerbfraser on October 28, 2012, 20:53:09 PM
Ow here you are.Effort to search any related to this problem.I second this question.Anyone can help?
Ultra Slim Plasma (http://www.pn64e7000.org)
-roger
Title: Re: Virtuemart 2.0.12F $50 Tax Bug
Post by: jbenes on October 28, 2012, 21:12:21 PM
Quote from: rogerbfraser on October 28, 2012, 20:53:09 PM
Ow here you are.Effort to search any related to this problem.I second this question.Anyone can help?
-roger

If you're wondering if I searched for other threads similar to this, I did and I didn't find anything that had a similar issue.
Title: Re: Virtuemart 2.0.12F $50 Tax Bug
Post by: AH on October 29, 2012, 16:42:08 PM
There are some other posts in the forum regarding the display of a discount.

It relates to the setting of "tax per product" when setting the tax rate.

Not sure whether the setting of "VAT per product" is suitable for your needs, but the problem does not occur when this is set (due to internal rounding no doubt relating to VAT.

Try a quick test by setting the Tax setting to VAT per product to see if that solves it?
Title: Re: Virtuemart 2.0.12F $50 Tax Bug
Post by: bytelord on October 29, 2012, 16:54:07 PM
Please also read the following thread: http://forum.virtuemart.net/index.php?topic=108865.0
Title: Re: Virtuemart 2.0.12F $50 Tax Bug
Post by: jbenes on October 29, 2012, 19:37:19 PM
Using a VAT tax worked! Thanks for your replies.  ;D
Title: Re: Virtuemart 2.0.12F $50 Tax Bug
Post by: AH on October 31, 2012, 02:23:17 AM
Glad to be of help!