News:

Looking for documentation? Take a look on our wiki

Main Menu

How to display weight on category details page

Started by houdoe, February 03, 2012, 14:08:33 PM

Previous topic - Next topic

houdoe

Hi,
I am running VM2 on Joomla 1.7.
I need some help to display the weight on the category details page.
Is there a way to achieve this?
I am looking in the php file:
components/com_virtuemart/views/category/tmpl/default.php.
but i don't see how i could display the weight per product.
After this i also need the total weight to be displayed in the cart.

Any help is very much appreciated !!

PRO

<?php echo $product->product_weight ;?>

You can access product variables on category page by using

$product->

You can access product variables on PRODUCT page by using

$this->

houdoe

Thanks, this is working for me !
Now i just need to find out how i can display the total weight in the cart.
any suggestions?

Thanks in advance !!

swapnali

Hello Sir,

But this method is not working with my site. plz can u tell y?

<?php echo $product->product_weight ;?>

You can access product variables on category page by using

$product->

You can access product variables on PRODUCT page by using

$this->