Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2008
    Posts
    29
    Plugin Contributions
    0

    Default Unable to disable rightcolumn on main index page

    I am trying to disable the right column on the front page (main page) for my site. I have followed the instructions given here http://tutorials.zen-cart.com/index.php?article=233

    I have tried

    PHP Code:
    if (in_array($current_page_base,explode(",",'index.php?main_page')) ) {
        
    $flag_disable_right true;
      } 
    PHP Code:
    if (in_array($current_page_base,explode(",",'main_page')) ) {
        
    $flag_disable_right true;
      } 
    Also tried

    PHP Code:
    if ($this_is_home_page) {
         
    $flag_disable_right true;
      } 
    but none of this seems to work.

    I have disbled the left column via Layout Settings in Admin and only want the right column for all pages except the main entry page which I presume is called index.php?main_page ??

    What am doing wrong? Would appreciate some help. Thanks.

    Using: 1.3.9h

  2. #2
    Join Date
    Jun 2003
    Posts
    33,797
    Plugin Contributions
    0

    Default Re: Unable to disable rightcolumn on main index page

    Your URL? Where did you get your template?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Apr 2008
    Posts
    29
    Plugin Contributions
    0

    Default Re: Unable to disable rightcolumn on main index page

    Well blow me, I just tried it on the live shop and it worked using this:

    PHP Code:
    if ($this_is_home_page) {
         
    $flag_disable_right true;
      } 
    It won't work on localhost though. I copied all live shop files to the localhost folder so everything should be the same... Strange..

    I have a template I purchased from zenflavour back when I was using ZC 1.3.8. When I upgraded to 1.3.9 I did not upgrade the template but merged it into the new ZC. It has been working just fine for years.

  4. #4
    Join Date
    Jun 2003
    Posts
    33,797
    Plugin Contributions
    0

    Default Re: Unable to disable rightcolumn on main index page

    Glad you got it working.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 

Similar Threads

  1. Unable to update photos on main page
    By wickedprincess in forum General Questions
    Replies: 1
    Last Post: 19 Jan 2012, 08:50 AM
  2. Unable to edit define main page
    By signify in forum General Questions
    Replies: 7
    Last Post: 5 Feb 2011, 01:20 AM
  3. How do I disable the index on cart page?
    By xtracool in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 11 Apr 2009, 11:38 PM
  4. Unable to display main page correctly
    By ronalgoh in forum General Questions
    Replies: 2
    Last Post: 12 Mar 2008, 05:34 PM
  5. Unable to get the default index.php main page
    By crenix in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 31 Dec 2006, 01:34 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