We need to modify the existing registration workflow that should restrict user registration if there are no orders placed with his email-id before. That is, to become a member/customer, user should have placed at least one order. Below is our requirement:
Check if customer who is trying to register has already placed an order before.
If email-id is present then the registration flow continues.
Else, it should prompt the user to complete an order before registering.
Could someone please let me know what is the best possible way to add this feature into our application ? Does it involve in creating private app or could it be done from code directly.