Per-Product Discount Codes for Shopify & WooCommerce Emails

Show one product and give each reader their own discount on it. MailInApp creates a single-use code on your store for every recipient, and Buy now takes them to that product with the code already applied.

Subject

Your own 15% off House Blend

Show one product in your email and give each reader their own discount on it. MailInApp creates a single-use code on your Shopify or WooCommerce store for every recipient, and Buy now takes them to that product with the code already applied.

A shared code ends up on coupon sites, and a link to your homepage makes the shopper look for the product again. A per-product discount fixes both: the code belongs to one reader, works once, applies to one product, and the button lands on that product.

What you set up

  1. Connect your store under Settings → Integrations. Shopify connects through a small app you create in your Shopify admin; WooCommerce connects with a REST API key with Read/Write permissions, so MailInApp can create the coupons.
  2. Add a Product block in the studio and pick the item in Import from store. Its name, description, price, pictures, sizes and colours fill in, and Buy now points at the product on your store.
  3. Turn on Per-product discount in the Inspector and set the Discount type (percentage or fixed amount), the Discount value and how many days a code stays valid.
  4. Send to a list. Nothing else to set: no audience filter, no merge tag.

What each reader gets

Right before each email goes out, MailInApp creates that reader's code on your store: single-use, valid for this product only, and expiring when you chose. The card shows the discount badge and the new price, and Buy now carries the code.

  • On Shopify, the shopper lands on the product page with the code applied, on the size or colour they picked in the email. Add the discount badge to your product page and it shows the discounted price there too (see Showing the discount on your product page).
  • On WooCommerce 10 or later, the shopper lands on checkout with the product, the variation they picked and the coupon already in the cart. On an earlier version they land on the product page and enter the code at checkout.

Every reader gets their own working link, whatever app they read your email in. If a code can't be created for one reader, their email still goes out, with the product at its normal price.

Discounts that don't pile up

Each Product block keeps its own cooldown, so one product's discount never blocks another's. A product's discount and the email's store-wide Discount offer work side by side. To aim one store-wide code at past buyers, use the Discount offer with a purchase-history audience, as in Win back past buyers with discount codes. To show one shared code to everyone, use a Coupon.

What comes back

  • Clicks on Buy now gather in Insights › Engagement.
  • Orders placed on your store from the email count as its store revenue: Shopify through the link's campaign tag, WooCommerce through its own order attribution. Shopify order & checkout revenue tracking walks through it.
  • Each order also lands on the buyer's contact, so your next audience can be "bought this product" or "spent over $50".

Find the offer that sells most

Run an experiment that gives each arm its own reward, for example 10% off against free shipping, and let paid orders decide. Test which reward sells more walks through one.

Getting started

Connect your store, import one product into a Product block, turn on a modest Per-product discount, and send it to yourself first: click Buy now in the delivered email to see where it lands. The full reference is in Store-native discounts.

Watch: a discount code for every customer

Give each customer their own single-use Shopify code on one product, show the offer on your product page, and see it applied at checkout.

A typical build-and-send sequence

  1. 1

    Connect your store

    Connect Shopify, or WooCommerce with a Read/Write REST API key, under Settings → Integrations.

  2. 2

    Import the product

    Add a Product block and pick the item in Import from store. Its details, variants and store link fill in.

  3. 3

    Turn on Per-product discount

    Set the discount type, the value and how many days each code stays valid.

  4. 4

    Send

    Each reader's single-use code is created as their email goes out, and Buy now lands them on the product with the code applied.

Frequently asked questions

Can a code be shared or reused?

Each code works once and for this product only. On Shopify it's tied to the recipient's customer account; on WooCommerce to their email address, or kept short-lived when it opens a checkout link.

Where does the shopper land?

On Shopify, the product page with the code applied. On WooCommerce 10 or later, checkout with the product and coupon already in the cart; on earlier versions, the product page, where the shopper enters the code at checkout.

What happens if a code can't be created for someone?

Their email still goes out, with the product at its normal price, and everyone else gets their code.

How is this different from the Discount offer?

The Discount offer gives one store-wide or product code to every recipient of a send, usually aimed at past buyers. A per-product discount sits on one Product block and needs no audience filter. Each keeps its own cooldown, so they work side by side.

Build this in the studio

Start on the free plan — every interactive block and the full fallback engine are included on every tier.