VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: niravmistry on January 25, 2017, 10:48:45 AM

Title: Product Dimensions Are not display on Product Details page
Post by: niravmistry on January 25, 2017, 10:48:45 AM
I used Virtue mart 3.0.18.I have already insert some product in it. Now i want to add product dimension so i go to Product Dimensions and Weight tab. I enter product dimensions and save it. But i ill not display on product details page.

So Please guide me how to solve this issue.
Title: Re: Product Dimensions Are not display on Product Details page
Post by: jenkinhill on January 25, 2017, 11:40:10 AM
Edit and override components/com_virtuemart/views/productdetails/tmpl/default.php  (or templates/[your-joomla-template]/html/com_virtuemart/productdetails/tmpl/default.php if already using overrides) to include the code to display the required info. 

See the code examples in http://forum.virtuemart.net/index.php?topic=92756.0

eg something like this to show the weight and units:  <?php echo $this->product->product_weight . $this->product->product_weight_uom ?>

https://docs.virtuemart.net/tutorials/templating-layouts.html