Author Topic: how to display manufacturer products under manufacturer details page  (Read 13173 times)

dros1a

  • Beginner
  • *
  • Posts: 6
  • A beginner
Re: how to display manufacturer products under manufacturer details page
« Reply #15 on: July 06, 2016, 16:49:29 pm »
i have read so many threads by people asking the same question but still haven't found a way to change this behavior i would really like some help...

Just like the other people i can't figure out how can i display products under manufacturer description in the manufacturer page

I am using Virtuemart  3.0.2 - 3.0.16

I tried this but it's not working in my version
http://forum.virtuemart.net/index.php?topic=106733.0

i guess if i find a way to make this change i will understand how templating and virtuemart files are working.

Krx

  • Beginner
  • *
  • Posts: 15
Re: how to display manufacturer products under manufacturer details page
« Reply #16 on: August 23, 2017, 18:28:27 pm »
Hello

I'd like to know how to get the same behavior.

When some Manufacturer is selected, to have all their products listed below manufacturer description,
with pagination and sorting, like what happens when specific category is clicked.

I tried to use custom filters pro but without luck - money wasted.
Custom filters pro is also in conflict with WM ajax or something, when searching with it,
when selecting product children instead of ajax change it opens new window.

If searching with VM provided solution, ajax works OK.

Regards

Krx

  • Beginner
  • *
  • Posts: 15
Re: how to display manufacturer products under manufacturer details page
« Reply #17 on: August 23, 2017, 19:12:47 pm »
Hello

After some digging and testing,
I managed to solve it by overriding /components/com_virtuemart/views/manufacturer/tmpl/details.php file
and using this component: https://www.regularlabs.com/extensions/componentsanywhere

In my override file, below code for description I added this:

Code: [Select]
{component index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=<?php echo $this->manufacturer->virtuemart_manufacturer_id ?>}
I also removed code for displaying button

And now, when in manufacturer details, all their products are shown below, without need to click a button.

If someone needs it I can add more detailed instructions.

HTH
Regards

David

  • Jr. Member
  • **
  • Posts: 53
Re: how to display manufacturer products under manufacturer details page
« Reply #18 on: September 09, 2017, 00:51:03 am »
IMO the simplest way is to override modules\mod_virtuemart_manufacturer\tmpl\default.php and replace the line

Code: [Select]
$link = JROUTE::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id);with
Code: [Select]
$link = JROUTE::_('index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id);
Of course, this skips manufacturer's details altogether and only displays products of that manufacturer.
Joomla 3.8.0, VirtueMart 3.2.4