The CyberStore shopping cart plays an integral part in the shopper's e-commerce journey. In this topic the capabilities and logic used in the cart are explained.
First introduced in CyberStore 2023, the Persistent Cart is a feature of the CyberStore that ties the shopper to the contents of a single cart while persisting the items in the cart between logins so that returning shoppers will find items previously selected still awaiting purchase. This feature removes the dependency of a session as one of the unique associations of a shopping cart. In order for a cart to persist the shopper must have a registered Account. Anonymous shopper's will not have their cart selections maintained when their session ends.
The Persistent Cart allows a shopper to maintain multiple active sessions while ensuring that any changes to the cart in one session carry over to all active sessions.
When a logged-in shopper is not actively browsing the site, their cart becomes an $$Abandoned Cart$$ and its contents are no longer taken into accout for any inventory calculations.
Restoring Abandoned Carts
Whenever a previously abandoned cart is restored to a new session, the cart lines will be recalculated to ensure that pricing accurately reflects the now current pricing, and all availability and view list rules for the cart will be applied.
During recalculation, lines will be removed from the cart whenever any of the following occurs to the Item since the last time the cart was active.
When an in progress order is cancelled prior to the completion of the order, all pending checkout information will be deleted, the items in the cart at the time that checkout began will be in the cart, and the lock will be remove resulting in re-enabling the add to cart and edit functions to the shopper.
The shopping cart item count is the total number of items in the cart at a given point of time. This is calculated by adding up all quantites of all lines in the cart.
The shopping cart automatically recalculates whenever a cart is released from being abandoned, or a line is added, updated or deleted. This is true whether the changes are made interactively in the ShoppingCartDisplayControl, the ShoppingCartQuickEntryControl or programatically using any of the CyberStore Cart Web Service or CyberStore Inventory Web Service methods.
Recalculation performs the following checks: