Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Remove left column from product page

Remove left column from product page

Locked

Views: 4,845

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
2 May 2007, 4:41 PM
#1
jford avatar

jford

Zen Follower

Join Date:
Mar 2006
Posts:
162
Plugin Contributions:
0

Remove left column from product page

I have a request from one of my clients to remove the left column from only from the product info page. The domain is arlingtonroadoutdoor.com They want the left column (categories, information sidebox) visible on every other page - just not the actual product info page. I only know how to turn it on and off globally - is their any way to do it for one specific page? HELP!

2 May 2007, 5:49 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: Remove left column from product page

Open your common tpl_main_page and read the instructions for removing elements from specific pages. You may want to caution them about removing the main navigation though ... could be confusing to the customer. a better idea might be to get rid of the right hand column all the time.

3 May 2007, 1:52 AM
#3
cam_oai avatar

cam_oai

New Zenner

Join Date:
May 2007
Posts:
11
Plugin Contributions:
0

Re: Remove left column from product page

why not change the left column 150px to 0px? idid that last night and it worked. need to turn OFF all sidebox, although.

3 May 2007, 5:54 PM
#4
jford avatar

jford

Zen Follower

Join Date:
Mar 2006
Posts:
162
Plugin Contributions:
0

Re: Remove left column from product page

kim - i tried that but for some reason it isn't turning it off. It is just putting the code on the product page. (I did warn them about navigation problems - but they still insisted for some reason!!!)

3 May 2007, 6:40 PM
#5
gjh42 avatar

gjh42

Black Belt

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

Re: Remove left column from product page

That switch works if you set it up properly. Post the region of tpl_main_page.php around your edits and we should be able to sort it out.

3 May 2007, 6:54 PM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,182
Plugin Contributions:
0

Re: Remove left column from product page

Firstly, if you don't already have one, create an over-ride file for tpl_main_page.php in your includes/templates/YOUR_TEMPLATE/common directory.

Find this in tpl_main_page.php
if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
$flag_disable_right = true;
}

Replace with this:

if (in_array($current_page_base,explode(",",'product_info')) ) {
$flag_disable_left = true;
}

This should do the trick for you.

30 Mar 2009, 8:59 AM
#7
george_susini avatar

george_susini

New Zenner

Join Date:
Mar 2009
Location:
Raleigh, NC
Posts:
31
Plugin Contributions:
0

Re: Remove left column from product page

you can go to configuration ---> Layout settings and set Column right or left status-global to 0 to turn them off on all pages or you can use this faq, it worked like a charm https://www.zen-cart.com/tutorials/index.php?article=270