Basket Preview¶
Availability: All contexts
Use the basket_preview
module to show a quick view of the shopping cart in your store.
Configuration parameters¶
icon¶
string
Label of the module. Possible values are value
(the cart value will be displayed) or card
(the "Cart" inscription will be displayed).
Module source code¶
{% from "@macros/basket_preview.twig" import basket_preview %}
{{ basket_preview(moduleConfig|merge({ instanceId: moduleInstance, sheet: moduleConfig.isSheet })) }}
Macros reference¶
Module configuration schema¶
[
{
"state": "unfolded",
"label": "General settings",
"elements": [
{
"type": "infobox",
"name": "infobox",
"options": {
"type": "blank",
"message": "#### Related settings in the admin panel%s- changing phrases in [translations](%s)%s- enabling the purchase option in [the orders settings](%s)",
"placeholderValues": [
"\n",
"\/admin\/configLanguages\/list",
"\n",
"\/admin\/configShopping\/list"
]
}
},
{
"type": "radio",
"name": "icon",
"label": "Displayed under the cart icon:",
"defaultValue": "value",
"options": {
"radioOptions": [
{
"key": "value",
"label": "value of products in the cart"
},
{
"key": "card",
"label": "inscription \"Cart\""
}
]
}
},
{
"type": "checkbox",
"name": "isSheet",
"label": "Display as sheet",
"defaultValue": 0
}
]
}
]