If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Categories, Products, Attributes / Weight 'label' & 'units' not displaying in 'Prodcut Listing'

Weight 'label' & 'units' not displaying in 'Prodcut Listing'

Locked

Started by under_pressure on 21 Feb 2008, 11:00 PM · Views: 1,661

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
21 Feb 2008, 11:00 PM
#1
under_pressure avatar

under_pressure

New Zenner

Join Date:
Feb 2008
Posts:
36
Plugin Contributions:
0

Weight 'label' & 'units' not displaying in 'Prodcut Listing'

I'm modifying the layout of the 'product listings' using the 'column mod'. The problem is that the weight only shows as a number..it has no label or unit.

see http://www.kilner-vacuum-lifting.com/kvshop/

instead of '3' I would like

Weight 3 Kgs

is there a reason for the label & unit to be missing?

Nigel

///////////////////////////////
UnderPressure
//////////////////////////////

24 Feb 2008, 3:38 PM
#2
under_pressure avatar

under_pressure

New Zenner

Join Date:
Feb 2008
Posts:
36
Plugin Contributions:
0

Re: Weight 'label' & 'units' not displaying in 'Prodcut Listing'

Bump!

anyone seen this before?

Nigel

///////////////////////////////
UnderPressure
//////////////////////////////

25 Feb 2008, 1:19 AM
#3
under_pressure avatar

under_pressure

New Zenner

Join Date:
Feb 2008
Posts:
36
Plugin Contributions:
0

Re: Weight 'label' & 'units' not displaying in 'Prodcut Listing'

Well..I don't know why the unit labels were missing but my fix is to add these changes to \includes\modules\YOUR_TEMPLATE\product_listing.php

case 'PRODUCT_LIST_WEIGHT':
        $lc_align = 'right';
        $lc_text = 'Shipping Wt: '. $listing->fields['products_weight'].' Kgs'.'<br />';
        break;

right or wrong it works. although I would like to know cause of original problem.

Nigel

///////////////////////////////
UnderPressure
//////////////////////////////

25 Feb 2008, 2:53 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Weight 'label' & 'units' not displaying in 'Prodcut Listing'

There isn't an "original problem" ... just that the weight is based on the assumption of pounds and that anywhere it is referenced it uses lb or lbs ... and anywhere it is not referenced by unit it is assumed to be known ...

If you would like it specific, you can customize the module or template to show this for you with the units expressed that you are using ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!