Liquid Template Variables - tax line

From Spiffy Stores Knowledge Base

Revision as of 13:09, 12 February 2016 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A tax line represents a single line of taxation charges in an order.

tax_line.title

Returns the description of the tax line.

{{ tax_line.title }} => 'GST'

tax_line.rate

Returns the tax rate of the tax line.

{{ tax_line.rate }} => 0.10

tax_line.rate_percentage

Returns the tax rate of the tax line as a percentage.

{{ tax_line.rate_percentage }}% => 10%

tax_line.price

Returns the amount of the tax. A money filter can be used to return the value as a monetary amount.

{{ tax_line.price | money }} => $12.34