Butik
Search…
Antlers Tags
Antlers is a simple and powerful templating engine provided Statamic.
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.

Cart

This is butiks build in shopping bag.
cart and bag are synonyms, so you can use both.

Items

1
{{ cart }} OR {{ bag }} // short syntax
2
3
{{ cart:items }} OR {{ bag:items }}
Copied!
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.

Total Items

1
{{ cart:total_items }}
2
3
{{ bag:total_items }}
Copied!
Counting the total amount of items in the bag.

Total Price

1
{{ cart:total_price }}
Copied!
You can always use bag as a synonym. I wont continue to write it down here ...
Counting the costs of all items including shipping.

Total Shipping

1
{{ cart:total_shipping }}
Copied!
Summing the total shipping costs for all items in the shopping bag.

Total Taxes

1
{{ cart:total_shipping }}
Copied!
Summing the total taxes for all items in the shopping bag, sorted after tax rates. You can loop thorugh them:
1
{{ cart:total_shipping }}
2
{{ rate }}
3
{{ amount }}
4
{{ /cart:total_shipping }}
Copied!

Butik

The butik tag provides the most important routes.

Shop

1
{{ butik:shop }}
Copied!
Will return to the shop overview route.

Bag

1
{{ butik:bag }}
Copied!
Will return the route to the butik bag (shopping cart).

Categories

This tag is handy to create a menu for exisiting categories, wherever you need them on your page.

Default

1
{{ categories }}
Copied!

Arguments

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.

Returns

Values
Description
name
Category name
slug
Category slug
url
Category url
is_current
true if current page

Count

1
{{ categories:count }}
Copied!
Will return to the total number of created categories.

Example: Create categories menu

1
{{ if {categories:count} > 0 }}
2
<a href="{{ butik:shop }}">Overview</a>
3
{{ categories }}
4
<a href="{{ url }}">{{ name }}</a>
5
{{ /categories }}
6
{{ /if }}
Copied!

Currency

Get the currency information from your shop.

Symbol

1
{{ currency }} // short syntax
2
3
{{ currency:symbol }}
Copied!
Will return the currency symbol.

Name

1
{{ currency:name }}
Copied!
Will return the currency name

Iso

1
{{ currency:iso }}
Copied!
Will return the currency iso code

Delimiter

1
{{ currency:delimiter }}
Copied!
Will return the currency delimiter.

Products

Products

1
{{ products }}
Copied!
Will return all existing products.
Last modified 1yr ago