Post by solar » Tue Aug 17, 2010 4:44 pm

Hi just installed and happy with the software well done to all.
I have one thing that I would like to fix I'm using grams as the weight and when the customer is checking out they see the weight as 250.00 g this look like 2.5kg so how do I get rid of the .00

Newbie

Posts

Joined
Tue Aug 17, 2010 3:26 pm

Post by Qphoria » Tue Sep 07, 2010 12:08 pm

1. EDIT: system/library/weight.php

2. FIND ALL INSTANCES OF:

Code: Select all

number_format($value, 2,
3. REPLACE WITH:

Code: Select all

number_format($value, 0,

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by appsfinder » Mon Apr 02, 2018 11:10 pm

hi I have same problem in opencart 2.3.0.2

299.00g should be 299g how do I fix this ?

:) open cart 2.3.0.2 & 3.0.2.0


New member

Posts

Joined
Fri Feb 08, 2013 4:12 am

Post by appsfinder » Mon Apr 02, 2018 11:18 pm

its ok found it in 1. EDIT: system/library/cart/weight.php

:) open cart 2.3.0.2 & 3.0.2.0


New member

Posts

Joined
Fri Feb 08, 2013 4:12 am

Post by michael2820 » Tue Oct 09, 2018 7:42 pm

thank U so much !

--- please reply only with verified data, that is: no 'I think', 'maybe' etc. ---


User avatar
Active Member

Posts

Joined
Sun May 15, 2011 8:16 pm
Location - Denmark ver. 2.1.0.2
Who is online

Users browsing this forum: Google [Bot] and 121 guests