News:

Looking for documentation? Take a look on our wiki

Main Menu

Add product unit of measure and other properties to product grid

Started by devdav, January 09, 2013, 10:34:08 AM

Previous topic - Next topic

devdav

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. 


devdav

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?

jenkinhill

"/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.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum