Online documentation - Websydian v6.0 |
Users Guide | Patterns Reference | WebsydianExpress | Search |
The Cart entity includes the three entities implementing Shopping Cart functionality:
These entities and their relations are depicted below:
Data model for Cart entities
A Cart is created during a user Session and holds a number of ItemLineInCart instances, each referring to an Item. During item selection, the CartStatus is "Non-order".
When a purchase is done and contact information submitted by the web user, a GenericUser instance is created and the Cart is set to refer to that GenericUser instance.
The CartStatus is changed to "Order" when the ordering is complete. This is done in the function MyShop.Data.Cart.Cart.Update.ProcessOrder.