Cart count template (cart)
Description
Define a Handlebars template used to display content of cart count element used to trigger cart box.
Data passed to template are:
icon
- content of cartCount.icon prepended with icon prefixlabel
- content of cartCount.label
Widget contains predefined Handlebars partial templates that can be used:
{{>icon-block}}
- display{{icon}}
from data model passed to template{{>label-block}}
- display{{label}}
from data model passed to template{{>badge-block}}
- display the current number of items in the cart
Default value
cartCount: {
template: '{{>icon-block}} {{>label-block}} {{>badge-block}}'
}
Examples
cartCount: {
template: '<li class="dropdown">{{>label-block}}</li>'
}