1. Home
  2. Email Templates
  3. What are “[[]]” conditional tags on Opinew and how do they work?

What are “[[]]” conditional tags on Opinew and how do they work?

You must be aware of [[ ]] tags and how they can impact content on pages and emails:

If ANY of the merge tags ({coupon_value}, {customer_name}… etc.) don’t exist, then the whole text inside the “[[ ]]” WILL NOT display.

For example we put a bit of text surrounded by [[ ]] in the default “Thank You” page template that your customers see after they leave a verified review:

THANK YOU FOR YOUR REVIEW {customer_name}!

[[ And here is a {coupon_value} coupon as a little thank you from us 
Code: {coupon_name} ]]


Thanks,
{shop_name}

If you set up a coupon, then the text will display.

THANK YOU FOR YOUR REVIEW Cathy!

And here is a 10%OFF coupon as a little thank you from us 
Code: XDWE28SG

Thanks,
Opinew Showcase Store

But if there is no coupon, {coupon_value} and {coupon_name} will be empty and THE WHOLE TEXT WILL NOT DISPLAY. You will only see:

THANK YOU FOR YOUR REVIEW Cathy!

Thanks,
Opinew Showcase Store

Magic! 😀 Enjoy!

Updated on April 2, 2021
Was this article helpful?

Related Articles

Leave a Comment