Generate codes for online discounts

Offering discounts can be a powerful marketing strategy for your Shopify store. There are no limits to the number of discount codes you can create. Discount codes are available on the Basic Shopify, Shopify, Advanced Shopify, and Shopify Plus plans.

Discount codes can be generated for a dollar value discount, a percentage discount, or a free shipping discount. You can also specify the dates for which the code is valid, the number of times a code can be used, a minimum order amount before the code can be used, and to which products, collections, or variants the discount can be applied.


To generate or import many discount codes at once (for example, a Groupon promotion), check out the Bulk Discounts app from the Shopify App Store.

Important points to remember:

  • The discount code entry field will show during checkout only if you have active discount codes available to your customers.

  • Keep in mind, your customers cannot stack discounts. If you have a 10% off discount, they can't also use a "free shipping" coupon. Only one discount at a time can apply to a single order.

  • You can limit discount codes to one per customer in the Usage limits section on the Add discount page.

  • If you set an expiry date for a discount, then the discount will expire at 11:59:59 PM on that day.

  • Customer groups (created by saved searches on the Customers page) are useful for sending discount codes to a select group of customers. For example, if you want to send a discount code to customers who have spent $100 or more in the last month, then you can apply filters to create a group of these select customers, export their email addresses, generate a special code, and send it to these customers only.

  • You can fully edit your discounts.

  • You can apply collection discounts in two ways: either as a fixed monetary amount applied once per order to every applicable item in a cart, or as a percentage discount applied to an entire collection. Choose the method you want in the Applies to section on the Add discount page.

  • Collections can't hold individual product variants. If you add a product variant to a discounted collection, then the collection discount applies to every version of the product.

  • Product-specific discount codes will apply to all quantities of a product when a customer applies the discount code. For example, if a customer adds 10 of the same product, then the product specific code will discount all 10 items.

  • You can apply discount codes to a specific variant of a product. These codes will apply to all quantities of the variant in a cart.

  • You can perform bulk actions to disable many discount codes at once.

Want to discuss this page?

Visit the Shopify Community

Ready to start selling online with Shopify?

Try it free