# A Shopify flash sale code with a set start and end time

To run a flash sale on Shopify, create one code, such as `FLASH30`, set its **Active dates** to the exact start and end, and the code switches itself on and off. With [OneCode: Stackable Discounts](https://apps.shopify.com/rm-combo-discounts), the same code takes 30% off everything and makes shipping free, and you can cap it at a total number of orders, such as the first 500. [Shopify's own discount codes](https://help.shopify.com/en/manual/discounts/discount-methods/discount-codes) each hold one kind of discount, so without an app the sale and the free shipping would be two codes.

Example: `FLASH30` runs for 48 hours, from Friday 4 December 2026 at 12:00 PM to Sunday 6 December at 12:00 PM, store time.

- An $80 cart (a $50 shirt and a $30 tote) gets 30% off every item. The shirt is $35, the tote is $21, and the customer pays $56 with free shipping.
- A $40 cart gets $12 off and costs $28, also with free shipping.
- Before 12:00 PM on Friday or after 12:00 PM on Sunday, `FLASH30` gives nothing.
- Once 500 orders have used it, it stops applying, even if there's time left.

![FLASH30 at checkout. The $50 Summer linen shirt is $35, the $30 Canvas tote is $21, Economy shipping is free instead of $8, and the total is USD $56.00.](/images/checkout-flash30.png)

## Before the sale

1. Click **Create discount**, keep **Discount code**, and enter `FLASH30`.
2. Click **Add Discount Type** and enter `30` in **Percentage**. Keep **Target** as **All Products**.
3. Click **Add Discount Type**, set **Discount Type** to **Shipping Discount**, and keep **Free Shipping**.
4. In **Active dates**, set **Start date** to `2026-12-04` and **Start time** to `12:00 PM`. Tick **Set end date**, then set **End date** to `2026-12-06` and **End time** to `12:00 PM`.
5. Optional: in **Maximum discount uses**, tick **Limit number of times this discount can be used in total** and enter `500`. Tick **Limit to one use per customer** too, so the 500 go to 500 different customers.
6. Click **Save discount**. `FLASH30` shows as **Scheduled** on the OneCode home page until the start time.

![The OneCode editor for the code FLASH30, shown as Scheduled: a 30% Product Discount on All Products, a Free Shipping discount on all rates, Active dates from 2026-12-04 at 12:00 PM to 2026-12-06 at 12:00 PM in EST, and Maximum discount uses set to 500 in total with one use per customer](/images/editor-flash30.png)

To leave items that are already marked down out of the 30%, click **Add sale item rule** on the product discount and choose **Exclude sale items**. See [20% off full price and 10% off sale items](/guides/sale-items.md).

## Things to check before you launch

- **Times are your store's time zone.** The labels show it, for example **Start time (EST)**. If you announce "12 noon Eastern", make sure the store is on Eastern time in Shopify's **Settings > General**.
- **Set the start date before you save.** A new discount starts straight away unless you change **Start date**, so a code saved without one goes live before you've announced it.
- **Keep it a code if you want a cap.** Usage limits are only available on discount codes. An automatic discount has no code to count. See [code or automatic discount](/guides/code-or-automatic.md).
- **One use per customer works by email or phone.** Shopify recognises customers by their email address or phone number. See [one use per customer and total usage limits](/guides/one-use-per-customer.md).
- **Test without placing an order.** A test order counts toward the usage limit and **Times used**. Checking the cart and checkout is enough.
- **Bulk codes count separately.** If the discount has bulk codes, the limits apply to each code on its own, so a total of 500 means 500 per code.

## During the sale

**Times used** on the OneCode home page shows how many orders have used `FLASH30`. Shopify can take a few minutes to update it.

Changes take effect at checkout as soon as you save. To extend the sale, open `FLASH30`, move the **End date** or **End time** later, and click **Save**. To raise the cap, change the number in **Maximum discount uses**.

To stop the sale early, there's no on/off switch. Open `FLASH30`, tick **Set end date**, set the end to now, and click **Save**. It shows as **Expired**. You can also deactivate it on Shopify's **Discounts** page, which sets its end date to the moment you deactivate it.

## After the sale

The end date switches `FLASH30` off, and it shows as **Expired** on the OneCode home page. To run it again, clear the end date or move it later, or duplicate it and set new dates. A duplicate starts with no uses, and goes live as soon as you save it unless you change its dates.

For one-day sales on fixed dates, see [a Cyber Monday code that starts and ends by itself](/campaigns/cyber-monday.md). For the same offer without a time limit, see [20% off and free shipping on one code](/guides/20-percent-off-and-free-shipping.md).

OneCode costs $9.90 USD every 30 days after a 7-day free trial, billed by Shopify. Install it from the [Shopify App Store](https://apps.shopify.com/rm-combo-discounts).
