<hk-cart-summary>
hk-cart-summary: The cart subtotal and the checkout button. Syntax, props, defaults and examples.
On this page
The cart subtotal and the checkout button.
Group: Cart and checkout. Name in the editor: Cart summary. Complete props for every tag: Tag reference.
Syntax
<hk-cart-summary />Children: None. The tag is self-closing.
Props
Write props as kebab-case attributes.
| Prop | Type | Required | Default | Allowed values | Editor label |
|---|---|---|---|---|---|
subtotal-label | text | no | - | - | Subtotal label |
checkout-label | text | no | - | - | Checkout button label |
Required props
None. Every prop has a default or can be left out.
Examples
From packages/templates-default/theme/sections/cart-main.snf, lines 23 to 26:
<hk-cart-summary
subtotal-label="{{ section.settings.subtotal_label }}"
checkout-label="{{ section.settings.checkout_label }}"
/>From packages/templates-default/theme/sections/header.snf, lines 68 to 68:
<hk-cart-summary />Related tags
hk-add-to-cart: The add to cart button for a product, with quantity and sold-out states.hk-cart-count: Shows the number of items in the cart.hk-cart-items: Lists the cart's lines, customizable through named parts.hk-cart-drawer: A slide-in cart panel that can open when an item is added.hk-inline-checkout: Embeds Hekana's checkout for one product inside the page.
