Forums / Templates, Stylesheets, Page Layout / How to Remove the Left Column from the Product Info Display Page??

How to Remove the Left Column from the Product Info Display Page??

Locked

Views: 2,219

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
18 Aug 2009, 4:23 PM
#1
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

How to Remove the Left Column from the Product Info Display Page??

Hello,

How do I remove the LEFT column from the Product Info Display Page.

I just want the Center and Right columns to appear on the product info display page?

I have looked in the tuturials section and they do not provide a clear cut solution.

Any ideas? Thank you.

Thank you,
autoace

18 Aug 2009, 4:43 PM
#2
mutester avatar

mutester

New Zenner

Join Date:
May 2009
Location:
Bogota, Colombia
Posts:
28
Plugin Contributions:
0

Re: How to Remove the Left Column from the Product Info Display Page??

add in /includes/templates/YOURTEMPLATE/common/tpl_main_page.php

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

just before;
$header_template = 'tpl_header.php';
$footer_template = 'tpl_footer.php';
$left_column_file = 'column_left.php';
$right_column_file = 'column_right.php';

You can do this with any page btw...

Tienda Virtual de relojes innovadores / Online store for innovative watches:

                                                                  [WWW.MUNDOUNIK.COM](http://www.mundounik.com)
18 Aug 2009, 4:47 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,858
Plugin Contributions:
18

Re: How to Remove the Left Column from the Product Info Display Page??

another option is to create a separate stylesheet for that circumstance. No need to munge the PHP, just us a display: none one-liner in the stylesheet.

directions and suggestions are found in the css folder of the site.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

18 Aug 2009, 6:01 PM
#4
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: How to Remove the Left Column from the Product Info Display Page??

dbltoe:

another option is to create a separate stylesheet for that circumstance. No need to munge the PHP, just us a display: none one-liner in the stylesheet.

directions and suggestions are found in the css folder of the site.

Thanks for the reply. I would like to try it going the css route, but I am not understanding the instructions in the css folder. What would I name the css file and where would I upload it (css folder?)? Also do I just take the stylesheet.css file, copy it - just delete the code for the left column?

As you can see I am a little confused on how to do it, but I do want to try it that way. Could you please give me some guidance here?

Thanks.

Thank you,
autoace

19 Aug 2009, 4:49 AM
#5
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,858
Plugin Contributions:
18

Re: How to Remove the Left Column from the Product Info Display Page??

Not having a link to your site, I'll have to make a stab in the dark.
If you create a product_info.css and include in it:

#navColumnOne {
display:none;

}

Load the css file into the proper directory for your site and it should work.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

19 Aug 2009, 12:50 PM
#6
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: How to Remove the Left Column from the Product Info Display Page??

dbltoe:

Not having a link to your site, I'll have to make a stab in the dark.
If you create a product_info.css and include in it:

#navColumnOne {
display:none;

}

Load the css file into the proper directory for your site and it should work.

Thank it worked. I originally had added the code to the php file from above. But I thought the css method was much better, this way the hard code stays in tact with as little mods as possible!!

Thank you.

Thank you,
autoace

19 Aug 2009, 1:59 PM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,858
Plugin Contributions:
18

Re: How to Remove the Left Column from the Product Info Display Page??

Glad you got it working.
Either way would have worked. I just prefer to not mess with the code if I can help it.
Often, messing with PHP will effect something you hadn't planned on.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

19 Aug 2009, 8:02 PM
#8
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: How to Remove the Left Column from the Product Info Display Page??

dbltoe:

Not having a link to your site, I'll have to make a stab in the dark.
If you create a product_info.css and include in it:

#navColumnOne {
display:none;

}

Load the css file into the proper directory for your site and it should work.

Hi dbltoe:

I am attempting to do the same but different thing again.

On my product listing page, I would like to remove the Right Column (navColumnTwo, I believe) but I am not sure what I am doing wrong:

  1. Made a css file, named it product_listing.css, and put the same code in. Just changed it to navColumnTwo,

  2. uploaded it to my includes/templates/my_template/css directory but its not working!

Any ideas on what I am doing wrong. I have ZC 1.3.8

Thanks

Thank you,
autoace

19 Aug 2009, 8:49 PM
#9
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,858
Plugin Contributions:
18

Re: How to Remove the Left Column from the Product Info Display Page??

You'd have to make a css file for every category as Product Listings are fed off of a category ID.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

20 Aug 2009, 2:37 PM
#10
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: How to Remove the Left Column from the Product Info Display Page??

dbltoe:

You'd have to make a css file for every category as Product Listings are fed off of a category ID.

Hi dbltoe:

Is there another way to do it? Possible via some minor code changes? Somewhat similar to the example above?

I do not know if I want to make multiple css files for every category that I currently have or will have in the future. I believe a minor code mod would be good here, any ideas?

Thanks.

Thank you,
autoace