> ## Documentation Index
> Fetch the complete documentation index at: https://www.twicecommerce.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# How to offer a lower price online with an auto-applied discount

> Show a lower price in the online store, or at one location, than at the counter, with a discount code that applies itself.

> [card] [Open in TWICE Admin](https://admin.twicecommerce.com/catalog/discounts)
>
> Catalog → Discount Codes

Create a discount code that applies itself to online store checkouts, so shoppers see the lower price while they browse and your counter keeps the price-table price. [The discount codes concept page](https://www.twicecommerce.com/docs/concepts/catalog/discount-codes.md) explains how scope and precedence work.

## Prerequisites

> [!WARNING]
>
> **Required permission:** `catalog:discount` create and manage. Owner, Admin and Manager hold it. A Member can view codes but cannot create or edit one. See [Users & Roles](https://www.twicecommerce.com/docs/settings/users-roles.md).

> [!NOTE]
>
> **Check that a discount fits before you start:**
>
> * A discount only lowers a price. It cannot make one channel more expensive than the price table.
> * The storefront shows the price table price struck through next to the lower price, not a second list price.
> * One percentage covers every listing in scope. Give listings that need different fixed amounts one code each.
> * A code the customer types follows **Combinable**. See [Create a discount code](https://www.twicecommerce.com/docs/guides/catalog/create-a-discount-code.md).
> * Orders you create in admin never receive the code.

## The walkthrough

**1. Create the code**

Go to **Catalog → Discount Codes** and click **Create discount code**. TWICE creates the code at once and opens it with **Enabled** switched off, so nothing reaches a customer while you edit.

**2. Name the code for your team**

Replace the placeholder in **Code** with a name such as `ONLINE-PRICE`. Add a line under **Description**, which only staff see. Open the access select and choose **Only staff and integrations**, because shoppers never type this code.

**3. Set the discount**

Choose **Percentage** under **Discount type** and enter the share to take off under **Value**, for example `10`. Choose **Fixed** instead for one flat amount off each item.

**4. Turn on Auto-apply for the online store**

Switch **Auto-apply** on. Open **In storefronts**, which appears once the switch is on, and select **Online store**. Leave it empty to cover every storefront your account offers.

**5. Limit the code to a location**

Skip this step for a store-wide online price. To price one location differently, open **Limit to locations** and select it. A checkout at any other location gets nothing from this code.

**6. Limit the code to listings**

Leave **Apply to listings** and **Apply to collections** empty to discount everything. Fill one in to discount only those items. Name items that must keep their price under **Exclude listings** or **Exclude collections**.

**7. Switch Enabled on and save**

Switch **Enabled** on and click **Save**. Do this last, because an enabled code applies to checkouts at whatever it says at that moment.

**8. Compare the storefront and the counter**

Open a listing in your online store and check that the lower price shows with the original struck through. Then create an order in admin for the same listing and check that it keeps the price-table price.

## How do I know it worked?

The listing page, collection page and cart in your online store show the lower price. The online store checkout carries the code as a discount line with no code typed. An order created in admin shows no discount.

## Troubleshooting / common pitfalls

> [accordion] The online store still shows the old price
>
> The code is disabled, archived, outside its **Offered from** and **Offered until** dates, past its **Usage limit**, or the listing sits under an exclusion. See [Auto-apply](https://www.twicecommerce.com/docs/concepts/catalog/discount-codes.md).

> [accordion] A different auto-applied code wins at one location
>
> Overlapping auto-apply codes resolve by scope. A code limited to locations beats one limited to storefronts, which beats one limited to listings or collections, which beats a store-wide code. See [Auto-apply](https://www.twicecommerce.com/docs/concepts/catalog/discount-codes.md).

> [accordion] I need a higher price in one channel
>
> A discount cannot raise a price. Create a separate listing for that channel. See [Price a listing](https://www.twicecommerce.com/docs/guides/catalog/price-a-listing.md).

## Related articles

> [card] [Discount Codes](https://www.twicecommerce.com/docs/concepts/catalog/discount-codes.md)
>
> How scope, precedence and combining work.

> [card] [Create a discount code](https://www.twicecommerce.com/docs/guides/catalog/create-a-discount-code.md)
>
> The full set of code settings and why a code is rejected.

> [card] [Price a listing](https://www.twicecommerce.com/docs/guides/catalog/price-a-listing.md)
>
> The price table the discount reduces.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.