Manufacturer on Product Page no Popup but Link to Manufacturer Details Page

Started by kontakt@berghausener82.de, December 02, 2011, 20:32:08 PM

Previous topic - Next topic

kontakt@berghausener82.de

Normally the manufacturer link on the product details page opens a pop up window with the manufacturer details. What I want to realize is: This should link to the manufacturer details page (and the prodcuts of this manufacturer) as it is done by the manufacturer modul.
How can I do this?


axelf


jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum


Spiros Petrakis

Hi,

you have to modify the default_manufacturer.php file in productdetails view folder.

First replace this :

$link = JRoute::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $manufacturers_details->virtuemart_manufacturer_id. '&tmpl=component', FALSE); 

with this :

$link =  JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $manufacturers_details->virtuemart_manufacturer_id, FALSE);

and then remove the "manuModal" class from

$mans[] = '<a class="manuModal" rel="{handler: \'iframe\', size: {x: 700, y: 850}}" href="'.$link .'">'.$name.'</a>';

so it wont trigger the pop up.


paliolykos

Hello Spyros...I try your method but not working for me...I  have Joomla 3.7.4 and VirtueMart 3.2.1.

Any other solution or an update?

Thanks for your help.