Forums / Setting Up Categories, Products, Attributes / Change displayed weight from lbs to kilos, or tons, etc?

Change displayed weight from lbs to kilos, or tons, etc?

Views: 1,175

Results 1 to 6 of 6
10 May 2011, 4:09 PM
#1
worldmaker avatar

worldmaker

Zen Follower

Join Date:
Jul 2006
Location:
Manchester
Posts:
139
Plugin Contributions:
0

Change displayed weight from lbs to kilos, or tons, etc?

If weight is displayed the default appears to be pounds, so how do I switch to an alternative weight standard, or will I have to edit one of the files?

:unsure:

"Why dumb down when we can rise up?" Worldmaker / BonDevZone Store

10 May 2011, 4:16 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Change displayed weight from lbs to kilos, or tons, etc?

using browser go to admin-> tools-> developers toolkit

in the last box on the left type in Lbs then tell it to search catalog/admin

this will give you a list of files and line numbers where this needs to be changed

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

10 May 2011, 4:19 PM
#3
worldmaker avatar

worldmaker

Zen Follower

Join Date:
Jul 2006
Location:
Manchester
Posts:
139
Plugin Contributions:
0

Re: Change displayed weight from lbs to kilos, or tons, etc?

haredo:

using browser go to admin-> tools-> developers toolkit

in the last box on the left type in Lbs then tell it to search catalog/admin

this will give you a list of files and line numbers where this needs to be changed

Damn! And I thought it would be a simple switch somewhere in Admin. that I'd missed.

Oh well, give my eyes a rest for a few hours then back to the strain.

:blink:

"Why dumb down when we can rise up?" Worldmaker / BonDevZone Store

1 Jun 2011, 3:45 PM
#5
cybeme avatar

cybeme

New Zenner

Join Date:
Oct 2010
Posts:
2
Plugin Contributions:
0

Re: Change displayed weight from lbs to kilos, or tons, etc?

stevesh:

There's this, too:

https://www.zen-cart.com/tutorials/index.php?article=204

hi just a quick note that this article is missing some info when you search using "lbs" it misses the file

/includes/languages/english/modules/shipping/zones.php

Line #25 : define('MODULE_SHIPPING_ZONES_TEXT_UNITS', 'lb(s)');

Re: Changing Weight from Pounds to Kilos
Hi thanks Ryk,
I have changed it to KGs,
to change it u need to modify these files:

/admin/includes/languages/english.php
Line #570 : define('TEXT_PRODUCT_WEIGHT_UNIT','lbs');

/includes/languages/english.php
Line #376 : define('TEXT_PRODUCT_WEIGHT_UNIT','lbs');
Line #379 : define('TEXT_SHIPPING_WEIGHT','lbs');

/includes/languages/english/modules/shipping/zones.php
Line #25 : define('MODULE_SHIPPING_ZONES_TEXT_UNITS', 'lb(s)');

Thanks for the Help

1 Jun 2011, 3:58 PM
#6
worldmaker avatar

worldmaker

Zen Follower

Join Date:
Jul 2006
Location:
Manchester
Posts:
139
Plugin Contributions:
0

Re: Change displayed weight from lbs to kilos, or tons, etc?

cybeme:

hi just a quick note that this article is missing some info when you search using "lbs" it misses the file

/includes/languages/english/modules/shipping/zones.php

Line #25 : define('MODULE_SHIPPING_ZONES_TEXT_UNITS', 'lb(s)');

Thanks for that. Will keep editing.

:cool:

"Why dumb down when we can rise up?" Worldmaker / BonDevZone Store