News:

Support the VirtueMart project and become a member

Main Menu

how to display manufacturer products under manufacturer details page

Started by slammy, August 22, 2012, 21:57:29 PM

Previous topic - Next topic

dros1a

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

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

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:

{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

IMO the simplest way is to override modules\mod_virtuemart_manufacturer\tmpl\default.php and replace the line

$link = JROUTE::_('index.php?option=com_virtuemart&view=manufacturer&virtuemart_manufacturer_id=' . $manufacturer->virtuemart_manufacturer_id);
with
$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.3, VirtueMart 3.4.2

MKI-Miro


GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation