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

{{ 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.

Total Items

{{ cart:total_items }}
{{ bag:total_items }}

Counting the total amount of items in the bag.

Total Price

{{ 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.

Total Shipping

{{ cart:total_shipping }}

Summing the total shipping costs for all items in the shopping bag.

Total Taxes

{{ 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 }}

Butik

The butik tag provides the most important routes.

Shop

{{ butik:shop }}

Will return to the shop overview route.

Bag

{{ butik:bag }}

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

{{ categories }}

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

{{ categories:count }}

Will return to the total number of created categories.

Example: Create categories menu

{{ if {categories:count} > 0 }}
<a href="{{ butik:shop }}">Overview</a>
{{ categories }}
<a href="{{ url }}">{{ name }}</a>
{{ /categories }}
{{ /if }}

Currency

Get the currency information from your shop.

Symbol

{{ currency }} // short syntax
{{ currency:symbol }}

Will return the currency symbol.

Name

{{ currency:name }}

Will return the currency name

Iso

{{ currency:iso }}

Will return the currency iso code

Delimiter

{{ currency:delimiter }}

Will return the currency delimiter.

Products

Products

{{ products }}

Will return all existing products.