Forums / General Questions / Specials Price Rounding...

Specials Price Rounding...

Locked

Started by alex_clarke on 24 Oct 2006, 12:13 PM · Views: 2,385

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
24 Oct 2006, 12:13 PM
#1
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Specials Price Rounding...

I've noticed that my specials prices are being rounded down instead of up (per pence).

I'm using GBP as my currency and have listed an example below...

Price: £155.00
Discount: 50%

Special Price: £77.49 (this should be £77.50).

I didn't find any posts regarding this when searching and was wondering if anyone could help?

My Contributions: Zen Lightbox | Best Sellers Reloaded

24 Oct 2006, 12:45 PM
#2
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Specials Price Rounding...

How many decimal places have you got UK Pounds set to in your admin panel?

Vger

24 Oct 2006, 12:57 PM
#3
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Specials Price Rounding...

It's currently set at 2.

The value of the currency is set to 1.00000000. Not sure if that would affect anything.

My Contributions: Zen Lightbox | Best Sellers Reloaded

24 Oct 2006, 1:11 PM
#4
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Specials Price Rounding...

Just shooting in the dark on this one, but try setting decimal points to 3 places and see if it still rounds down. Basically, because integers are used (whole numbers) then if it is less than .5 it should round down and if it is more than .5 it should round up.

Vger

24 Oct 2006, 1:15 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Specials Price Rounding...

Look in the specials table via phpMyAdmin ...

What value is in there for the field:
specials_new_products_price

Edit the special and type in 50% for the price ... what price is set for the special?

NOTE: the Specials calculation is just that a calculation ... when you create/edit a special and type in 50% this value is not stored but the calculation is immediately made and the specials_new_products_price is updated ... as if you had manually typed in the amount ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

24 Oct 2006, 1:37 PM
#6
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Specials Price Rounding...

Ajeh:

Look in the specials table via phpMyAdmin ...

What value is in there for the field:
specials_new_products_price

Edit the special and type in 50% for the price ... what price is set for the special?

NOTE: the Specials calculation is just that a calculation ... when you create/edit a special and type in 50% this value is not stored but the calculation is immediately made and the specials_new_products_price is updated ... as if you had manually typed in the amount ...

The specials_new_products_price field contains prices. For the example in my original post the value is 65.9500 (it's without the VAT / Tax).

When changing the discount value from admin to 50% the final sale price of the product remains the same (£77.49).

My Contributions: Zen Lightbox | Best Sellers Reloaded

29 Oct 2006, 2:20 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Specials Price Rounding...

How does a 50% discount on 65.95 = 77.49 ... you lost me ... :blink:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Oct 2006, 10:22 AM
#8
alex_clarke avatar

alex_clarke

Totally Zenned

Join Date:
Mar 2006
Posts:
909
Plugin Contributions:
1

Re: Specials Price Rounding...

65.95 is the price net of vat (without tax)

So with tax it will be 77.49.

The original item price was £155, but when applying a 50% discount it reads £77.49 (when I would like it to round up to £77.50.)

I'm beginning to get lost myself now! :P

My Contributions: Zen Lightbox | Best Sellers Reloaded

29 Oct 2006, 2:41 PM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Specials Price Rounding...

What happens to the price if you edit the Special and just type in the actual price vs doing the 50%

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!