Forum Discussion
LisaBalthasar
3 months agoActive Member
Sending out Mails without Product if matching doesn't work in Catalog Collection
Hi, we send out emails with product suggetions to customers, but sometimes the data in the attributes doesn't match the data in our catalog. If that happens the user gets an email without content. ...
Gabriele
3 months agoPractitioner
Hi Lisa,
You have two options for handling empty fields in your emails:
- Provide Static Content as a Fallback:
Use Liquid to check if the fields are not empty. In an if statement, specify that if the fields are empty, static content should be displayed as a fallback in the "else" part. You can store in the message extras whether the fallback has been activated. - Abort the Email if Fields are Empty:
Alternatively, use the if statement to check for empty fields, and if they are empty, abort the email instead of providing static content. You can find instructions on how to do this here: Aborting Messages with Liquid.
Related Content
- 2 years ago
- 2 years ago
- 9 months ago