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 only specific subcategories of a main category in the frontend

Started by jdcort, June 04, 2014, 09:53:32 AM

Previous topic - Next topic

jdcort

i have 2 main categories "hidden" and "show". Each one of them have subcategories. The problem is: when i check "show categories" under Virtuemart->configuration->templates->VirtueMart Home Page Settings (TAB), then i get the two main categories ("hidden", "show") in the frontend. I would like to show only the subcategories of "show" main category in the frontend.

any help would be greatly appreciated!

GJC Web Design

make an over ride for components/com_virtuemart/views/virtuemart/tmpl/default_categories.php and filter out the cat u don't want
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

jdcort

yes,  i do make the overwrite allright, but the " foreach ($this->categories as $category) {" returns only the two main categories and not the subcategories, so, there's no point to filter between the 2 main categories, i need to show directly the subcategories of a main category.

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