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

Automate Membership

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 07-23-2019, 07:01 AM
 
Peer Keter Peer Keter is offline
    
Join Date: Jun 2019
Posts: 1
 

Default Automate Membership

Hi.

I would like to auto set membership by email domain.
for example:

When New user registered with the email User@domain.com he will be automatically assign to a specific membership (without the need to approve the pending membership)

I saw in the KB examples to modify it on Xcart4 but not on Xcart5
(by Modify the code in include/check_useraccount.php which i can't find in Xcart 5)

Thanks,
Peer.
__________________
5.3
Reply With Quote
  #2  
Old 07-24-2019, 11:14 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Automate Membership

Hi @Peer Keter,

Thank you for your message and welcome to X-Cart forums!

Such a change will require creating a custom module in X-Cart 5.
Did you have a look at our getting started guides here: https://devs.x-cart.com/getting_started/

Your mod will essentially implement decoration of the \XLite\Controller\Customer\Profile::postprocessAct ionRegisterSuccess() method and defining the membership assignment there.

Let me know if it makes sense.

Tony

Quote:
Originally Posted by Peer Keter
Hi.

I would like to auto set membership by email domain.
for example:

When New user registered with the email User@domain.com he will be automatically assign to a specific membership (without the need to approve the pending membership)

I saw in the KB examples to modify it on Xcart4 but not on Xcart5
(by Modify the code in include/check_useraccount.php which i can't find in Xcart 5)

Thanks,
Peer.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote

The following user thanks tony_sologubov for this useful post:
kellenmurphy (07-25-2019)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 07:17 AM.

   

 
X-Cart forums © 2001-2020