Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Removing Decimals from Prices

Removing Decimals from Prices

Views: 2,424

Results 1 to 8 of 8
4 Feb 2007, 6:44 PM
#1
voltage avatar

voltage

Totally Zenned

Join Date:
Apr 2005
Location:
Houston, TX
Posts:
1,356
Plugin Contributions:
1

Removing Decimals from Prices

I'd like to remove the decimals from the price (all items in my stores are priced at whole dollars). Any ideas on how to modify it? - Thanks

4 Feb 2007, 7:27 PM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Removing Decimals from Prices

If you set the Currency decimal to 0 ...

But ... shipping will also change and I am not sure off hand the effect of rounding etc. when things are not addressed for this 100% ...

You may need to adjust your shipping modules ...

4 Feb 2007, 7:28 PM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Removing Decimals from Prices

Due to shipping and discounts etc. is there any reason not to show the prices as $XX.00?

5 Feb 2007, 4:15 AM
#4
motech avatar

motech

New Zenner

Join Date:
Oct 2005
Location:
Swansea, MA
Posts:
29
Plugin Contributions:
0

Re: Removing Decimals from Prices

I actually prefer no decimals too .............. I guess its just a preference.

To me, its just a cleaner look. I will have to see what it does to my shipping though. LOL.

13 Sep 2007, 1:02 PM
#5
amuraru avatar

amuraru

New Zenner

Join Date:
Sep 2007
Posts:
3
Plugin Contributions:
0

Re: Removing Decimals from Prices

hi all.
Maybe is a stupid question. Sorry, but how can I change Currency decimal to 0. Where is this option? I the Admin Panel? Where?
Thanks

30 Oct 2008, 2:39 PM
#6
alex_clarke avatar

alex_clarke

Totally Zenned

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

Re: Removing Decimals from Prices

Does anyone know if it's possible to remove the decimals from the price, but only if they are zero?

For example...

£29.95 would display as £29.95
£29.00 would display as £29

27 Feb 2011, 9:01 AM
#7
alexhigh avatar

alexhigh

New Zenner

Join Date:
Nov 2009
Posts:
27
Plugin Contributions:
0

Re: Removing Decimals from Prices

Alex Clarke:

Does anyone know if it's possible to remove the decimals from the price, but only if they are zero?

For example...

£29.95 would display as £29.95
£29.00 would display as £29

Sorry for bumping such an old thread but I would also like to remove the unnecessary .00 from prices (specifically for shipping prices in my case but wouldn't mind this being applied to all prices in my store).

I would assume some sort of if else element needs to be added to a currency related file but I don't know where to start with this one.

Help would be great, thanks.

16 Oct 2012, 5:00 AM
#8
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Removing Decimals from Prices

Did anybody ever figure out how to do this? I'd like to remove the decimals when the change is .00 as well.