Cart
On this page
The theme has two carts: the cart page and the cart drawer. Both show the same lines, totals and order note. Which one shoppers use is set in Theme settings > Cart. This page covers the settings of both, how lines with name and number printing look, and the blocks you can add to the cart page.
Cart type and add-to-cart feedback
Open Theme settings > Cart (see also Theme settings).
| Setting | What it does | Default |
|---|---|---|
| Cart type | Drawer opens the cart in a panel on the right when the shopper selects the cart button. Page goes to the cart page. | Drawer |
| After adding to cart | Show a confirmation message, or Open the cart drawer. The drawer option works only when the cart type is Drawer. | Show a confirmation message |
| Cart count | Number of items counts the total quantity. Number of lines counts each cart line once, whatever its quantity. This count is used in the header cart button, the cart page heading and the drawer title. | Number of items |
| Enable order note | Shows the order note field in the cart page and the cart drawer. | On |
| Message duration | How long the confirmation message stays on screen. | 5 s (3 to 10, step 1) |
On the cart page itself the cart button always goes to the page, even when the cart type is Drawer.
Confirmation message
With After adding to cart set to Show a confirmation message, a message appears each time something is added, from a product page, a product card, quick view, the print studio or a bundle:
- One line added: “Added: Product title”. When the line carries a name or number, they are included: “Added: Product title, Name: ROSS, Number: 9”.
- Several lines added at once (for example a bundle): “3 items added to your cart”.
- The message has a View cart link.
- When an add fails, a warning message shows the reason Shopify returns, for example that the requested quantity is not available.
With Open the cart drawer, the drawer opens instead and no message is shown.
Cart page
The cart template contains one section, Cart. Select Cart in the page selector of the theme editor. An empty cart shows “Your cart is empty” and a Continue shopping button.
The page has a table of lines on the left and an Order summary on the right. On narrow screens the summary moves under the lines. From 1024 pixels wide it stays in view while the shopper scrolls.
Cart page settings
| Setting | What it does | Default |
|---|---|---|
| Note for personalized items | A short text shown under the totals, only when a line has a visible property such as Name and Number. Leave blank to hide. See Footnotes. | Empty |
| Show accelerated checkout buttons | Shows Shop Pay, Apple Pay and the other accelerated checkout buttons under the Check out button, when the store has them turned on. | On |
| Color scheme | Color scheme of the section. | Scheme 1 |
| Top padding | Space above the section. | 48 px (0 to 120, step 4) |
| Bottom padding | Space below the section. | 96 px (0 to 120, step 4) |
Blocks
Select Add block in the Cart section. Blocks appear in the Order summary, in the order you set, between the order note and the Check out button.
| Block | What it does | Settings |
|---|---|---|
| Text | Shows a short rich text, for example a delivery note. | Text |
| Gift wrap | Adds a checkbox that puts a gift wrap product in the cart. One block per cart. See Gift wrap. | Product, Label, Description |
| Custom Liquid | Adds app snippets or custom Liquid code. | Custom Liquid |
| App blocks | Blocks from apps that support the cart. | Set by the app |
The Cart template starts with one empty Text block. An empty Text block shows nothing on the live store.
Cart drawer
The cart drawer is a section in the theme's section list and has two settings. In the theme editor, look for Cart drawer in the left panel of any page except the cart page. Selecting it opens the drawer in the preview, and deselecting it closes the drawer.
| Setting | What it does | Default |
|---|---|---|
| Color scheme | Color scheme of the drawer. | Scheme 1 |
| Note for personalized items | A short text shown under the subtotal, only when a line has a visible property such as Name and Number. Leave blank to hide. | Empty |
The drawer shows the lines, the subtotal, the footnote, the order note (collapsed behind “Add an order note”), a Check out button and a View cart link. It does not show accelerated checkout buttons, the gift wrap block or other blocks. Those are on the cart page only. The drawer is not loaded on the cart page, and it is not used when Cart type is Page.
Cart lines
Each line shows:
- The product image and the title, both linking to the product page with the same variant selected.
- The options of the variant as “Name: Value”, for example “Size: M”. Products with no real options show none.
- The selling plan name, for lines bought with a subscription or pre-order plan.
- Name and number, and any other line item properties (see below).
- Discounts applied to the line, with the amount.
- The price of one item, the quantity and the line total. When a discount lowers the price, the original price is shown struck through. A unit price, such as a price per 100 ml, is shown when the variant has one.
- A Remove link.
Quantity buttons and the typed quantity follow the quantity rules of the variant (minimum, maximum and step). When the rule is not the default, the line shows it, for example “Min 5, steps of 5, max 400”. A quantity change is saved shortly after the shopper stops adjusting it, and the totals update without a reload. If Shopify refuses a change, for example because of the stock, the line shows an error and the quantity goes back to the last accepted value.
The cart page shows prices with a currency code (for example $65.00 USD) when Theme settings > Pricing > Show currency codes is on. The drawer follows the same setting.
Printed items
A product with the printing option shows the printing in its line as follows. See Name and number printing for how the choice is made on the product page.
- The printing option is listed with the other options, for example “Printing: Player” or “Printing: Custom”. When the line has the first value of the option (normally None), the printing option is left out, so a plain shirt shows only “Size: M”.
- The name and number are listed as “Name: OKAFOR” and “Number: 9”. These are line item properties. Their labels are in the shopper's language when the line was added (for example Name and Number in English). Lines added in another language keep the labels of that language.
- The fee is not shown as a separate line. It is part of the price of the printed variant, so the line price already includes it.
- Two lines of the same variant with different names or numbers stay as separate lines. Lines with the same variant and the same name and number merge into one line with a higher quantity.
Line item properties that start with an underscore, and empty properties, are never shown. A property whose value is an uploaded file is shown as a link to the file.
Selecting the line title opens the product page with the same size and printing option selected. A typed name and number, or the chosen squad player, are not filled in again on that page.
Gift wrap
The Gift wrap block puts a checkbox in the Order summary of the cart page.
In the Cart section, select Add block, then Gift wrap.
In Product, pick the gift wrap product. The first variant of the product is used.
Optionally fill in Label (the text beside the checkbox; the product title is used when empty) and Description.
Behaviour:
- The checkbox shows the price of the gift wrap variant.
- Checking the box adds one gift wrap line to the cart. Clearing it removes the line.
- The gift wrap line shows a fixed quantity of 1 (“Quantity: 1”) instead of the quantity buttons. The shopper can still remove it with Remove.
- The block is hidden while the gift wrap product is unavailable, unless a gift wrap line is already in the cart. In the theme editor, an empty or unavailable block shows a hint instead.
The gift wrap line is a normal cart line that carries a hidden property. It does not follow the number of items in the cart.
Order note
With Enable order note on, shoppers can leave a note. On the cart page the note is a text field labelled Order note. In the drawer it opens from “Add an order note”. The note is saved automatically a moment after the shopper stops typing, and the text “Note saved” appears. The note is passed to the order. Turn the field off with Theme settings > Cart > Enable order note.
Footnotes
The footnote sits under the totals, on both the cart page and the drawer. It is built from these parts:
- “Taxes included.” when the store prices include taxes, else “Taxes are calculated at checkout.”
- “Shipping is calculated at checkout.” when the cart needs shipping.
- Your Note for personalized items, when you filled it in and at least one line has a visible property. Any visible property counts, for example the name and number of a printed shirt or the recipient fields of a gift card.
- A Shipping policy link, on the cart page only, when the store has a shipping policy.
Use the personalized items note for things like a longer wait or a non-returnable policy for printed products.
There is no discount code field in the cart. Shoppers enter discount codes at checkout. Automatic discounts are shown on the lines and in the totals. When a cart-level discount applies, the totals show the subtotal, each discount with its amount, and the total.
Bundles in the cart
The Complete the kit and Product kit sections let a shopper add several products with one button. The cart has no bundle line and no bundle block. Each product from a bundle arrives as its own cart line and can be changed or removed on its own.
- Complete the kit adds every item in the size the shopper picked for that item. Its variants never carry a print or an add-on.
- Product kit adds the shirt with its chosen size, print and properties, plus the add-ons the shopper checked. Add-ons follow the size of the shirt.
- Complementary products on the product page add one line per product when the shopper selects Add.
After a bundle is added, the confirmation message reads “N items added to your cart” (see above).
Limits to know
- The gift wrap block and the custom blocks exist on the cart page only, not in the drawer.
- On product pages, accelerated checkout buttons are hidden while a printed choice (player or custom) is selected, because they would skip the name and number check. In the cart the name and number are already on the line, so the buttons on the cart page stay available.
- Fees for printing depend on the variants. See Name and number printing for how to set up the prices and the inventory of printed variants.