Skip to main content

Code

Props

Props should be passed as attributes to the component element.
string
The path to the checkout page.Defaults to /checkout
string
The message to display when the cart is empty.Defaults to You have nothing in your cart.
string
The path to the shop page.Defaults to /shop

Features

Free Shipping Notification

The cart can display a progress message showing how much more a customer needs to spend to qualify for free shipping. This is configured in your web component settings, with a display threshold and a message for each market. Use {amount} in the message for what’s left to spend. The amount remaining is measured on the goods total after discounts, matching how the shipping method’s minimum order value is applied. The banner is hidden once there’s nothing left to add, so it never tells a customer they’re £0.00 away.

Checkout Requirements

If you’ve set a minimum item count or full-case requirement, the cart tells the customer what’s missing and won’t let them continue until it’s met. A customer who reaches checkout below the minimum is sent back to the cart.

Quantities

Each line has a quantity stepper. It stops at a product’s per-customer limit and says Max followed by the number per customer once it gets there. A Fixed package is one line in the cart, and its stepper changes how many bottles it holds, between the package’s minimum and maximum. Those bottles count towards the cart’s item total and any checkout requirements.

Items Removed by a Market Change

When a shopper switches market and something in their basket isn’t sold in the new one, it’s taken out, and both the market switcher and the cart say what went (see how a customer’s market is chosen). The cart’s note stays until the basket changes. The wording is yours to set under Item Removed on Market Change. Display product recommendations within the cart to encourage additional purchases. Configure the section title, number of products, and toggle visibility from your web component settings.

Container Styling

The cart component supports optional background colour and border styling, configurable from your web component settings.

Styling

The following parts are available to style the cart component:
The containing <div> around the cart.
The checkout button element.
The <img> element that contains the product image.
The containing <div> around the product image.
The “continue shopping” link element.
The quantity stepper on a line.
The stepper’s minus button.
The stepper’s plus button.
The quantity shown between the stepper’s buttons.
How often a subscription line is billed.
The free shipping notification.
The <div> that contains the empty cart message.
The pulsating loading elements that are shown when the cart is loading.