Author Topic: How to display weight on category details page  (Read 2032 times)

houdoe

  • Beginner
  • *
  • Posts: 5
How to display weight on category details page
« on: February 03, 2012, 14:08:33 pm »
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

  • Global Moderator
  • Super Hero
  • *
  • Posts: 10412
  • VirtueMart Version: 3+
Re: How to display weight on category details page
« Reply #1 on: February 03, 2012, 20:56:21 pm »
<?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->
J3.9+ VM 3.4.2
Slowest Page Speed Score (88) (Category)
Fastest Page Speed Score (94-96) (productdetails)

houdoe

  • Beginner
  • *
  • Posts: 5
Re: How to display weight on category details page
« Reply #2 on: February 08, 2012, 16:49:04 pm »
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

  • Beginner
  • *
  • Posts: 1
Re: How to display weight on category details page
« Reply #3 on: June 14, 2012, 10:58:09 am »
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->


idezmax

  • Beginner
  • *
  • Posts: 20