Migrating templates from Shopify to Mechanic
Migrate Shopify notification templates to Mechanic for custom order emails, PDF invoices, and on-demand transactional messages.
Task code
Generating a PDF with a template from task options
{% action "email" %}
{
"to": {{ order.email | json }},
"subject": {{ options.email_subject__required | strip | json }},
"body": {{ options.email_body__multiline_required | strip | newline_to_br | json }},
"reply_to": {{ shop.customer_email | json }},
"from_display_name": {{ shop.name | json }},
"attachments": {
{{ options.pdf_attachment_filename__required | json }}: {
"pdf": {
"html": {{ options.pdf_html_template__code_multiline_required | json }}
}
}
}
}
{% endaction %}Generating email body HTML using a template from task options
Generating email body HTML from a reusable email template
Preparing the template
Update variables to reference order properties
Check for Liquid filter support
Convert numeric strings to numbers, and check on money rendering
Check your stylesheets
Updating branding
Last updated
Was this helpful?