View Single Post
  #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, 215 views)
__________________
Sincerely yours,
Ildar Amankulov
Head of Maintenance group
Reply With Quote