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

Membership functionality on 4.7 - show/hide info

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-16-2018, 02:57 AM
 
pablo pablo is offline
 

Member
  
Join Date: Aug 2005
Posts: 27
 

Default Membership functionality on 4.7 - show/hide info

Hi

I've upgraded my shop to 4.7 and I need to show/hide info to customers in wholesale membership groups.

In my old shop I had this code:

{if $login ne "" and $user_account.membershipid eq 2}

which worked fine, but does nothing in 4.7.

$user_account doesn't seem to be available anymore!
Why?!?!?!

I can't see any variables we can use to do this anymore - don't understand why it has been removed.

Anybody know how I can achieve the same?
__________________
Version 5.3
Reply With Quote
  #2  
Old 05-21-2018, 01:50 AM
 
aim aim is offline
Advanced Staff Users
 

X-Cart team
  
Join Date: Dec 2008
Posts: 928
 

Default Re: Membership functionality on 4.7 - show/hide info

Quote:
Originally Posted by pablo
Hi

I've upgraded my shop to 4.7 and I need to show/hide info to customers in wholesale membership groups.

In my old shop I had this code:

{if $login ne "" and $user_account.membershipid eq 2}

which worked fine, but does nothing in 4.7.

$user_account doesn't seem to be available anymore!
Why?!?!?!

I can't see any variables we can use to do this anymore - don't understand why it has been removed.

Anybody know how I can achieve the same?

Hello,

You can apply the attached patch to achieve it.

Thank you.
Attached Files
File Type: diff assign_userinfo.diff (467 Bytes, 211 views)
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote

The following user thanks aim for this useful post:
qualiteam (05-21-2018)
  #3  
Old 05-23-2018, 10:45 PM
 
pablo pablo is offline
 

Member
  
Join Date: Aug 2005
Posts: 27
 

Default Re: Membership functionality on 4.7 - show/hide info

Thank-you - that worked perfectly.
__________________
Version 5.3
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 10:19 PM.

   

 
X-Cart forums © 2001-2020