Configurable basket settings include persistence across shopper sessions, the treatment of duplicate product line items, and the maximum number of product line items per basket. These preferences are site-specific, and a customized storefront doesn’t necessarily evaluate them.
To set basket behavior preferences for the current site, select
To configure the behavior of baskets when user sessions start and end, use the persistence and lifetime settings.
The following rules are always in effect, regardless of the settings.
The Basket Persistence setting defines which customers can access saved baskets from previous sessions. The basket lifetimes define how long a saved basket remains available.
Basket Persistence | Description |
---|---|
Baskets Not Persistent | When a session ends, the basket is not saved. Every session begins with an empty basket. |
Baskets Persistent for Authenticated Customers Only | When a registered customer’s session ends, the current basket is cleared but its contents are saved. If that customer opens a new session and logs in within the basket lifetime for registered customers, the saved basket is restored. If the customer started a new basket before logging in, the saved basket is available via API calls. |
Baskets Persistent for Registered Customers Only | When a registered customer’s session ends, the current basket is cleared but its contents are saved. If the system recognizes that customer in a new session within the basket lifetime for registered customers, the saved basket is restored. If the customer started a new basket before being recognized, the saved basket is available via API calls. |
Baskets Persistent for All Customers | When any customer’s session ends, the current basket is cleared but its contents are saved. If that customer opens a new session within the basket lifetime for the appropriate customer type, the saved basket is restored. |
You can define different lifetimes for registered and unregistered (guest) customers. The following rules apply to basket lifetimes:
The Add Product to Basket Behavior setting controls the behavior when a customer tries to add a product that’s identical to one in their basket. Products are compared using the following rules:
Add Product to Basket Behavior | Description |
---|---|
Disallow Repeats | Ignore the request. |
Increment Quantity | Add to the quantity of the existing product line item. This setting is the default. |
Allow Repeats | Add another product line item for the same product. |
To limit the number of product line items allowed in a basket, enter a value in the Max Number of Product Line Items field. Attempting to add product line items beyond this limit returns an error. The limit considers only the number of lines, not their quantities. The default value is 50.