Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2004
    Location
    Wakefield. UK
    Posts
    89
    Plugin Contributions
    0

    help question Make link available after log in.

    I have just successfully installed the Price List add-on, how ever the problem i have is that i want to make a link for it but i only want the link made available to customers that have logged in. Can some please tell me how this can be done.

    Thanks in advance

    Mark

  2. #2
    Join Date
    Dec 2004
    Location
    Wakefield. UK
    Posts
    89
    Plugin Contributions
    0

    Default Re: Make link available after log in.

    Quote Originally Posted by Graphicman View Post
    I have just successfully installed the Price List add-on, how ever the problem i have is that i want to make a link for it but i only want the link made available to customers that have logged in. Can some please tell me how this can be done.

    Thanks in advance

    Mark

    Is there anybody on;ine that can help me with this.

    Cheers

  3. #3
    Join Date
    Dec 2004
    Location
    Wakefield. UK
    Posts
    89
    Plugin Contributions
    0

    help question Re: Make link available after log in.

    Quote Originally Posted by Graphicman View Post
    Is there anybody on;ine that can help me with this.

    Cheers
    Quote Originally Posted by Graphicman View Post
    I have just successfully installed the Price List add-on, how ever the problem i have is that i want to make a link for it but i only want the link made available to customers that have logged in. Can some please tell me how this can be done.

    Thanks in advance

    Mark

    Come one anyone, can someone please have a look at this for me.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Make link available after log in.

    When a customer is logged in the:
    $_SESSION['customer_id']

    is > 0 ...

    So you could use:
    PHP Code:
    if (isset($_SESSION['customer_id']) and $_SESSION['customer_id'] != '') {
    // do something
    } else {
    // do something else

    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Dec 2004
    Location
    Wakefield. UK
    Posts
    89
    Plugin Contributions
    0

    help question Re: Make link available after log in.

    Quote Originally Posted by Ajeh View Post
    When a customer is logged in the:
    $_SESSION['customer_id']

    is > 0 ...

    So you could use:
    PHP Code:
    if (isset($_SESSION['customer_id']) and $_SESSION['customer_id'] != '') {
    // do something
    } else {
    // do something else

    Thanks for the reply Linda, but i'm sorry you've totally lost me... Where do i put this code and also what about the actual link.
    Many thanks

  6. #6
    Join Date
    Dec 2004
    Location
    Wakefield. UK
    Posts
    89
    Plugin Contributions
    0

    help question Re: Make link available after log in.

    Hi, I still have nt been able to do this. I really could do with some help with this. I have searched these forums but cannot for the life of me find a solution.

    Thanks

  7. #7
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Make link available after log in.

    You could use the blank sidebox mod and put the link to the price list in there, along with the PHP that includes the code Ajeh provided to only show that sidebox after login.

    That said, unless there's something whiz-bang special about your site or product line, I think making potential customers log in (create an account) before they can view prices is a big mistake.

  8. #8
    Join Date
    Dec 2004
    Location
    Wakefield. UK
    Posts
    89
    Plugin Contributions
    0

    Default Re: Make link available after log in.

    Quote Originally Posted by stevesh View Post
    You could use the blank sidebox mod and put the link to the price list in there, along with the PHP that includes the code Ajeh provided to only show that sidebox after login.

    That said, unless there's something whiz-bang special about your site or product line, I think making potential customers log in (create an account) before they can view prices is a big mistake.
    Hi Steve

    Thanks for your reply. The site is an wholesale site for retailers not the general public. The customers have to be recognised has existing or registered customer and have an account with the company before they get an online account. All purchashes that are made are invoived via that account, no payment is taken online. Basicly if the general public knew the prices that was paid at wholesale they would never purchase in store, lol.

    The site sells adult dvd's, the link is here, I would like to put the link under the information down the right hand side.
    What i'm trying to do is completely new to me. As i said i don't even know where to put this php, if you could advise me accordingly i would be very grateful.

  9. #9
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Make link available after log in.

    I see what you mean. I'm not sure how the Price List mod works, but, since all of your authorized customers are pre-appoved, why not let the mod do what it does, and set Admin - Configuration - Customer Details - Customer Shop Status - View Shop and Prices to 1 ?

    You can strip the new customer create account stuff from the login page template file, so all your customers see is the log in part.
    Last edited by stevesh; 4 Aug 2008 at 06:49 PM.

 

 

Similar Threads

  1. v155 Data Available - Make stock available mod , does it exist ?
    By mesnitu in forum General Questions
    Replies: 3
    Last Post: 19 Jun 2016, 08:35 PM
  2. Customer page only available after log in?
    By znowflake in forum General Questions
    Replies: 2
    Last Post: 1 Nov 2010, 04:41 PM
  3. Broken image link in IE after customer log in
    By christinefred in forum General Questions
    Replies: 4
    Last Post: 12 Aug 2009, 10:36 PM
  4. Replies: 7
    Last Post: 21 May 2008, 07:31 PM
  5. log off link - how do I make it only appear when logged on?
    By gsdcypher in forum General Questions
    Replies: 23
    Last Post: 2 Apr 2008, 12:28 AM

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