Author Topic: Manufacturers page and its description  (Read 705 times)

Vovchic

  • Beginner
  • *
  • Posts: 3
Manufacturers page and its description
« 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...

sandstorm

  • Jr. Member
  • **
  • Posts: 234
    • ConCom
  • Skype Name: sandstorm871
  • VirtueMart Version: 3.0.16
Re: Manufacturers page and its description
« Reply #1 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
J3.6.4 / PHP7.0.12
VM3.0.16