VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: jdcort on June 04, 2014, 09:53:32 AM

Title: Show only specific subcategories of a main category in the frontend
Post by: jdcort on June 04, 2014, 09:53:32 AM
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!
Title: Re: Show only specific subcategories of a main category in the frontend
Post by: GJC Web Design on June 04, 2014, 09:57:04 AM
make an over ride for components/com_virtuemart/views/virtuemart/tmpl/default_categories.php and filter out the cat u don't want
Title: Re: Show only specific subcategories of a main category in the frontend
Post by: jdcort on June 04, 2014, 11:26:05 AM
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.
Title: Re: Show only specific subcategories of a main category in the frontend
Post by: GJC Web Design on June 04, 2014, 12:15:06 PM
http://extensions.joomla.org/extensions/extension-specific/virtuemart-extensions/virtuemart-categories  ???
Title: Re: Show only specific subcategories of a main category in the frontend
Post by: jdcort on June 04, 2014, 12:36:41 PM
Thanks a lot! i appreciate that!