Discount code Shopify checkout: apply and test

Laptop showing Shopify checkout with discount code applied

A discount code Shopify checkout setup is one of the fastest ways to lift conversion, but it is also one of the easiest ways to erode margin. The key is applying discounts at the right checkout step, with the right rules, and tracking whether they actually improve profit.

Short answer: keep discount codes simple, apply them before the final checkout step, and avoid stacking rules that confuse customers. For subscription offers, Checkivo lets you apply discounts at checkout while keeping renewal logic clean. Related: Shopify checkout blocks app and Shopify Plus custom checkout.

Where discount codes appear in Shopify

Shopify lets you add discount codes at several points: product pages, cart, checkout, and post-purchase. The right placement depends on your goal.

  • Product page. Good for limited-time offers that drive impulse. Risk: customers get used to seeing discounts before they even consider the product.

  • Cart. A natural place to apply a code. The customer sees the discount before committing to checkout.

  • Checkout. Shopify's checkout has a built-in discount field. The customer applies the code before entering payment.

  • Post-purchase. One-click upsell offers after the initial purchase. Useful for increasing AOV, but not for first-purchase conversion.

For subscriptions, the most important place is the first checkout. The discount can apply to the first cycle only, or to every cycle, depending on how you set it up.

How to create a discount code

In Shopify admin, go to Discounts and create a code. You can choose:

  • Percentage off, fixed amount off, or free shipping.

  • Minimum purchase requirements.

  • Product or collection eligibility.

  • Customer eligibility, such as first-time customers only.

  • Usage limits and expiration dates.

Keep the code name simple and memorable. Avoid codes that are hard to type, especially on mobile. Test the code yourself before sharing it.

How customers apply a discount at checkout

At checkout, the customer clicks the discount field, enters the code, and clicks apply. The order summary updates to show the discount and new total. If the code is invalid or expired, Shopify shows an error.

Common issues:

  • The discount field is hidden or hard to find on mobile.

  • The code does not apply to the product in the cart.

  • Minimum order requirements are not met.

  • The customer tries to stack codes that cannot combine.

Make the discount field visible and explain the rules clearly. A frustrated customer who cannot apply a code often abandons the purchase.

Stacking, combining, and exclusions

Shopify allows some discount combinations, but not all. You can generally stack:

  • One product discount and one shipping discount.

  • Automatic discounts with manual codes in some cases.

You cannot stack two product discounts on the same order. For subscriptions, this matters when you want to offer a signup discount plus a separate loyalty discount. Plan the rules before you publish the codes.

Exclusions are also important. If a discount does not apply to subscriptions, say so upfront. Nothing frustrates a customer more than a code that works on everything except the product they want.

Discount codes for subscriptions

Subscriptions need discount logic that works across multiple cycles. A 50% off first-month code should not accidentally give 50% off forever unless that is your intent.

Options include:

  • First-cycle discount only.

  • Discount for a fixed number of cycles.

  • Percentage off every renewal.

  • Free trial period instead of a discount.

Checkivo lets you set subscription discounts at checkout and control how they apply to renewals. The discount is part of the subscription plan, not a loose coupon that support has to remember.

How to test discount codes

Before launching a discount code, test it end to end:

  1. Add an eligible product to the cart.

  2. Apply the code on the cart or checkout page.

  3. Confirm the discount amount is correct.

  4. Check shipping and tax calculations after the discount.

  5. Complete a test order and verify the order total in Shopify.

  6. For subscriptions, verify the renewal amount is correct, not just the first charge.

Measuring discount impact

Discounts are easy to measure by revenue, but revenue is not the whole story. Track:

  • Conversion lift from the discount.

  • Change in average order value.

  • Margin after discount and payment fees.

  • Customer lifetime value of discount-acquired customers.

  • Refund and churn rate for discount-acquired subscribers.

A discount that lifts conversion but attracts low-quality subscribers is not a win. Measure the full funnel before scaling.

