VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: notanothernumber on June 27, 2012, 08:30:32 AM

Title: Show manufacturer in featured products module
Post by: notanothernumber on June 27, 2012, 08:30:32 AM
I'm using Joomla! 2.5.6 + Virtuemart 2.0.6 and in the standard featured product module I want to display the manufacturers name. Anyone got any ideas???
Title: Re: Show manufacturer in featured products module
Post by: notanothernumber on June 28, 2012, 07:45:33 AM
Figured this out myself in the end! If anyone looking to do the same just add following code to this page modules > mod_virtuemart_products>tmpl>default.php :

<?php echo $product->mf_name; ?>

I also managed to add the products category to display as well using:

<?php echo $product->category_name; ?>

Cheers
Martin
Title: Re: Show manufacturer in featured products module
Post by: Roger Lightening on October 25, 2012, 08:33:32 AM
Thank you notanothernumber

I was trying to get this figured out. I added to it slightly by creating a link to the manufacturer's page. This is what I did:

$linkm = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id='.$product->virtuemart_manufacturer_id);

?>
                                     <strong>Artist:  <a href="<? echo $linkm; ?>" title="<?php echo $product->mf_name?> Information Page">  <?php echo $product->mf_name?></a></strong>
                                        </div>


I hope that this helps someone else.
Title: Re: Show manufacturer in featured products module
Post by: zainabubu on October 31, 2012, 10:31:18 AM
Thank you so much!