Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2007
    Location
    Orange County, CA
    Posts
    88
    Plugin Contributions
    5

    Default Sideboxes on Product_Info only?

    I have a fresh install of 1.38 tied to an existing database and with a bunch of add-ons.

    They layout is 3-column on the home page and 2-column on the rest of the site. I am having an issue with two of the sideboxes showing up on the product_info page (only) that I can't seem to get rid of.

    In the Layout Boxes Controller page, I checked these boxes and they are configured the same as other boxes that do NOT show up.

    Here is the site: w w w . e u r o c y c l e d . c o m / s h o p

    Pick any product to see what I mean...

    Could this be something specific in the code of the product_info page or a setting somewhere else?

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: Sideboxes on Product_Info only?

    You need to DISABLE right column for certain pages. In your case, you will want many pages - including product_info to have right column disabled.

    Here's how you do it:

    There is a file:

    /includes/templates/template_default/common/tpl_main_page.php

    Find the following (around lines 41 - 44).

    PHP Code:
    // the following IF statement can be duplicated/modified as needed to set additional flags
      
    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;
      } 
    Where it says:
    list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces

    Delete the above and insert
    product_info

    PHP Code:
    // the following IF statement can be duplicated/modified as needed to set additional flags
      
    if (in_array($current_page_base,explode(",",'product_info')) ) {
        
    $flag_disable_right true;
      } 
    ... and if you want other pages too, just insert their name(s), separated by a comma... eg:
    product_info,contact_us,login,etc,etc,etc,etc,etc

    You need to save this and then ftp it to:

    includes/templates/oem/common/

    (If common folder does not exist in your custom template, create it.)
    Last edited by schoolboy; 6 Jun 2009 at 05:33 PM.
    20 years a Zencart User

  3. #3
    Join Date
    Apr 2007
    Location
    Orange County, CA
    Posts
    88
    Plugin Contributions
    5

    Default Re: Sideboxes on Product_Info only?

    Schoolboy, you are my hero!!! I've struggled trying to find where this is controlled and it was right under my nose. THANK YOU THANK YOU THANK YOU!!!!

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,269
    Plugin Contributions
    3

    Default Re: Sideboxes on Product_Info only?

    That site of yours looks excellent! Is the template your own, or is it available somewhere? I have a site that would look good with your layout.
    20 years a Zencart User

  5. #5
    Join Date
    Apr 2007
    Location
    Orange County, CA
    Posts
    88
    Plugin Contributions
    5

    Default Re: Sideboxes on Product_Info only?

    Thank you for the compliment! I did the CSS/PHP work and the graphics were done by a company for us. The final touches are not quite completed, but it should be ready in the next 7-10 days.

    Please contact me on PM if you'd like to discuss this further.

 

 

Similar Threads

  1. sideboxes for home page only
    By barendfaber in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Nov 2010, 02:21 PM
  2. change background sideboxes only
    By goalsurfer in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 5 Mar 2010, 02:49 PM
  3. No sideboxes on Main Page only
    By kevinM in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 4 Feb 2010, 06:25 PM
  4. disable right column background only on product_info
    By gsdcypher in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 May 2009, 12:09 AM
  5. sideboxes on selective pages only
    By paperlion in forum Basic Configuration
    Replies: 2
    Last Post: 12 Jun 2006, 12:48 PM

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