News:

Looking for documentation? Take a look on our wiki

Main Menu

Manufacturers page and its description

Started by Vovchic, December 26, 2012, 08:56:36 AM

Previous topic - Next topic

Vovchic

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

#1
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;

<?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