options.pdf_html_template__code_multiline_required
variable reference."template"
option of the Email action."order_data"
, we allow the email template to use a variable called order_data
which includes a copy of everything we know about the current order. The email template will be able to call values from this variable using something like {{ order.name }}
."additional_data"
, we define our own static values for a new email template variable called additional_data
. The order template will be able to call values from this variable using something like {{ additional_data.some }}
.{{ total_price }}
and {{ transactions }}
and {{ email }}
. These variables aren't automatically available in Mechanic, but the right pieces of data all available via the Order object, using references like {{ order.total_price }}
and {{ order.transactions }}
and {{ order.email }}
.{{ shop.name }}
works in both Order Printer and in Shopify.{% assign foo = some_number | times: 1 %}
, or at the time of output, as in {{ some_number | times: 1 }}
.order.total_price
is a string, and because Liquid filters cannot be used in the middle of an if
or unless
tag, one should first assign the numeric value to a new variable and then update the condition to use that new variable.<link rel="stylesheet">
tags need to be replaced with a <style>
tag, containing the full contents of that stylesheet.