If you are familiar with Statamic, you will know the Antlers template engine. This is why we provide Antlers tags for you.
In case you never worked with Antlers before, read the Statamic introduction.
This is butiks build in shopping bag.
cart and bag are synonyms, so you can use both.
{{ cart }} OR {{ bag }} // short syntax​{{ cart:items }} OR {{ bag:items }}
Will return to all items from the actual bag (shopping cart).
Value | ​ |
sellable | Is this item available in the selected country? |
available_stock | How many items are available. |
slug | The unique identifier of the product / variant |
images | Associated pictures of the product. |
name | The name of the product. |
description | A short description of the product. |
single_price | The price for a single item. |
total_price | The price for all selected items. |
quantity | How often the item is in the bag. |
{{ cart:total_items }}​{{ bag:total_items }}
Counting the total amount of items in the bag.
{{ cart:total_price }}
You can always use bag as a synonym. I wont continue to write it down here ...
Counting the costs of all items including shipping.
{{ cart:total_shipping }}
Summing the total shipping costs for all items in the shopping bag.
{{ cart:total_shipping }}
Summing the total taxes for all items in the shopping bag, sorted after tax rates. You can loop thorugh them:
{{ cart:total_shipping }}{{ rate }}{{ amount }}{{ /cart:total_shipping }}
The butik tag provides the most important routes.
{{ butik:shop }}
Will return to the shop overview route.
{{ butik:bag }}
Will return the route to the butik bag (shopping cart).
This tag is handy to create a menu for exisiting categories, wherever you need them on your page.
{{ categories }}
Values | Description |
root | Should the root category be included? (default: true) |
root_name | The name of the root entry, linking to the product overview page. |
Values | Description |
name | Category name |
slug | Category slug |
url | Category url |
is_current | true if current page |
{{ categories:count }}
Will return to the total number of created categories.
{{ if {categories:count} > 0 }}<a href="{{ butik:shop }}">Overview</a>{{ categories }}<a href="{{ url }}">{{ name }}</a>{{ /categories }}{{ /if }}
Get the currency information from your shop.
{{ currency }} // short syntax​{{ currency:symbol }}
Will return the currency symbol.
{{ currency:name }}
Will return the currency name
{{ currency:iso }}
Will return the currency iso code
{{ currency:delimiter }}
Will return the currency delimiter.
{{ products }}
Will return all existing products.