cart-item
Template of one cart line: the first is cloned per line, the others are removed.
cart-item is a template, read by smootify-cart, quantity-input: it is never defined on its own.
Where it can go
- Inside
smootify-cart. - Out of place, it stays in the page and does nothing.
What it requires
Nothing beyond Smootify: it works on every plan.
Attributes on the element
- Smootify writes
data-idon it: do not set them yourself.
Attributes inside it
| Group | Attribute name | Values |
|---|---|---|
| Discount | discount | 2 |
| Cart line | cart-item | 19 |
| Line option | option | 2 |
| Image size | max-width | 4 |
| Product metafield | metafield | 8 |
| Product metafield (condition) | if-metafield | 4 |