Forum Discussion

LisaBalthasar's avatar
LisaBalthasar
Active Member
2 months ago

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. Is there a way to send out the back up products if the data cannot be matched (besides fixing the data problem obviously)?

 

  • Hi Lisa,

    yes, that's totally possible with liquid. You can check if either the catalog_items is empty or a specific property in it and then display a placeholder or event skip that offer.

    If you share the liquid for your blocks, I can help you.

  • Hi Lisa,

    You have two options for handling empty fields in your emails:

    1. 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.

    2. 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.