Jump to content

Get manufacturers by categories


The50

Recommended Posts

Hello,

we are using the default Prestashop MainMenu module to get all the categories. The problem is that we need to collect all the manufacturers related to each category. Example:

https://pasteboard.co/GSPOiud.png
We should be able to see all the manufacturers which is related to each subcategory of "NAMAMS". 

 

Only way I can think at the moment is to get all the products from each sub-category, collect all the manufacturer ID's and store them in the main categories array.

Is there any better way you could recommend? :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...