SEO, AdWords, affiliates, advertising, and promotions
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.
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
Discover how to increase customer engagement on your store with articles from Shopify A...
By Jacqui Apr 23, 2025Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025