customer.accepts_marketing in email templates - allowed?

customer.accepts_marketing in email templates - allowed?

BobbyMacCheese
Shopify Partner
27 1 6

I'd like to add a bit of a promotion to my transactional emails if the customer agreed to email marketing, to avoid sending an extra email.

 

Is using {% if customer.accepts_marketing %} in the email template ok for this? From my limited testing it seems ok, but would love some advice.

Reply 1 (1)

DaisyVo
Shopify Partner
4387 486 573

Hi @BobbyMacCheese 

Yes, using {% if customer.accepts_marketing %} in your email template is a correct approach. This condition ensures that promotional content is only displayed to customers who have agreed to email marketing. Test thoroughly to confirm it works consistently across your email scenarios.



If you have other questions, I will also answer them.

 

Best regards,

Daisy

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution