# Cart

> The cart, the mini cart and the free-shipping and countdown bars.

Status: Ready (Smootify 2.0)  
URL: https://www.smootify.io/docs/reference/elements/cart  
Updated: 2026-10-31

| Element | What it does |
|---|---|
| [`bundle-item`](https://www.smootify.io/docs/reference/elements/bundle-item) (template) | Template of one item of a bundle line, cloned per item. |
| [`button[data-is="direct-add-to-cart"]`](https://www.smootify.io/docs/reference/elements/button-data-is-direct-add-to-cart) | Button that adds the product’s current variant to the cart without a form. |
| [`cart-item`](https://www.smootify.io/docs/reference/elements/cart-item) (template) | Template of one cart line: the first is cloned per line, the others are removed. |
| [`free-shipping-bar`](https://www.smootify.io/docs/reference/elements/free-shipping-bar) | Shows the progress towards free shipping from the cart; 2.0: data-amount can give a threshold per currency (§2.11). |
| [`gift-card-balance`](https://www.smootify.io/docs/reference/elements/gift-card-balance) | (HQ #73) A Webflow form where the visitor types a gift card code and reads its balance, without buying anything: Smootify asks Shopify with a throwaway cart that carries only that code, never the visitor’s cart. On success [gift-card=“balance”] and [gift-card=“code”] are written (§2.11) and Webflow’s success state shows; an unknown, disabled or expired code shows the form error, and so does a card used up: Shopify applies no card with a zero balance, the same answer as an unknown code (checked on the starter, 2026-10-16; beta.4’s is-empty never showed and is gone). Every plan. Inside smootify-cart too (next to its gift card field): the cart never takes its form, field or form states as its own, as with a smootify-product. |
| [`modal-backdrop`](https://www.smootify.io/docs/reference/elements/modal-backdrop) | Backdrop and animated panel of a `<details>` modal. |
| [`shipping-estimate`](https://www.smootify.io/docs/reference/elements/shipping-estimate) | (HQ #72) The delivery options of the cart before the checkout: a Webflow form with a country and a postal code. Smootify puts the address on the visitor’s cart, and each [shipping-option=“item”] copy shows one of Shopify’s options with its price (§2.11); the one in the total takes is-selected, a click on another selects it. The total then holds that shipping (cart=“shipping” shows it), and the checkout opens with that country, postal code and option (checked by Pietro on the E2E store, 2026-10-30). The options follow the cart: a line added, removed or changed asks again. An address already on the cart (typed before, a logged-in customer’s) fills the form and shows its options at load. A country select the page leaves empty gets the countries of the shop’s markets; without a country field the cart’s country is used. The form stays visible (no success state). is-estimated on the host with options, no-options and the form error when Shopify has none for that address, is-loading while it asks. Shopify’s rates need lines that ship: an empty cart asks nothing. Every plan. Inside smootify-cart too: the cart never takes its form, field or form states as its own. |
| [`smootify-cart`](https://www.smootify.io/docs/reference/elements/smootify-cart) | Renders the cart and opens or closes it as a mini cart. |
| [`urgent-cart-countdown`](https://www.smootify.io/docs/reference/elements/urgent-cart-countdown) | Counts down a cart reservation and empties the cart when it ends. |
