We sometimes use coupons for event registrations. I'd like to be able to include the coupon that was used in the email notifications (and I understand how to do that).
However, most of our enrollments do not use a coupon. So it would be best if I could somehow only display the coupon information if a coupon was used. Is there some variant of the placeholder that would display it conditionally (if exists, display)? Is there some conditional logic I can add to the notification template that would test whether there is a value? Thanks!
Yes, you should be able to achieve something like that. If you want to show this data to your employee you need to set in notifications placeholder %coupon_used% like this
Then if a coupon is used this this placeholder will be populated with data and it will show what coupon was used.
Your instructions tell me what I already knew: how to add the placeholder to the email notification.
But based on the phrase at the end, "if a coupon is used this this placeholder will be populated with data," I think that answers my question. Which is that if no coupon is used, nothing will appear in the placeholder location. And that's my desired outcome. Thanks.
You are most welcome, and we are glad if we were able to help you. Should you have any further inquiries, we kindly request that you open separate tickets for each question and we will gladly help you there.
We wish you all the best and hope you have a wonderful day ahead.
We sometimes use coupons for event registrations. I'd like to be able to include the coupon that was used in the email notifications (and I understand how to do that).
However, most of our enrollments do not use a coupon. So it would be best if I could somehow only display the coupon information if a coupon was used. Is there some variant of the placeholder that would display it conditionally (if exists, display)? Is there some conditional logic I can add to the notification template that would test whether there is a value?
Thanks!
Hello there,
Thank you for reaching out to us.
Yes, you should be able to achieve something like that. If you want to show this data to your employee you need to set in notifications placeholder %coupon_used% like this
Then if a coupon is used this this placeholder will be populated with data and it will show what coupon was used.
Please try this out and let u know how it goes.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Your instructions tell me what I already knew: how to add the placeholder to the email notification.
But based on the phrase at the end, "if a coupon is used this this placeholder will be populated with data," I think that answers my question. Which is that if no coupon is used, nothing will appear in the placeholder location. And that's my desired outcome. Thanks.
Hello again Mike,
You are most welcome, and we are glad if we were able to help you. Should you have any further inquiries, we kindly request that you open separate tickets for each question and we will gladly help you there.
We wish you all the best and hope you have a wonderful day ahead.
Kind Regards,
Marko Davidovic [email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, floor plans, choropleth maps, and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables