Results 1 to 10 of 10
  1. #1
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    red flag 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

  2. #2
    Join Date
    May 2009
    Location
    Bogota, Colombia
    Posts
    29
    Plugin Contributions
    0

    Default 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

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default 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.

  4. #4
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

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

    Quote Originally Posted by dbltoe View Post
    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

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default 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.

  6. #6
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

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

    Quote Originally Posted by dbltoe View Post
    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

  7. #7
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default 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.

  8. #8
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

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

    Quote Originally Posted by dbltoe View Post
    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

  9. #9
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,145
    Plugin Contributions
    11

    Default 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.

  10. #10
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

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

    Quote Originally Posted by dbltoe View Post
    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

 

 

Similar Threads

  1. Remove the category picture from the top of the product info page.
    By alterego55 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 1 Oct 2010, 06:56 PM
  2. How can I display the category descriptiong text on the product display info page?
    By HellMind in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 18 Sep 2009, 06:43 AM
  3. How Can I remove the New Products section from left column?
    By Nima in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 May 2009, 09:45 PM
  4. Remove left column from product page
    By jford in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 30 Mar 2009, 09:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR