Quick answer: In Shopify, go to Discounts > Create discount, pick a type (amount off products, amount off order, buy X get Y or free shipping), choose Discount code or Automatic discount, then set the value, who is eligible, usage limits and start and end dates. In WooCommerce, create codes under Marketing > Coupons, and run automatic sales by scheduling a sale price on each product. Test every discount at checkout before you announce it.
Key takeaways
- Discount codes suit email, social and influencer campaigns because you can track who used them.
- Automatic discounts suit site-wide sales because nobody has to remember a code, which reduces checkout drop-off.
- Shopify handles both natively. WooCommerce has coupons and scheduled sale prices built in, but cart rules such as "spend $100, get 10% off" automatically need a plugin.
- Always set an end date, a usage limit and clear combination rules so one sale does not stack into a loss.
- In Australia, any "was" price you show must be a genuine price the item was sold at, or you risk breaching consumer law.
Discount codes vs automatic discounts: which should you use?
| Type | How the customer gets it | Best for |
|---|---|---|
| Discount code | Types a code at checkout | Email lists, Instagram posts, influencers, first-order offers, win-back campaigns |
| Automatic discount (Shopify) | Applied in the cart with no code | Site-wide sales, Black Friday, buy X get Y, free shipping over a set amount |
| Scheduled sale price (WooCommerce) | Product shows a reduced price for set dates | Clearance, seasonal sales, Boxing Day, EOFY |
| Rule-based plugin (WooCommerce) | Applied in the cart based on rules | Tiered pricing, bulk discounts, spend-and-save offers |
Most stores do best with a mix: an automatic or scheduled sale for everyone, plus a code for email subscribers so you can measure what your list is worth.
How to create a discount code in Shopify
- In Shopify admin, open Discounts and click Create discount.
- Choose the type: Amount off products, Amount off order, Buy X get Y, or Free shipping.
- Select Discount code and enter a short, memorable code (for example BLACKFRIDAY20), or generate a random one.
- Set the value as a percentage or fixed amount and choose which products or collections it applies to.
- Add minimum purchase requirements if you need them, such as a minimum spend or quantity.
- Choose customer eligibility: all customers, specific segments or specific customers.
- Set usage limits, such as one use per customer or a total number of uses.
- Under Combinations, decide whether it can be used with product, order or shipping discounts.
- Set the start and end date and time, then save.
How to set up an automatic discount in Shopify
Follow the same steps but select Automatic discount instead of a code. Give it a clear title, because customers see the title in the cart and at checkout (for example "Black Friday: 20% off sitewide"). Automatic discounts are ideal for buy X get Y offers and free shipping thresholds, since customers do not need to do anything for them to apply.
If you also sell bundles, check how your discount interacts with bundle pricing. My guide to creating product bundles in Shopify covers this.
How to create a coupon in WooCommerce
- Check coupons are on under WooCommerce > Settings > General ("Enable the use of coupon codes").
- Go to Marketing > Coupons > Add coupon and enter the code.
- In the General tab, choose the discount type: Percentage discount, Fixed cart discount or Fixed product discount. Enter the amount, tick free shipping if needed, and set an expiry date.
- In Usage restriction, set a minimum or maximum spend, include or exclude products and categories, tick "Exclude sale items" if you do not want double discounts, and limit it to certain email addresses if needed.
- In Usage limits, set how many times the coupon and each customer can use it.
- Publish, then test it in a private browser window.
How to run an automatic sale in WooCommerce
WooCommerce does not have Shopify-style automatic cart discounts out of the box. Instead, you schedule a sale price on the product:
- Edit the product, enter a Sale price and click Schedule to add start and end dates. The sale starts and ends automatically in your store timezone.
- For variable products, set the sale price and schedule on each variation.
- To discount many products at once, use Bulk edit on the Products screen and set the sale price to the regular price decreased by a fixed amount or percentage.
- For cart-level rules (spend and save, tiered or bulk pricing, buy X get Y), use a reputable discount rules plugin and test it with your payment gateway and shipping settings.
If your store is slow during a big sale, discounts will not save it. See how to fix a slow WooCommerce store before traffic spikes.
Discount mistakes that cost Australian stores money
- Unintended stacking. A site-wide sale plus a 20% code plus free shipping can wipe out your margin. Check combination settings on every discount.
- No end date. Codes leak to coupon sites and keep working for months.
- Fake "was" prices. The ACCC expects any was or compare-at price to be a genuine recent selling price. Raising prices before a sale to show a bigger saving is risky.
- Out-of-sync Google Shopping prices. If your feed shows a different price to your product page, products can be disapproved. See how to fix disapproved products in Merchant Center.
- Untested checkout. Always place a test order with the code on mobile. My list of checkout mistakes that lose sales covers what else to check.
Discount ideas for the busiest sale periods
- Black Friday and Cyber Monday: a tiered automatic discount (spend more, save more) with an early-access code for subscribers. Use my Black Friday checklist for Shopify and WooCommerce.
- Christmas: free shipping over a threshold plus gift bundles. See getting your Shopify store ready for Christmas and ways to increase Christmas sales.
- Boxing Day: schedule clearance prices ahead of time so they go live while you are offline. Here is how to schedule a Boxing Day sale.
- Every sale: send the code through an automated email flow. These Klaviyo email flows are a good start.
Want your sale set up for you?
I set up discounts, sale pricing, banners and tracking so your sale goes live on time and works first go. See the Black Friday Ready Package, the Shopify Christmas Ready Package or the Boxing Day Sale Ready Package. Not sure what you need? Book a free 15-minute website consultation.
Frequently asked questions
Can customers use more than one discount code in Shopify?
Only if you allow it. Each Shopify discount has Combinations settings that control whether it can be used with other product, order or shipping discounts. If none are ticked, only one discount applies.
Does WooCommerce have automatic discounts?
Not for cart rules. WooCommerce supports coupon codes and scheduled sale prices on products. For automatic rules such as spend-and-save or buy X get Y, you need a discount rules plugin.
Can I schedule a sale to start at midnight?
Yes. Shopify lets you set a start and end date and time for every discount. In WooCommerce, a scheduled sale price starts at the beginning of the start date and ends at the end of the end date, based on your store timezone.
Should I use a percentage or a fixed amount off?
Percentages read better on lower-priced items, while fixed amounts (such as $20 off) feel bigger on higher-priced items. Test both on your own audience and check your margins first.
Do sale prices affect Google Shopping?
Yes. Your Merchant Center feed must show the same price as your product page, including sale prices. Mismatches can cause disapprovals, so make sure your feed app syncs sale prices.
Last updated 16 November 2026. Written by Mark Serdina, web developer at iScreenviewer, based on hands-on client work and the official Shopify Help Center and WooCommerce documentation.