VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: gabriela on February 07, 2014, 14:01:46 PM

Title: How to show measure units
Post by: gabriela on February 07, 2014, 14:01:46 PM
Hi
I have J2.5.17 and VM2.0.26.
I had a problem for to show weight and dimensions of products. I followed the instructions from http://forum.virtuemart.net/index.php?topic=101535.0 with good results, but now I don't know how to show the measure units (like kg., cms., etc). I know is a template configuration, but also I think you know better the php line for to show it. Can you help me?

[attachment cleanup by admin]
Title: Re: How to show measure units
Post by: jenkinhill on February 07, 2014, 15:49:04 PM
Add the unit immediately after the echo code in the template override.

eg   <?php echo $this->product->product_weight ?>Kg
Title: Re: How to show measure units
Post by: gabriela on February 11, 2014, 14:20:16 PM
Thanks you very much!