| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Formating Currency | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Formating Currency
Hi gang,
I want to be able to format the currency prices so they dont show any decimal placing: i.e. display "$150" instead of "$150.00" I've been looking at the Math functions and the currency.tpl file but still no joy. Is there a simple fix for this? W |
|||||||
#2
|
|||||||||
|
|||||||||
I've not tried this, but if it was me, I would be looking at changing the database perhaps.
In the pricing table, you have a price field, which has a type of decimal(12,2); if you changed this to remove the 2, you would then not have any decimal points. I would do this via phpmyadmin myself, suggest backing it up first though!
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#3
|
|||||||
|
|||||||
Not good for tax reasons though...government doesn't like things rounded off
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#4
|
|||||||||
|
|||||||||
no doubt worth a look at currency.tpl too
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#5
|
|||||||
|
|||||||
Yep - a very simply fix in the end...
Within the currency.tpl file - I just removed the |formatprice:",":"." from Code:
That done the trick W |
|||||||
#6
|
|||||||
|
|||||||
Quote:
but it also removed the currency symbol. using 4.0.15 |
|||||||
|
|||
X-Cart forums © 2001-2020
|