Zen Cart Logo
Forums / Currencies & Sales Taxes, VAT, GST, etc. / salemaker rounding up a third decimal point ?

salemaker rounding up a third decimal point ?

Locked

Views: 3,326

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
19 Aug 2006, 3:40 PM
#1
pilot avatar

pilot

New Zenner

Join Date:
Apr 2005
Posts:
55
Plugin Contributions:
0

salemaker rounding up a third decimal point ?

I have a product price of .64p (UK pounds), and have applied a discount with salemaker of 30% and I get the result of .45p when currencies are set to 2 decimal places

The correct value should be .448p so an order of 100 should be £44.80p at the moment salemaker set at 2 decimal places is making the result is £45.00.

I am thinking that Zen Cart would calculate a third decimal point and show 2 when set, but the only way I can get it to work is set 3 decimal points in currencies but then I get the correct result of £44.800 but cannot use this.

Is there a way around this problem ? I really need the third decimal point calculation but somehow have got to stop Zen Cart from displaying that third point over £1.00. Something like show 3 decimal points under a £1.00 pound and only 2 when over a £1.00 Pound. Is this possible ??

My currencies are set as follows and am using the latest version of Zen cart 1.3.0.2
Title: GB Pound
Code: GBP

Symbol Left: £
Symbol Right:

Decimal Point: .
Thousands Point: ,
Decimal Places: 2

Last Updated:
Value: 1.00000000

Example Output:
£30.00 = £30.00

I am only using this currency.

Any help would be greatly appreciated as we hoped to go live with this soon.

21 Aug 2006, 1:02 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: salemaker rounding up a third decimal point ?

Currently, the only method available to use 3 decimals on the currency and that then shows as 3 decimals everywhere ... including the checkout ...

This would take quite a bit of coding to allow for it to display one way in some places and manage the final calculations with 2 decimals for the checkout without producing errrors ...

It can be done, but you are looking at quite a bit of custom work ...