Migrate Customers Data
In the scenario where an e-commerce platform supports guest users, the following steps need to be considered for migrating customer data seamlessly:
Initial Interaction:
Users open the website as non-authenticated visitors.
They browse products and may access an iframe for editing or customization.
Add to Basket:
Users add items to the basket while still in a non-authenticated state.
Login Process:
Users proceed to login to their accounts.
Upon login, depending on the e-commerce platform's functionality, basket items are typically migrated to the logged-in customer's account.
Handling Infigo Jobs:
Infigo has a design limitation where orders cannot have job owners from different users.
When users were guests (non-authenticated), they might not have had an email associated with their basket items.
To handle this in Infigo, a new user may need to be created with a random GUID to represent the non-authenticated user.
Once users log in, they already have a user in the e-commerce platform, and a call needs to be made to Infigo to migrate jobs to the new user's account.
If migrating jobs at the login stage is not feasible, it can be done before placing the order in Infigo.
This process ensures that users' basket items and associated job data are seamlessly transferred between the non-authenticated and authenticated states, maintaining consistency and preserving user data integrity.