VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: newsomjk on October 09, 2013, 03:28:11 AM

Title: category page overrides not working
Post by: newsomjk on October 09, 2013, 03:28:11 AM
Hi, I've got the product detail page overrides working fine.

And the main category page override (default.php) works fine, however, when I try to make a second category page override (lasr.php) and I set that in the backend under the "category browse page" it doesn't change from the main default.php override when I view the page.
Title: Re: category page overrides not working
Post by: jenkinhill on October 09, 2013, 11:21:24 AM
See http://forum.virtuemart.net/index.php?topic=119360.msg406033#msg406033
Title: Re: category page overrides not working
Post by: newsomjk on October 09, 2013, 15:17:11 PM
It turned out to be an issue with the menu link.

For the record though, those links wouldn't have been helpful since the overrides were in the correct directory. If they weren't they wouldn't have showed up in the drop down box.
Title: Re: category page overrides not working
Post by: jenkinhill on October 09, 2013, 15:53:05 PM
I cannot reproduce that. Using the current VM2.0.24 version in Beez20 I put 2 different override files in templates/beez_20/html/com_virtuemart/category/ and each works as expected when selected for individual categories. I then added a third override and that works, too, so I have three categories each displaying with different overrides.
Title: Re: category page overrides not working
Post by: sjshaffer on October 09, 2013, 23:44:27 PM
Quote from: newsomjk on October 09, 2013, 15:17:11 PM
It turned out to be an issue with the menu link.

For the record though, those links wouldn't have been helpful since the overrides were in the correct directory. If they weren't they wouldn't have showed up in the drop down box.

What was the menu link issue?  I have a similar problem
Title: Re: category page overrides not working
Post by: newsomjk on October 10, 2013, 01:55:38 AM
It was that we had 2 similar categories with similar names, the user who setup the navigation had the navigation linking to the wrong category.

To help you narrow it down I would say, put this line in your category overrides:
echo '<pre>'.print_r($this,true).'</pre>';

Look through there and make sure the category id is the one you're trying to set the override for, also printing that out will show you what override template it's loading.