Results 1 to 10 of 12

Hybrid View

  1. #1
    Join Date
    Apr 2010
    Posts
    897
    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
    9,151
    Plugin Contributions
    11

    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
    12,492
    Plugin Contributions
    88

    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
    16,734
    Plugin Contributions
    17

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

  5. #5
    Join Date
    Apr 2010
    Posts
    897
    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
    897
    Plugin Contributions
    0

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


  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

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

    You're very welcome, @Feznizzle!

 

 

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