| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Pending membership | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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! |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#3
|
|||||||
|
|||||||
![]() 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! |
|||||||
#4
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#5
|
|||||||
|
|||||||
![]() 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! |
|||||||
#6
|
|||||||||
|
|||||||||
![]() 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 |
|||||||||
#7
|
|||||||
|
|||||||
![]() 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! |
|||||||
#8
|
|||||||
|
|||||||
![]()
__________________
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! |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|