Jump to content

Product weight including attribute weight


Recommended Posts

Hi Guys

I need to display the weight of my products in the product page.

If I use {$product->weight} it ignores the value of 'impact on weight' and displays the base weight of the product.

Is there a global variable that holds the combined weight?

Thanks

Ross

Link to comment
Share on other sites

No, there is no global variable that holds the combined weight. It doesn't look easy to do either. The weight isn't included in the combination information passed into js/product.js. You'll need to modify product.php to add that information, then calcluate the total weight in a similar way that the price is calculated.

Link to comment
Share on other sites

  • 3 years later...
×
×
  • Create New...