Carts

Carts are one of the core concepts of online commerce.

Here you can find an overview of the Emporix carts concept, along with its features and benefits.

Purpose

Carts allow your customers to compile a list of items for purchase. The Emporix carts concept aims to simplify cart management by introducing features such as cart merging or automatic deleting of inactive carts.

Features

The Emporix carts concept introduces a set of features that make cart management easier:

Feature
Description

Anonymous and customer carts

The Emporix e-commerce system distinguishes two types of carts:

  • Anonymous carts for customers who are browsing the store without logging in.

  • Customer carts for logged-in customers.

Cart merging

You can merge a customer's anonymous cart with their customer cart to preserve the shopping flow.

ℹ️ See: Cart merging.

Inactivity time

If a cart is inactive for over 30 consecutive days, it is automatically deleted from the database.

Statuses

A cart can either be active (OPEN) or inactive (CLOSED). A cart's status is automatically set to CLOSED in the following cases:

  • The cart belonged to an anonymous customer, and it was merged with a logged-in customer's cart.

  • The cart went through the checkout process.

⚠️ You can only perform operations on OPEN carts.

Overview

The following section provides more information on cart management features in the Emporix e-commerce system.

Cart merging

Sometimes a customer will browse products and add them to the cart before logging in. In such a case, you can merge their anonymous cart with their customer cart to preserve the shopping flow.

Once the carts are merged, the anonymous cart's status is set to CLOSED.

You can use the merging functionality to perform the following actions:

  • Merge an anonymous cart with a customer cart.

  • Merge multiple anonymous carts with a customer cart.

Common conflicts that may occur while merging carts are described in the table below.

Conflict
Approach of the merging functionality

Both carts contain the same items.

The quantities of the items are added together.

The same item is added to both carts, but one is added as an itemYrn and one as a Product object.

The item is treated as two separate entries. The quantities of the item are not added together.

The carts use different currencies. Both carts are empty.

The currency of the customer cart is preserved.

The anonymous cart includes items that are out of stock.

The items are preserved.

⚠️ If a customer proceeds to checkout, an error message appears, prompting the customer to remove said items from their cart.

The carts use different custom attributes.

The custom attributes are consolidated.

The carts use the same custom attributes, but their values are different.

The anonymous cart's custom attribute values are preserved.

Last updated

Was this helpful?