Author Topic: Different category or sub category design  (Read 698 times)

goudmahendra

  • Jr. Member
  • **
  • Posts: 56
  • A beginner
Different category or sub category design
« 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

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28535
  • Always on vacation
    • Jenkin Hill Internet
Re: Different category or sub category design
« Reply #1 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
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VirtueMart 4.0.14 10805  J 3.10.11 PHP 8.0.27

goudmahendra

  • Jr. Member
  • **
  • Posts: 56
  • A beginner
Re: Different category or sub category design
« Reply #2 on: July 21, 2015, 12:48:12 pm »
Thanks jenkinhill

I will try and let you know.