Make two previews from the same email
Sign in to save your progressIn a test shop, open the welcome email editor. Keep the buying-guide button in the main text. Use the editor’s [] picker for the coupon fields. Wrap the entire optional offer, including its expiry wording, in the condition below.
[[if !empty($coupon_code)]]
Your welcome code:
[[$coupon_code|escape]]
Valid until:
[[$coupon_expire_date|escape]]
[[/if]]
Practice
- Assign a valid coupon template to the test flow. Open the preview. Find the code, the expiry date and the buying-guide button.
- Select No coupon and preview again. Read the subject, preview text and body aloud. The welcome and button should still make sense. An isolated “Valid until” or a promised discount means some copy sits outside the condition.
- Repeat for the other language and the plain-text version you use. Restore the test settings when done.
On paper, write out both received versions with a sample code and date, then with the code absent. Keep the button in both. Find the template fields
Worked example
A welcome email offers a guide to everyone and a coupon to some buyers. Put the discount sentence, code and expiry inside the same coupon condition. Preview both cases. The guide button should work in both.