X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Automate Membership (https://forum.x-cart.com/showthread.php?t=77059)

Peer Keter 07-23-2019 07:01 AM

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.

tony_sologubov 07-24-2019 11:14 AM

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.



All times are GMT -8. The time now is 05:57 AM.

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