News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Show subcategories + products in a category view

Started by Ferran, May 10, 2021, 11:08:12 AM

Previous topic - Next topic

Ferran

Good morning, I want to know if there is the possibility of displaying in a category view, its subcategories and the products of each one at the same time. For example:

CATEGORY VIEW
SUBCATEGORY 01
product 1
SUBCATEGORY 02
product 1
product 2
.
.
.
I have tried different settings and I can't.

Thanks

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Ferran


I think I have not explained myself well, what I am looking for is that for example, it is to divide the category view category into blocks of subcategories with their products, that is, an ordered list, I do not know if you understand me

Thanks

GJC Web Design

you would have to do this programmatically ... there is no settings or config that can achieve this...

over ride your category template and then filter/divide your products object into the different subcats etc once you have returned all the required products.
Once divided into subcats then display as normal with the products function

another approach could be query the products model multiple times from a derived list of cats/subcats but this could be quite slow depending on number of products and server
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