In general, only emails generated to be used in ecommerce notification templates will need to use preview variables for generating data in preview mode. Standard email templates for newsletters won't need to use preview variables. Preview variables will be used to replace dynamic data in liquid templating.
From Preview tab, you can add variables for email preview. There are 2 kind of variables you can add for email preview, Predefined and Custom.
Predefined Variables
RenderKu has a set of predefined variables you can select to generate data for preview.
For example, if you are crafting a
Shopify Order Confirmation
email, simply select predefined variables for Shopify Order Confirmation
. This will auto populate the variables that you would use in Shopify Order Confirmation
email.Custom Variables
You can also specify custom variables in JSON to use for preview mode. Specified custom variables will be augmented with predefined variables to generate preview variables for email.
For example, let's say you have predefined variables below
{
"first_name": "John",
"last_name": "Doe"
}
And you specify the following custom variables
{
"age": 25
}
Final generated preview variables for emails would be.
{
"first_name": "John",
"last_name": "Doe",
"age": 25
}
Example with Shopify Order Confirmation Email
For example, let's say your email uses
{{ order_name }}
liquid variable and you have preview variable for order_name set at #9999.When you switch to preview mode, you can see that
{{ order_name }}
liquid variable being replaced with #9999.
Comments
0 comments
Article is closed for comments.