Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2010
    Posts
    884
    Plugin Contributions
    0

    Default Login Page: Hide Column Left/Right settings not working

    Hi,

    I have a zc155e and my template is a clone of Responsive Classic.

    Here is my login page:
    https://002mc.justmedical.biz/index.php?main_page=login

    Under admin Configuration > Customer Details, I have set both of the following to TRUE:
    Customer Authorization: Hide Column Left
    Customer Authorization: Hide Column Right

    Yet, as you can see, both columns still appear on the catalog's login page!

    Am I missing something?

    Or should I just track down the header for that page and insert this above <body>:
    <style>
    .leftBoxContainer, .rightBoxContainer {display: none;}
    </style>

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    6,339
    Plugin Contributions
    8

    Default Re: Login Page: Hide Column Left/Right settings not working

    What's your Customer Shop Status and Customer Approval Status?

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    6,977
    Plugin Contributions
    63

    Default Re: Login Page: Hide Column Left/Right settings not working

    Quote Originally Posted by dbltoe View Post
    What's your Customer Shop Status and Customer Approval Status?
    Exactly! Those hide/show configuration values are only used when the Customer Approval Status is set to 1.

    You'll need to edit your template's /common/tpl_main_page.php, locating this (in the default, anyway) code section:
    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;
    }
    and changing that to:
    Code:
    // the following IF statement can be duplicated/modified as needed to set additional flags
    if (in_array($current_page_base,explode(",",'login,create_account')) ) {
      $flag_disable_right = true;
      $flag_disable_left = true;
    }

  4. #4
    Join Date
    Jul 2012
    Posts
    11,627
    Plugin Contributions
    13

    Default Re: Login Page: Hide Column Left/Right settings not working

    Also haven't stated if you want the left and right side boxes to always be disabled on the login page or if all pages until authorized. Each has a different solution. To address authorized customers will need to go down the path suggested by dbltoe.

    As to "just adding" css related code, suggest looking at the readme in includes/templates/template_default/css instead of the above in the OP. There is an alternative also that doesn't push the html to the customer to be "hidden" by css.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  5. #5
    Join Date
    Apr 2010
    Posts
    884
    Plugin Contributions
    0

    Default Re: Login Page: Hide Column Left/Right settings not working

    Oh, sorry I didn't give enough info! I didn't realize those settings were related.

    Customer Shop Status - View Shop and Prices = 0
    Customer Approval Status - Authorization Pending = 0

    @MC, I don't want the left/right columns while my customer is creating an account.

    @lat9, I'll use your code fix. Thanks!

  6. #6
    Join Date
    Apr 2010
    Posts
    884
    Plugin Contributions
    0

    Default Re: Login Page: Hide Column Left/Right settings not working


  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    6,977
    Plugin Contributions
    63

    Default Re: Login Page: Hide Column Left/Right settings not working

    You're very welcome, @Feznizzle!

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    6,339
    Plugin Contributions
    8

    Default Re: Login Page: Hide Column Left/Right settings not working

    Don't forget to take a look at what MC# was talking about in the css folder. The file is CSS_read_me.txt. Good stuff in there. You can do a LOT with an extra stylesheet without having to edit a php file. Keeps you from losing it in a upgrade or mod insertion.

    You would probably create a login.css and add {display:none;} for each of the columns.

  9. #9
    Join Date
    Apr 2010
    Posts
    884
    Plugin Contributions
    0

    Default Re: Login Page: Hide Column Left/Right settings not working

    Thanks for the nudge, dbltoe. I just re-read the readme file contained in the css folder, glad I did. I had long forgotten about the page specific css option.

    In case anybody else stumbles in here looking to solve the same issue, what MC and dbltoe are pointing to is that there is a way to handle this: page specific css.

    To do that:
    1. Go to /includes/templates/your_template/css/
    2. Add a new file called login.css
    3. In that file, add whatever you need:
    .leftBoxContainer, .rightBoxContainer {display: none;}

    I haven't tested this as lat9's solution already did the trick, but you may want to consider it. The advantage being that using css will reduce work load during future upgrades.

    In my case, the tpl_main_page.php already contains numerous alterations and will have to be carefully merged anyway.

 

 

Similar Threads

  1. modules not showing in left or right column
    By louishen in forum Addon Sideboxes
    Replies: 6
    Last Post: 11 Sep 2010, 11:12 AM
  2. Not working: Customer Authorization: Hide Column Left ?
    By seanzhu in forum Customization from the Admin
    Replies: 2
    Last Post: 7 Sep 2010, 12:00 PM
  3. I want to hide the left column for not-logged-in visitors
    By oluja in forum General Questions
    Replies: 15
    Last Post: 23 Mar 2009, 02:51 PM
  4. Hide Column Left switch does not work
    By sfatula in forum Bug Reports
    Replies: 2
    Last Post: 27 Sep 2006, 07:43 PM

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