Site maintenance: Tuesday 17 Nov, from 10:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / How do I over ride the Product Info page and the category pages!!

How do I over ride the Product Info page and the category pages!!

Started by darion on 3 Oct 2012, 3:36 PM · Views: 643

Results 1 to 3 of 3
3 Oct 2012, 3:36 PM
#1
darion avatar

darion

Zen Follower

Join Date:
Sep 2012
Posts:
169
Plugin Contributions:
0

How do I over ride the Product Info page and the category pages!!

Hello,

Here is my question I do not want the left column to show on the home page category page or product info page. I have been able to over ride the left column for the home page but can not figure out how to do the same for the product info page and the category pages can someone please help me. Thank you for your help and responses!!

Here is the site if you need to see it:mysterydrawer.com (be advised this is an adult product site)

4 Oct 2012, 12:31 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How do I over ride the Product Info page and the category pages!!

I have been able to over ride the left column for the home page
Copy that same code to your other page tpl files

Zen-Venom Get Bitten

4 Oct 2012, 2:00 AM
#3
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,874
Plugin Contributions:
8

Re: How do I over ride the Product Info page and the category pages!!

What version of test code did you use in tpl_main_page.php? (Paste it here.)
You can extend or alter that test to fit the category and product info pages as well.

Since the homepage and category pages are all "index" page base, you can use something like

if ($current_page_base == 'index' or $current_page_base == 'product_info') {
  $flag_disable_left = true;
}