Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2011
    Posts
    29
    Plugin Contributions
    0

    Default Change product description when logged in

    Is there an easy way to have a different product description load if the user is logged in? I want to include a link to some further information, but display that link if they are logged in.

    Using 1.54 with a custom theme.

  2. #2
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,741
    Plugin Contributions
    22

    Default Re: Change product description when logged in

    Is it JUST the link? You could use the "more info" URL that's built in with Zen Cart and only modify your template's tpl_product_info_display.php and change
    Code:
    if (zen_not_null($products_url)) {
    to
    Code:
    if (zen_not_null($products_url) && isset($_SESSION['customer_id'])) {
    This will make the additional URL show only for logged in customers.

 

 

Similar Threads

  1. v150 Show Product Description only when logged in
    By fsu711 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 4 Apr 2012, 11:57 PM
  2. Additional Product Description info IF logged in
    By chadderuski in forum General Questions
    Replies: 2
    Last Post: 9 May 2011, 03:58 PM
  3. Shows VAT incl. price when logged out, and ex-VAT when logged in
    By mrroy44 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 7
    Last Post: 10 Mar 2010, 01:39 PM
  4. Replies: 2
    Last Post: 23 Oct 2008, 06:33 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