Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2007
    Posts
    4
    Plugin Contributions
    0

    Default Different Main Page Text for Customers Who Are Logged In

    I would like to have different text for on the landing page when customers login to their account (different from that when you simply pull up the cart page and are not logged in). I know how to change the Main Page content, but how can I assign a different page to the landing when a customer logs in?

    Here's what I am trying to accomplish: a benefit of being an online customer will be to give them access to some online subscriptions that our company have. I thought that I would put these links on the landing page when customer log in. It won't keep the information entirely secure, but they will have to login to get the information if they have not saved it themselves.

  2. #2
    Join Date
    Jan 2006
    Posts
    420
    Plugin Contributions
    0

    Default Re: Different Main Page Text for Customers Who Are Logged In

    It is possible to do , as you could check for the session value :

    if (isset($_SESSION['customer_id'] { }


    then if it returns true , echo some stuff within the define_main page if false , then it will display the normal part of define_main ...

    Take a look at how the customer greeting works on a vanilla install , and the functions_customers file may help you on your way.


    hope that points you down the right path .
    Various Zen cart sites !

 

 

Similar Threads

  1. v151 Different main page when logged in
    By DigiBooks in forum General Questions
    Replies: 5
    Last Post: 11 Jul 2015, 06:29 PM
  2. Customers are being logged out
    By marypotter in forum General Questions
    Replies: 5
    Last Post: 24 Jan 2012, 12:17 AM
  3. Show/hide categories on main page/showing to logged in customers only
    By igi2011 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Oct 2011, 01:56 PM
  4. customers cannot checkout their products after they are logged out
    By naturalbornkiller in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 22 Aug 2011, 08:26 PM
  5. Who's Online shows that my customers are on /images/
    By mugshot in forum General Questions
    Replies: 1
    Last Post: 19 Dec 2009, 01:56 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