X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Pending membership (https://forum.x-cart.com/showthread.php?t=62466)

chiactivate 01-27-2012 08:11 PM

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!

qualiteam 02-03-2012 03:47 AM

Re: Pending membership
 
You are looking for the templates code, right?

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

chiactivate 02-03-2012 11:52 AM

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!



cflsystems 02-03-2012 02:23 PM

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}

chiactivate 02-03-2012 03:21 PM

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}



cflsystems 02-03-2012 03:43 PM

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}

chiactivate 02-14-2013 06:16 PM

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

chiactivate 02-19-2013 10:03 AM

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

:D/


All times are GMT -8. The time now is 04:35 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.