News:

Looking for documentation? Take a look on our wiki

Main Menu

Manufacturer name on category page

Started by Depson, December 18, 2012, 19:40:29 PM

Previous topic - Next topic

Depson

Hi Everybody,

Do you know how to add a manufacturer name in every product on category page? (like proce, title or thumbnail) ? I`ve trying with " <?php echo $this->product->virtuemart_manufacturer_id ; ?>" but it doesn`t work.

Thanks a lot, regards,
D.

bytelord

#1
Hello,

For the manufacturer name please use: <?php echo $product->mf_name ; ?>

For the manufacturer id use: <?php echo $product->virtuemart_manufacturer_id ; ?>

in category view for product we use $product and not $this->product.

Please take a look over here:
$this vs $product: http://forum.virtuemart.net/index.php?topic=100696.0
Category Fields: http://forum.virtuemart.net/index.php?topic=97744.0
Product Fields: http://forum.virtuemart.net/index.php?topic=92756.0

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

elleclouds