VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: thenorman138 on February 20, 2022, 20:53:24 PM

Title: Displaying all products by a given manufacturer
Post by: thenorman138 on February 20, 2022, 20:53:24 PM
I swear this was working before and I haven't touched this file recently, but now I'm having issues.

I made a custom html template one day which would simply load products with given manufacturer info. The page currently shows name, image, info, etc. of the manufacturer but the area that should be loading products says no records found. I dumped the manufacturer object to double check manufacturer ID (all good there) and all other info is loading.

The hack I used to get the products to display on this page originally is this:

{component index.php?option=com_virtuemart&view=category&virtuemart_manufacturer_id=<?php echo $this->manufacturer->virtuemart_manufacturer_id ?>}

Is this incorrect?

I basically just want to say "If the manu ID is 21 then show all products belonging to it" and I do see a product in the virtuemart products backend that is attached to this manufacturer (and it's happening for all of them)
Title: Re: Displaying all products by a given manufacturer
Post by: Studio 42 on February 21, 2022, 09:23:04 AM
Cheick in Virtuemart config, if you display product without categories or not ?