Learn how to apply your knowledge of Carts implementation through practical SDK scenarios.
After completing this page, you should be able to:
- Analyze a multi-store business requirement to determine the appropriate Cart architecture and the key application logic needed to manage a unified customer Cart.
Global Threads, an online fashion retailer, is expanding. They currently have a successful US store (
gt-us
) and are launching a new Canadian store (gt-ca
). A key business requirement is a unified customer experience: a registered customer should have a single, shared Cart that persists as they switch between the US and Canadian sites. A product added from the US site should still be in the Cart on the Canadian site.As the developer on this project, you must first decide on the correct Cart architecture. Then, you need to implement logic that ensures a product can only be added if it's available in the currently selected store context (for example, a 'Canada-Only' jacket cannot be added from the US site).
Next module
Great work finishing the Implement Carts module! You're now ready for the next module, Implement Shopping Lists. See you there!