Flow Overview

Step-by-Step Guide
1. Is the User Authenticated?
Authenticate User: Check if the user is authenticated on your platform.
If the user is authenticated, all associated jobs (or designed items) must be owned by the same Infigo Customer ID. This Customer ID should uniquely identify each e-commerce customer, enabling consistent job and order management.
you can use Migrate User to migrate jobs from a guest user to a registered user.
2. Linking E-Commerce Users with Infigo Customers
In Infigo, each customer placing an order should be linked to a user in your system. Here’s how this linking functions in different scenarios:
Registered Customer Role: The e-commerce customer must have a registered role in Infigo, as only registered customers—not guests—can place orders.
Single-Customer Constraint for Orders: An order in Infigo can only contain jobs associated with a single customer. Therefore, if your platform allows customers to design multiple products/jobs, all jobs within a single order must belong to the same customer ID in Infigo.
3. Handling User Sessions and Maintaining Customer References
To ensure consistency between your system and Infigo:
Keep a reference in your system for both the logged-in customer and the corresponding Infigo Customer ID. This helps manage orders seamlessly across customer sessions.
Alternatively, rely on the customer linked with the first job created in Infigo for the session, ensuring all subsequent jobs in the basket are associated with the same customer.
4. Guest and Logged-In User Flows
Managing session transitions from guest to authenticated user requires special consideration:
Guest Flow: When a guest user designs a product and adds it to the basket, they’re assigned a temporary customer ID.
Login and Cart Migration:
If the guest logs in, the platform should migrate their cart items to the authenticated session.
After login, all jobs added should reflect the authenticated user’s Customer ID in Infigo to maintain order compatibility.
This flow avoids scenarios where the basket contains jobs linked to different customers, which could prevent order placement.
5. Opening the Editor and Adding Products to the Basket
Open the Infigo editor in an iframe, allowing users to design their products directly on your platform.
Each product/job should be linked to the user’s session to ensure consistency in the customer reference.
6. Order Placement
Once all designs are finalized, the user can place an order. Ensure:
All jobs in the basket are linked to the same Infigo Customer ID to allow for successful order processing. - Example of migrate customer
The platform’s session management confirms that the correct user information is passed to Infigo for order placement and tracking.