Post by anastamir » Thu Feb 03, 2011 2:35 am

when show the product price,have two zero after point , how to cut this two zero or don't let shoe two zero ?

New member

Posts

Joined
Wed Oct 27, 2010 7:38 pm

Post by Chones » Thu Feb 03, 2011 3:09 am

Hi Anastamir,

In your template, find echo $price and change it to

Code: Select all

echo substr($price, 0, -3); 
That takes the last three characters off the end.

http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk


User avatar
Active Member

Posts

Joined
Wed Mar 24, 2010 9:07 pm
Location - London

Post by anastamir » Thu Feb 03, 2011 4:11 am

can you tell me,which file must edit,i mean the file name

New member

Posts

Joined
Wed Oct 27, 2010 7:38 pm

Post by Chones » Thu Feb 03, 2011 5:41 am

In all the templates that show price - product.tpl, category.tpl, all the module templates except category, information and manufacturer. The cart template and checkout templates too. There are quite a lot.

http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk


User avatar
Active Member

Posts

Joined
Wed Mar 24, 2010 9:07 pm
Location - London

Post by Qphoria » Thu Feb 03, 2011 8:43 am

Just change your currency to have 0 decimal places

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Chones » Thu Feb 03, 2011 3:24 pm

Oops. Boy, do I feel stupid :-[

I guess you live and learn...

http://scarletandjones.com/
http://sharpdressedman.co.uk/
http://coffincompany.co.uk/
http://horsesculptures.co.uk/
If I've helped you out, why not buy me a beer? http://craigmurray.me.uk


User avatar
Active Member

Posts

Joined
Wed Mar 24, 2010 9:07 pm
Location - London
Who is online

Users browsing this forum: No registered users and 13 guests