Forums / Templates, Stylesheets, Page Layout / Change product description when logged in

Change product description when logged in

Views: 536

Results 1 to 2 of 2
3 Sep 2015, 3:46 AM
#1
aestheticdesign avatar

aestheticdesign

New Zenner

Join Date:
Aug 2011
Posts:
29
Plugin Contributions:
0

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.

3 Sep 2015, 11:20 AM
#2
balihr avatar

balihr

Totally Zenned

Join Date:
Oct 2008
Location:
Croatia
Posts:
1,805
Plugin Contributions:
22

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

if (zen_not_null($products_url)) {

to

if (zen_not_null($products_url) && isset($_SESSION['customer_id'])) {

This will make the additional URL show only for logged in customers.

My site - Pro ZC Help
My portfolio | My plugins