Apply discount code (older)
Apply discount code adds a code to checkout for the customer, with nothing shown on the page. Pair it with conditions to apply a code only in certain situations, such as a minimum spend or a particular product in the cart.
Requires: Shopify Plus and the Buddy plan.
Settings
Section titled “Settings”| Setting | What it does |
|---|---|
| Discount code to apply automatically | The code to apply. It must already exist in Shopify. |
| Apply discount code only once per checkout session | Apply the code once. If the customer removes it, it stays removed. |
How a saved block is set up
Section titled “How a saved block is set up”- Its code exists in Shopify admin, or as a Checkout Buddy discount code.
- Its conditions say when it applies.
- It’s in checkout in a Checkout Buddy (v1) app block, with its ID in Fixed block ID, on the first step of checkout, anywhere on the page. It’s invisible.
Things to know
Section titled “Things to know”- Without “only once”, a removed code can come back. The block re-applies the code whenever checkout changes and its conditions still pass. Tick Apply discount code only once per checkout session if customers should be able to remove it.
- The block only applies the code. It doesn’t remove it when the conditions stop passing. A Remove discount code block you already have can do that; for new setups, an Add a discount code automation set to Undo it takes its code off by itself.
- If the code is invalid, expired, or not eligible, nothing happens and nothing is shown.
- The code is applied when the page with the block loads. Customers using an express checkout, such as Shop Pay from the cart page, skip it.
- Automatic discounts are usually simpler. If the discount should always apply under the same conditions, an automatic discount (for example an order discount) applies on Shopify’s servers with no block needed, on any Shopify plan, in express checkouts too.
