VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Perino on January 07, 2014, 14:57:25 PM

Title: Category Overview Layout overwrite don't work VM 2.0.26a
Post by: Perino on January 07, 2014, 14:57:25 PM
Hi,

iam facing the problem that my category overview Layout overwrite wont work.

Files for overwriting are placed in
..\templates\homepage\html\com_virtuemart\category\

These files are then offered in the Backend of Virtuemart. But it seems that VM only focus on the default.php.
When I delete the default php, the system ends up in an Error 500 "Layout [Layoutname] not found", while
Layoutname is the name of the choosen Layout in the VM Backend.

Overwriting with productdetails in the same way, works perfect.

VM Version: 2.0.26a

Can anybody help?

Thank you!
Title: Re: Category Overview Layout overwrite don't work VM 2.0.26a
Post by: jenkinhill on January 07, 2014, 15:17:55 PM
If the categories already existed before you made the override then you have to set that override template under "Category Browse Page " for each category or it will use the default template set when the cat was added.

The Category Layout  setting in config/templates will be applied to each new category.
Title: Re: Category Overview Layout overwrite don't work VM 2.0.26a
Post by: Perino on January 07, 2014, 16:06:16 PM
JENKINHILL, that worked!

Great - thx for your quick solution.
Title: Re: Category Overview Layout overwrite don't work VM 2.0.26a
Post by: Perino on January 07, 2014, 16:07:39 PM
Quote from: jenkinhill on January 07, 2014, 15:17:55 PM
If the categories already existed before you made the override then you have to set that override template under "Category Browse Page " for each category or it will use the default template set when the cat was added.

The Category Layout  setting in config/templates will be applied to each new category.