Forums / Bug Reports / Product Price (Gross) field hussle

Product Price (Gross) field hussle

Locked

Views: 1,244

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
27 Oct 2008, 8:49 AM
#1
paradisefun avatar

paradisefun

New Zenner

Join Date:
May 2007
Posts:
7
Plugin Contributions:
0

Product Price (Gross) field hussle

I've got a strange Product Price (Gross) field hussle. When I put in a gross price of e.g. 29, press the preview button and the update I see a gross oprice of 29.00. When I go back to edit the product the gross price has been altererd into 28.9999. I've treid this for many other (gross) prices and i've noticed that either they are raised or lowered by 0.0001. e.g. 32 becomes 32.0001. Is this a bug? and so is it known?

I'v got Zen Cart 1.3.8 installed with a tax zone for the Netherlands and a tax rate of 19%. Also got the currencies updated.

28 Oct 2008, 5:54 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Product Price (Gross) field hussle

It's a result of the fact that the store only stores the "pre-tax" value, and thus has to calculate the gross price for you manually.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.