VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: goudmahendra on July 20, 2015, 15:49:29 PM

Title: Different category or sub category design
Post by: goudmahendra on July 20, 2015, 15:49:29 PM
Hello All,
                   I am working on virtue mart 3 and I want each category have different template. is it possible using override. I have different layout for one category(refer image cat1.jpg) page and another design for other category page (refer image cat2.jpg). how can I do that.  if this is not possible then how can I design subcategories differently.

Virtuemart: 3.0.9

Joomla: 3.4.1

Thanks in advance
Title: Re: Different category or sub category design
Post by: jenkinhill on July 20, 2015, 16:38:38 PM
Yes, you can use different layouts per category using template overrides. You will need to make overrides for the default category template file at components/com_virtuemart/views/category/tmpl/default.php and for the relevant sublayouts if necessary, components/com_virtuemart/sublayouts/

Specify the override (Category Browse Page) used for each category/subcat on the category config page.

http://docs.virtuemart.net/tutorials/templating-layouts.html
Title: Re: Different category or sub category design
Post by: goudmahendra on July 21, 2015, 12:48:12 PM
Thanks jenkinhill

I will try and let you know.