I need help setting up a page in the Pro theme that lists all product categories, each with a headline, followed by the products in that category. Specifically:
I want to loop through product categories (each category with its own headline).
Under each category, I want to loop through and display the products in that category, in a grid layout (4 columns per row: image, title, price).
I managed to set up the first Looper for the categories , but I’m having trouble setting up the nested Looper to show only the products from the current category in the loop .
Could you guide me on how to properly configure the nested Looper Consumer (or whatever setup is required) so it filters the products based on the current looped category?
Thanks for the solution but now it displays all products (from all categories) under each category, rather than only the products from the current category. From what I see in the your final screenshot, it’s happening to you too.
Looks like the the terms%5D={{dc:term:id}} from the query string has no effect.
When I select the categories I want to display, I want them to display in the order I manually select and it looks like they display in alphabetical order, I’ve attached a screenshot:
Unfortunately, there is no such option to set specific orders for categories. But you can check with Custom Looper, you can go through the following thread where the custom loopers are explained.
I would also suggest you go through the following article to understand the Custom Looper.
If you are not proficient on this, I would suggest you hire a developer who can assist you to do the customization or you can avail of our newly launched service called One, where we answer the questions beyond normal theme support.