VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: d4rkcloud on July 26, 2016, 16:09:38 PM

Title: Disable override in a a category page
Post by: d4rkcloud on July 26, 2016, 16:09:38 PM
Joomla! 3.5.0
VirtueMart 3.0.16

Hi guys,

I need to show the custom fields in a single category list page, but the template I used does not allow me to do it, without hard-coding it.
So I'd like to disable the category template override on that category. Using the standard virtuemart template I shoud be able to show the custom filters without any problem.
Do you know how to do it?


Thank you all!  8)
Title: Re: Disable override in a a category page
Post by: GJC Web Design on July 26, 2016, 17:25:50 PM
you can select individual cat templates within the vm cat admin
Category Browse Page select
Title: Re: Disable override in a a category page
Post by: d4rkcloud on July 26, 2016, 18:22:25 PM
Thanks for answering!

Uhm, almost there...
In that way you change all the template, but I need that the template remains the same, but the VM category page override (inside the /html folder of the template) doesn't show at all.
Same template, vm override gone, only in that category page.
Hope it's clear now.
Title: Re: Disable override in a a category page
Post by: GJC Web Design on July 26, 2016, 18:26:54 PM
the way I understand it works is the Category Browse Page ONLY changes the cat over ride

If not just copy in the default as another cat template over ride and choose that
Title: Re: Disable override in a a category page
Post by: jenkinhill on July 26, 2016, 18:33:43 PM
Maybe this:
Copy the default VM template components/com_virtuemart/views/category/tmpl/default.php into your templates/[yourJoomlaTemplate]/html/com_virtuemart/category/ directory, but call it something different, eg mydefault.php - and select that file as override in the category config page. You may also need to create a new customfield sublayout file to be used as well.
Title: Re: Disable override in a a category page
Post by: d4rkcloud on July 26, 2016, 18:46:34 PM
Thanks to both of you! I'll try and let you know!