VirtueMart Forum

VirtueMart 2 + 3 => General Questions => Topic started by: Vovchic on December 26, 2012, 08:56:36 am

Title: Manufacturers page and its description
Post by: Vovchic on December 26, 2012, 08:56:36 am
Hi! I need advice ... I work with joomla 2.5 & Virtuemart 2.0.8.
On the product details page is a manufacturer link, when pressed, there is an additional window with a small description of the manufacturer, link to his website, link to the other products of this manufacturer on my site.
1. How to do manufacturer link (on the product details page) led directly to the page with the other manufacturer's products on my website.
2. How to add a description of the manufacturer to the page with the other products manufacturer?

Thank you.
p.s. sorry for my english...
Title: Re: Manufacturers page and its description
Post by: sandstorm on March 26, 2013, 11:56:23 am
Ive done this now and if anyone is interested here the code that I placed in the category Template - mine is a custom theme from Flexible web design.

Add this after the category Title in the category template;

Code: [Select]
<?php
$jinput 
JFactory::getApplication()->input;
 
$trigger="virtuemart_manufacturer_id";
 
$mid $jinput->get->get($trigger);
 if (!empty(
$mid))
{
echo 
'<div class="manufacturer-description>';
   echo 
'<p>'.$this->products[0]->mf_desc.'</p>';
echo 
'</div>';
}

?>

Does this look OK?
Anybody come up with a simpler solution?

Thanks

AC