Skip to content
Hekana Spray
Documentation
Getting started
Theme development
Components and tags

Localization

Apps and custom code

Examples and recipes
API reference
Publishing
Build apps
AI development

<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

html
<hk-cart-summary />

Children: None. The tag is self-closing.

Props

Write props as kebab-case attributes.

PropTypeRequiredDefaultAllowed valuesEditor label
subtotal-labeltextno--Subtotal label
checkout-labeltextno--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:

html
<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:

html
<hk-cart-summary />
  • 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.

Next steps