Author Topic: Manufacturer on Product Page no Popup but Link to Manufacturer Details Page  (Read 1551 times)

kontakt@berghausener82.de

  • Beginner
  • *
  • Posts: 5
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?

lukelee

  • Jr. Member
  • **
  • Posts: 86
This is something I want to know as well.

axelf

  • Beginner
  • *
  • Posts: 4
Anybody know how to solve this? In VM3? Thanks.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26314
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

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

Currently using VM3.2.4 on Joomla 3.8 PHP 7.0.23

Testing VM3.2.5.9653 on J!3.8

axelf

  • Beginner
  • *
  • Posts: 4
Joomla version, 3.4.5.  VirtueMart 3.0.10

Spyros Petrakis

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 98
    • OlympianThemes
  • VirtueMart Version: Always latest Stable
Hi,

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

First replace this :

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

with this :

Code: [Select]
$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

Code: [Select]
$mans[] = '<a class="manuModal" rel="{handler: \'iframe\', size: {x: 700, y: 850}}" href="'.$link .'">'.$name.'</a>';
so it wont trigger the pop up.
Fast and simple to use templates with fanatical support
https://www.olympianthemes.com

axelf

  • Beginner
  • *
  • Posts: 4
Thank you very much Spyros, it worked!

paliolykos

  • Beginner
  • *
  • Posts: 1
  • A beginner
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.