How it works
Follow these 4 simple steps to start adding free products to orders when customers use specific discount codes
Order Created
Order Created
Loop over the order's discount codes
Loop over the order's discount codes
Filter for a specific discount code
Filter for a specific discount code
Add Line Item to Order
Add Line Item to Order
Make it your own
Customize this workflow even further:
Set quantity limits
Control how many free products get added by modifying the quantity field or adding conditions to check if the free product already exists in the order.
Target multiple discount codes
Expand the filter step to check for several different promotional codes, or duplicate the workflow to handle different free products for different campaigns.
Add customer tags for tracking
Include a step to tag customers who receive free products, helping you segment these buyers for future marketing campaigns.
Send confirmation messages
Connect email or SMS steps to notify customers about their free gift, or alert your fulfillment team about orders containing promotional items.
Frequently asked questions
What happens if a customer uses the discount code multiple times in separate orders?
Each order triggers the workflow independently, so if a customer places multiple orders using the same discount code, they'll receive the free product with each qualifying order. You can modify the workflow to check customer purchase history if you want to limit the free product to first-time use only.
Will the free product affect my inventory levels?
Yes, the free product gets added as a regular line item with proper inventory tracking. Your stock levels will decrease when the free item is included in orders, so make sure you have adequate inventory of your promotional products.
Can I set different free products for different discount codes?
Currently this workflow handles one discount code and one free product. To offer different free products for different codes, you'll need to create separate workflows or modify the filter step to include multiple conditions with corresponding product selections.
What is a template?
MESA templates are fully pre-configured workflows built and vetted by Shopify Experts. Unlike competitor templates that provide basic scaffolds requiring extensive setup, MESA templates come with all data variables properly mapped, required fields configured, and steps ready to activate. You can turn them on immediately and start automating.
Can I customize a template?
Absolutely! While our templates work out-of-the-box, every step can be personalized to match your exact business requirements. Add conditional logic, integrate additional apps, or build more sophisticated workflows. MESA's templates provide a solid foundation that you can expand as needed.
Are templates free?
Yes! Our entire library of expert-built, production-ready templates is free to use. Unlike platforms that charge for premium templates or provide only basic scaffolds, MESA gives you access to hundreds of fully-configured, vetted workflows at no additional cost.
Ready to start adding free products to orders when customers use specific discount codes?
Join thousands who've automated their work and saved an average of 3.5 hours every week.
Start with this template — It's free7-day free trial • 5 min setup • Cancel anytime