Results 1 to 10 of 15

Hybrid View

  1. #1

    Default Re: must log in to browse hides EZ-Pages...

    http://maharani.servdot.com/zencart/...page=page&id=1

    ^ would be the link to the "Home" EZ-page but when you go to it, it redirects you to the login page.

    I hard coded the "TEST LINK" in the header to test this theory with no luck :-(

    Please take a look to make sure I did what you were thinking.

  2. #2
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: must log in to browse hides EZ-Pages...

    What happens when you switch from current template to default, Classic template..

  3. #3

    Default Re: must log in to browse hides EZ-Pages...

    I get the same behavior when using the default template also.

  4. #4
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: must log in to browse hides EZ-Pages...

    http://www.zen-cart.com/forum/showthread.php?t=66495
    Seems that when zencart has your current settings, then
    viewing ezpages is not available...see similar post above..
    suggest you contact zencart developer for clarification..
    i.e drbyte, ajeh, kim,wilt

  5. #5

    Default Re: must log in to browse hides EZ-Pages...

    Alright, thanks for the info. According to that post you linked it looks like this has been happening since 2007 :-(

  6. #6

    Default Re: must log in to browse hides EZ-Pages...

    The following information will tell you how to allow anyone to view your ez-pages even when zen cart is set to "customer must be logged in to browse". This is an ideal solution for wholesale companies who need an informational website but only want vendors seeing their products and prices.

    NOTE: I take no responsibility in any unintended side effects caused by making the following changes. Use this tip at your own risk.

    First add the following line to /zencart/includes/filenames.php
    define('FILENAME_PAGE', 'page');
    (save yourself some future headache and put it where it belongs, the file is in alpha order)

    Next edit the following line in /zencart/includes/init_includes/init_customer_auth.php
    if (!in_array($_GET['main_page'], array(FILENAME_LOGIN, FILENAME_LOGOFF, FILENAME_CREATE_ACCOUNT, FILENAME_PASSWORD_FORGOTTEN, FILENAME_CONTACT_US, FILENAME_PRIVACY))) {
    to say
    if (!in_array($_GET['main_page'], array(FILENAME_LOGIN, FILENAME_LOGOFF, FILENAME_CREATE_ACCOUNT, FILENAME_PASSWORD_FORGOTTEN, FILENAME_CONTACT_US, FILENAME_PRIVACY, FILENAME_PAGE))) {
    After making these changes you should be able to view your EZ-pages even when your cart is set to "customer must be logged in to browse"

    Hope this helps someone.

  7. #7
    Join Date
    Mar 2007
    Posts
    86
    Plugin Contributions
    0

    Default Re: must log in to browse hides EZ-Pages...

    Hi Guys,

    Have tried to use this method to have the index page show when customer is set to login in to browse. I have tried the method below and it works but it also lets all other pages show as well it breaks the must log in module. Does any one know why this might be.

    Regards
    Rottie

  8. #8
    Join Date
    Mar 2011
    Location
    Ottawa, Canada
    Posts
    3
    Plugin Contributions
    0

    Default Re: must log in to browse hides EZ-Pages...

    TO SHOW THE HOME PAGE:

    After hours of searching the forums and finally figuring this out on my own...

    Edit includes/init_includes/init_customer_auth.php

    Around line 115
    * customer must be logged in to browse
    */
    // if (!in_array($_GET['main_page'], array(FILENAME_LOGIN, FILENAME_CREATE_ACCOUNT))) {
    if (!in_array($_GET['main_page'], array(FILENAME_LOGIN, FILENAME_LOGOFF, add FILENAME_DEFAULT

    The home page file name is FILENAME_DEFAULT

  9. #9
    Join Date
    Mar 2011
    Location
    Ottawa, Canada
    Posts
    3
    Plugin Contributions
    0

    Default Re: must log in to browse hides EZ-Pages...

    After further review.... this is the correct format:

    First edit includes/filenames.php

    Scroll down to where you see FILENAME_DEFAULT (index) and change to: FILENAME_DEFAULT_INDEX


    THEN edit includes/init_includes/init_customer_auth.php

    Around line 115
    * customer must be logged in to browse
    */
    // if (!in_array($_GET['main_page'], array(FILENAME_LOGIN, FILENAME_CREATE_ACCOUNT))) {
    if (!in_array($_GET['main_page'], array(FILENAME_LOGIN, FILENAME_LOGOFF, add FILENAME_DEFAULT_INDEX

    And that's it. You'll now be able to view the index page while product categories are 'log in to view'.

 

 

Similar Threads

  1. v139h Displaying info on main page when "Must log in to browse"
    By jenpen in forum Basic Configuration
    Replies: 5
    Last Post: 9 Jun 2012, 07:33 AM
  2. Customer shop status: must login to browse
    By red hot in forum Basic Configuration
    Replies: 4
    Last Post: 15 Jul 2008, 07:58 PM
  3. 1.3.7 Must login to browse don't work
    By arodrpin in forum Bug Reports
    Replies: 5
    Last Post: 4 Jun 2007, 07:04 PM
  4. Must login to browse No longer exists
    By jaxbakers in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Jul 2006, 06:10 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