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

Limiting access to pages by memberships

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-02-2009, 05:54 PM
 
gman gman is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 211
 

Default Limiting access to pages by memberships

How can I limit access to certian pages by memebrship? Say if I only wanted the wholesale members to see a static page and display a message that they must be a wholesale member to view the page.
__________________
Gman



X-Cart Gold 4.6.0
Reply With Quote
  #2  
Old 08-02-2009, 06:10 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Limiting access to pages by memberships

how about an if statement based on membership?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 08-02-2009, 06:43 PM
 
gman gman is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 211
 

Default Re: Limiting access to pages by memberships

Steve,
I am a little bit behind in reworking pages in xcart. Can you hook a brother up, so to speak with the right code and where to put it?

Thanks for your time.

Also I see you have CFL. Do they make a USB to S-video or composit video adapter?
__________________
Gman



X-Cart Gold 4.6.0
Reply With Quote
  #4  
Old 08-02-2009, 07:40 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Limiting access to pages by memberships

I will have to look into this
CFL Systems has nothing to do with CFL (I suppose you mean cfl bulbs)
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 08-02-2009, 07:46 PM
 
gman gman is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 211
 

Default Re: Limiting access to pages by memberships

No I went to the link on your sig and saw you were a cable store. I was looking for a usb to composite adapter cable. LOL
__________________
Gman



X-Cart Gold 4.6.0
Reply With Quote
  #6  
Old 08-02-2009, 07:54 PM
 
gman gman is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 211
 

Default Re: Limiting access to pages by memberships

Here is some code I found but I don't believe the "level 1" part is correct.

Code:
{if $user_membership ne "Level 1"} I'm sorry, you don't have a membership, so this content is not accessible. Please click here to become a member and get the goodies. {else} Your real html content {/if}
__________________
Gman



X-Cart Gold 4.6.0
Reply With Quote
  #7  
Old 08-02-2009, 08:27 PM
 
gman gman is offline
 

eXpert
  
Join Date: Sep 2002
Posts: 211
 

Default Re: Limiting access to pages by memberships

Yeah the data variable label or Level1 is off and does not work. Any idea what the data variable and the correct "level" for dealer would be?
__________________
Gman



X-Cart Gold 4.6.0
Reply With Quote
  #8  
Old 08-02-2009, 08:32 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Limiting access to pages by memberships

Wholesale I believe is "W"
__________________
- Shane Munroe
Reply With Quote
  #9  
Old 08-03-2009, 04:16 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Limiting access to pages by memberships

Quote:
Originally Posted by gman
No I went to the link on your sig and saw you were a cable store. I was looking for a usb to composite adapter cable. LOL
Yes cables adapter... all of that
Also custom computer systems and xcart support
__________________
Steve Stoyanov
CFLSystems.com
Web Development
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 02:54 PM.

   

 
X-Cart forums © 2001-2020