Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2009
    Posts
    18
    Plugin Contributions
    0

    Default disabling of left sidebox

    Is there any way to disable the left sidebox column from the product listing page only ?

    Thanks in advance

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: disabling of left sidebox

    Have a look at the comments in the file - tpl_main_page.php
    And the tutorial - I searched for "disable"
    https://www.zen-cart.com/tutorials/i...hp?article=233
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: disabling of left sidebox

    yes I've already read this article but there is no information to disable the left sidebox column on product listing page. Means which variable should I pass in that array for product listing page?

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: disabling of left sidebox

    'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_space s'
    Code:
      if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
         $flag_disable_left = true;
      }
    Create your list for your listing pages...
    check in your browser address bar and note the cpath as you load your listing pages they will be like "cPath=1_4"
    It is the number(s) that you need
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: disabling of left sidebox

    These settings will turn off the left sideboxes on the product page(s) and

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

    if ($current_page_base == 'index' and $cPath > '0' ) {
    $flag_disable_left = true;
    }

  6. #6
    Join Date
    Jul 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: disabling of left sidebox

    No these setting is not working. this setting is disabling the left sidebox when I am viewing the categories and sub categories.

    I've set the "Skip 1-prod Categories" to false so product info page will never come.

    so when I click on a category name link it will redirected to me to product listing page or sub categories page. On product listing page only I want to disable the left side box.

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: disabling of left sidebox

    On product listing page only I want to disable the left side box.
    See my post #4
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Enabling/disabling left column based upon page ID
    By bobmeetin in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 11 Apr 2013, 05:34 PM
  2. disabling sidebox for SSL pages
    By iwantone in forum General Questions
    Replies: 2
    Last Post: 21 Jan 2010, 06:33 AM
  3. INformaton sidebox pages NOT disabling?
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Mar 2008, 12:08 AM
  4. How to move the sidebox side ways. from left to more left? realy need help...
    By brekke00 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 27 Aug 2007, 02:38 PM
  5. right sidebox isn't aligned with left sidebox
    By zc-newbie in forum Basic Configuration
    Replies: 0
    Last Post: 3 Sep 2006, 03:40 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