Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

show Options only if logged in

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 02-23-2007, 08:34 AM
 
igc igc is offline
 

Member
  
Join Date: Sep 2006
Posts: 19
 

Default show Options only if logged in

Hi,

I want to make the cart available only to wholsalers who have previously been approved and registered. We want to enable purchasing only if someone is logged in. I'd like to include the Options part of the product.php page only if the user is logged in. Is there a Smarty variable already assigned for this the purpose of checking login status?

Thanks, igc.
__________________
x-cart gold 4.1.3 on Linux/PHP 5.0.4/MySQL 4.1.20
Reply With Quote
  #2  
Old 02-23-2007, 08:37 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,054
 

Default Re: show Options only if logged in

Try
{if $login ne "" }
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 02-23-2007, 09:29 AM
 
igc igc is offline
 

Member
  
Join Date: Sep 2006
Posts: 19
 

Default Re: show Options only if logged in

Thanks.

Couldn't get any easier than that.

igc
__________________
x-cart gold 4.1.3 on Linux/PHP 5.0.4/MySQL 4.1.20
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:38 AM.

   

 
X-Cart forums © 2001-2020