Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to Remove Categories sidebox From product_info.php page?

How to Remove Categories sidebox From product_info.php page?

Views: 996

Results 1 to 12 of 12
25 Jul 2011, 8:27 PM
#1
none avatar

none

New Zenner

Join Date:
Jul 2011
Posts:
21
Plugin Contributions:
0

How to Remove Categories sidebox From product_info.php page?

I would like to know how can i remove the Categories box from product.info.php. To expand the page more better

for example:

How can i get the description, and shipping tabs like this:

This is what i currently have:

26 Jul 2011, 6:25 AM
#2
gaurav10feb avatar

gaurav10feb

Zen Follower

Join Date:
Jan 2010
Location:
Australia
Posts:
243
Plugin Contributions:
1

Re: How to Remove Categories sidebox From product_info.php page?

Go into your template folder>>common and open tpl_main_page.php

all the instruction are in comments on how to disable left column

if not interested in reading then add this before red text

if ($current_page_base == 'product_info') {<br />
$flag_disable_left = true;<br />
}

$header_template = 'tpl_header.php';

Believe it or not But My existence is illusional

26 Jul 2011, 2:35 PM
#3
meshgraphics avatar

meshgraphics

New Zenner

Join Date:
Mar 2008
Location:
Ontario
Posts:
42
Plugin Contributions:
0

Re: How to Remove Categories sidebox From product_info.php page?

Why wouldn't you shut off the columns in the Admin panel?

Jonny
http://meshgraphics.com Where shapes become different shapes than the shapes they had been previously. Me do good ad copy 2

26 Jul 2011, 2:37 PM
#4
meshgraphics avatar

meshgraphics

New Zenner

Join Date:
Mar 2008
Location:
Ontario
Posts:
42
Plugin Contributions:
0

Re: How to Remove Categories sidebox From product_info.php page?

Cuz you want it for the product_info page only.
OK.

Jonny
http://meshgraphics.com Where shapes become different shapes than the shapes they had been previously. Me do good ad copy 2

26 Jul 2011, 2:37 PM
#5
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Re: How to Remove Categories sidebox From product_info.php page?

meshgraphics:

Why wouldn't you shut off the columns in the Admin panel?

Because that would turn them off on every page, which is not what you asked about.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

26 Jul 2011, 3:15 PM
#6
none avatar

none

New Zenner

Join Date:
Jul 2011
Posts:
21
Plugin Contributions:
0

Re: How to Remove Categories sidebox From product_info.php page?

if not interested in reading then add this before red text

if ($current_page_base == 'product_info') {<br />
$flag_disable_left = true;<br />
}

$header_template = 'tpl_header.php';
gaurav10feb is offline Report Post Reply With Quote

I get empty pages on my site all of them.

26 Jul 2011, 3:23 PM
#7
gjh42 avatar

gjh42

Black Belt

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

Re: How to Remove Categories sidebox From product_info.php page?

The <br /> are not supposed to be part of the code.

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

$header_template = 'tpl_header.php';

26 Jul 2011, 3:39 PM
#8
none avatar

none

New Zenner

Join Date:
Jul 2011
Posts:
21
Plugin Contributions:
0

Re: How to Remove Categories sidebox From product_info.php page?

Thank you it did work now. But thing is the product pages width did not expand as i expected. how do i do that?

27 Jul 2011, 3:27 AM
#10
none avatar

none

New Zenner

Join Date:
Jul 2011
Posts:
21
Plugin Contributions:
0

Re: How to Remove Categories sidebox From product_info.php page?

27 Jul 2011, 3:32 AM
#11
gjh42 avatar

gjh42

Black Belt

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

Re: How to Remove Categories sidebox From product_info.php page?

Your template has changed the one layout table in Zen Cart to divs, and presumably did this in a way that eliminated some standard operating mechanism. You should ask your template supplier how to fix this.

<div id="contentMainWrapper"> <div id="navColumnOne" class="columnLeft" style="width: 150px">
27 Jul 2011, 6:31 AM
#12
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: How to Remove Categories sidebox From product_info.php page?

All you need to do is create a style sheet named product_info.css

place it inside you template folder css and add this code inside it

#navColumnOne {
display:none;
}

the remaining content will take over the page


Play with it long enough and you will break it.