Common discount code mistakes

The most common mistake is training customers to expect discounts. If every email and ad includes a code, customers learn to wait for one. That erodes your full-price conversion and margins.

Another mistake is stacking rules that are too generous. Multiple discounts can make a product unprofitable, especially after payment fees and shipping. Set clear combination rules and test them.

Merchants also forget to exclude certain products or collections. A code intended for apparel might accidentally apply to subscriptions, prepaid plans, or gift cards, creating accounting headaches.

Finally, many merchants do not track discount performance. They know revenue but not whether the discount actually improved profit or just attracted one-time buyers who churn.

Key takeaways

Discount codes are a lever, not a strategy. Use them intentionally, set clear rules, and measure the full impact. For subscriptions, make sure the discount applies to the right cycles and does not destroy LTV. Checkivo lets you manage subscription discounts and renewal pricing alongside the Shopify checkout experience.

Implementation checklist

Launch discount codes without margin leaks using this checklist:

  • Define the goal: acquisition, retention, reactivation, or liquidation.

  • Set eligibility: products, collections, customer segments, and minimum purchase.

  • Choose whether the code applies to one-time purchases, subscriptions, or both.

  • Decide if the code can combine with other discounts.

  • Test the code on a real order before sharing it.

  • Track conversion, AOV, margin, and LTV of customers who use the code.

  • Set an expiration date or usage cap to prevent runaway discounts.

Discount codes are easy to create and hard to control. A small amount of planning prevents large margin losses.

Analytics and attribution

Discount codes create attribution challenges. A customer may use a code from an email, but the conversion is attributed to the last paid ad click. Use UTM parameters and discount code reports together to understand which channels actually drive profitable orders.

Also compare first-time and returning customers. A discount that brings in new subscribers can be valuable. A discount used only by existing customers who would have bought anyway is margin destruction.

Regional and tax considerations

Discounts can affect tax, duty, and shipping calculations differently across regions. In some countries, tax is calculated after discount. In others, shipping minimums are based on the pre-discount total. Test these rules for each market you sell into.

For subscriptions, regional rules about free trials and promotional pricing can also apply. Make sure your discount strategy complies with local consumer protection laws, especially in the EU and UK.

Frequently asked questions

Where do I enter a discount code in Shopify checkout?
The discount field is in the order summary section of Shopify checkout. Some themes also show it in the cart.

Can customers use multiple discount codes?
Shopify does not allow stacking two product discounts. You can combine one product discount with one shipping discount in some cases.

Do discount codes work for subscriptions?
Yes, if your subscription app or billing engine supports them. Make sure the discount applies to the right cycles.

Can I hide the discount code field on Shopify checkout?
On standard Shopify, the field is part of checkout and cannot be removed without customization. On Plus, you have more control.

Why is my discount code not working?
Check eligibility, expiration, minimum purchase, product restrictions, and whether it combines with other discounts.

How do I create a subscription discount code?
Use a subscription app or billing engine that supports recurring discounts. Set whether it applies to the first cycle or all cycles.

Does Checkivo support discount codes?
Yes. Checkivo applies discounts at checkout and controls how they apply to subscription renewals.

Should I offer discount codes for subscriptions?
They can help acquisition, but use them carefully. Measure retention and LTV of discount-acquired subscribers.

Can I create automatic discounts instead of codes?
Yes. Shopify supports automatic discounts that apply at checkout without a code. Use them for sitewide or collection promotions.

How do discount codes affect taxes?
Tax is calculated on the discounted total in most regions. Test with your tax settings to confirm.

Can I limit discount codes to first-time subscribers?
Yes. Use customer eligibility rules or integrate with your subscription billing engine to apply first-cycle discounts.

What is a good discount rate for subscriptions?
It depends on margin and LTV. Common starting points are 10% off the first cycle or a free trial, but always model the impact.