Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    325
    Plugin Contributions
    0

    Default Displaying info on main page when "Must log in to browse"

    Hi,
    I want the main page to display some basic store info and contact details, which is visible when I have set the Shop Status to "Must log in to browse", even before logging in. Is this possible? Otherwise it's not a very friendly look.

  2. #2
    Join Date
    Apr 2012
    Posts
    170
    Plugin Contributions
    0

    Default Re: Displaying info on main page when "Must log in to browse"

    how about put the info into:
    if($_SESSION['customer_id'] == '')
    {echo "please login to see";}
    else
    {echo "write your info here";}

  3. #3
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    325
    Plugin Contributions
    0

    Default Re: Displaying info on main page when "Must log in to browse"

    That looks pretty useful. Which file is that code in? Can I put HTML tags in there?

  4. #4
    Join Date
    Apr 2012
    Posts
    170
    Plugin Contributions
    0

    Default Re: Displaying info on main page when "Must log in to browse"

    it depends where your info is showed ,such as tool-define page editor-define main page.
    optimizing my only one zencart template untill it becomes perfect.
    ting_cbm#hotmail.com

  5. #5
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    325
    Plugin Contributions
    0

    Default Re: Displaying info on main page when "Must log in to browse"

    Sorry, I don't understand. Do you mean that I put that code in the content area for the main page in Define Pages Editor? Tried that, didn't work.

  6. #6
    Join Date
    Sep 2007
    Location
    Far South Coast, NSW, Australia
    Posts
    325
    Plugin Contributions
    0

    Default Re: Displaying info on main page when "Must log in to browse"

    OK, I found another thread which gave me an idea. The store (handily) was in a subfolder /catalog/ in the root directory, with the index.html file in the root redirecting to the /catalog/ folder. So, I thought, easy peasy, I'll just remove the redirect and make that index.html file into a new front page, introducing the business, with a link to the log in page /catalog/index.php.

    So I did that, three days ago, but I'm still getting redirected to catalog/index.php. I can't work out why. Can anyone else?

    www.aushiya.com.au

    Thanks!

 

 

Similar Threads

  1. "Log In" "Log off" or main buttons wont enable. Css is disabled..
    By debishandbag in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Jan 2011, 01:01 PM
  2. "Also Purchased" Not Displaying on Product Info Page
    By nlcabrera in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Sep 2010, 11:31 PM
  3. Login page not main page when must be authorised to browse
    By shalesey in forum General Questions
    Replies: 8
    Last Post: 11 May 2010, 11:53 AM
  4. Change "Log In" tab on main page to "Log In/Register"
    By mcpisik in forum Basic Configuration
    Replies: 4
    Last Post: 17 Feb 2007, 01:23 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
  •