<hk-cart-count>
hk-cart-count: Shows the number of items in the cart. Syntax, props, defaults and examples.
On this page
Shows the number of items in the cart.
Group: Cart and checkout. Name in the editor: Cart count. Complete props for every tag: Tag reference.
Syntax
<hk-cart-count />Children: None. The tag is self-closing.
Props
Write props as kebab-case attributes.
This tag has no props of its own.
Required props
None. Every prop has a default or can be left out.
Examples
From packages/templates-default/theme/sections/header.snf, lines 59 to 59:
<hk-cart-count />Related tags
hk-add-to-cart: The add to cart button for a product, with quantity and sold-out states.hk-cart-items: Lists the cart's lines, customizable through named parts.hk-cart-summary: The cart subtotal and the checkout button.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.
