Ecommerce for Statamic

Dollars

Outputs the dollars of a value. (Everything before the decimal point)

Parameters

value
Currency value. eg. 15.95

Example

{{ bison:dollars value="15.95" }}
Outputs: 15

Also available as {{ bison:major }} if you don’t want to use the term ‘dollars’.


Problem with this page? Edit it on Github.