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

Pending membership

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-27-2012, 08:11 PM
 
chiactivate chiactivate is offline
 

Senior Member
  
Join Date: Feb 2007
Location: Canada
Posts: 148
 

Default Pending membership

Anyone knows how I can get the pending member ship value?

I want to hide certain content for non members (including pending)

This what I have tried, but it didn't work.

{if ($main neq 'cart' or $cart_empty) and $main neq 'checkout' and $login ne '' and pending_membershipid}

Any help is really appreciated!
__________________
www.ChiMassager.com
X-cart Version 4.44

www.SEOMarketing30days.com
--> Download FREE SEO marketing Ebook (valued $50)
Attract more visitors and sales with top 5 most powerful SEO marketing strategies. Converting visitors into buyers, not just traffic!
Reply With Quote
  #2  
Old 02-03-2012, 03:47 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Pending membership

You are looking for the templates code, right?

If so, you can try something like this: {if $userinfo.membershipid ne ''}
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 02-03-2012, 11:52 AM
 
chiactivate chiactivate is offline
 

Senior Member
  
Join Date: Feb 2007
Location: Canada
Posts: 148
 

Default Re: Pending membership

but how about for pending membership?

They can only access the pages after we have approved the membership.

I am almost there:

{if ($main neq 'cart' or $cart_empty) and $main neq 'checkout' and $login ne '' and NOT pendingmembership }

Show content...

{/if}

How can I find the condition for pending membership?

Please HELP!


__________________
www.ChiMassager.com
X-cart Version 4.44

www.SEOMarketing30days.com
--> Download FREE SEO marketing Ebook (valued $50)
Attract more visitors and sales with top 5 most powerful SEO marketing strategies. Converting visitors into buyers, not just traffic!
Reply With Quote
  #4  
Old 02-03-2012, 02:23 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Pending membership

Alex is giving you the code - if $userinfo.membershipid is empty or 0 there is no membership assigned. If you know the exact membershipid you can use

{if $userinfo.membershipid eq x} where x is the memberhsipid OR if all memberhsips then

{if $userinfo.membershipid gt 0}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 02-03-2012, 03:21 PM
 
chiactivate chiactivate is offline
 

Senior Member
  
Join Date: Feb 2007
Location: Canada
Posts: 148
 

Default Re: Pending membership

hi Alex,

there is already membership assigned, but it still pending. I don't want the pending membership access the content


{if ($main neq 'cart' or $cart_empty) and $main neq 'checkout' and $login ne '' and NOT pendingmembership }

Show content....

{/if}


__________________
www.ChiMassager.com
X-cart Version 4.44

www.SEOMarketing30days.com
--> Download FREE SEO marketing Ebook (valued $50)
Attract more visitors and sales with top 5 most powerful SEO marketing strategies. Converting visitors into buyers, not just traffic!
Reply With Quote
  #6  
Old 02-03-2012, 03:43 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Pending membership

Until you approve the membership it is not assigned. So membership for non-members and pending members is the same - no membership, pending membership customers are not members. There is no need to use pending membership but if you insist - {if $userinfo.pending_membershipid gt 0}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #7  
Old 02-14-2013, 06:16 PM
 
chiactivate chiactivate is offline
 

Senior Member
  
Join Date: Feb 2007
Location: Canada
Posts: 148
 

Default Re: Pending membership

I tried so many times, but it still doesn't work.
it doesn't recognize the condition

I'm using 4.4
__________________
www.ChiMassager.com
X-cart Version 4.44

www.SEOMarketing30days.com
--> Download FREE SEO marketing Ebook (valued $50)
Attract more visitors and sales with top 5 most powerful SEO marketing strategies. Converting visitors into buyers, not just traffic!
Reply With Quote
  #8  
Old 02-19-2013, 10:03 AM
 
chiactivate chiactivate is offline
 

Senior Member
  
Join Date: Feb 2007
Location: Canada
Posts: 148
 

Default Re: Pending membership

I've found the solution here:
http://forum.x-cart.com/showthread.php?t=66131

__________________
www.ChiMassager.com
X-cart Version 4.44

www.SEOMarketing30days.com
--> Download FREE SEO marketing Ebook (valued $50)
Attract more visitors and sales with top 5 most powerful SEO marketing strategies. Converting visitors into buyers, not just traffic!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12:33 PM.

   

 
X-Cart forums © 2001-2020