VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: devdav on January 09, 2013, 10:34:08 AM

Title: Add product unit of measure and other properties to product grid
Post by: devdav on January 09, 2013, 10:34:08 AM
Hello everybody!

I need to add two properties of a product (product's unit of measure and an information whether the product is discounted or not) to the main products' grid.

I have found out I need to modify the following file:

/components/com_virtuemart/themes/mytemplate/templates/browse/browse_x.php

So I added these two lines:

<?php echo $product_unit ?>
<?php echo $product_special ?>

If I add something else, like a static text, it is displayed correctly (so I guess it is the right file to modify).

My solution does not work (no information is displayed). Please help me! I guess the problem has to be easy to solve for an experienced VirtueMart user. 

Title: Re: Add product unit of measure and other properties to product grid
Post by: devdav on January 09, 2013, 14:59:44 PM
OK, the unit works fine if I use "product_weight_uom". What about the special / promoted mark (the little checkbox in the admin panel) Where is it?
Title: Re: Add product unit of measure and other properties to product grid
Post by: jenkinhill on January 09, 2013, 15:19:36 PM
"/components/com_virtuemart/themes/mytemplate/templates/browse/browse_x.php"    ???

That was for the old VirtueMart 1.1 series. http://forum.virtuemart.net/index.php?topic=106865.0

Which version are you using? This board is for VirtueMart 2.