Skip to main content
Checkout & payments

Let shoppers enter discount codes in the cart

The Discount code block in Bundlex Cart lets shoppers try a code before reaching checkout and see which discounts are already applied.

Set up the block

Discount code settings with entry, chips and a collapsed sheet enabled.
(1) Enable the entry field. (2) Make it collapsible and choose Collapsed by default for a sheet. (3) Keep applied discounts visible as chips.
  1. Edit your cart and turn on Cart > Discount code.
  2. Keep Show the code entry field on if shoppers should type codes here.
  3. Enable Show a chip per discount to display individual applied discounts.
  4. Optionally enable Make it collapsible and choose its default state.
  5. Edit the labels as needed and save.

For a store using only automatic discounts, you can hide the entry field while keeping applied discounts visible. Collapsing the field does not hide the applied discount chips.

With Collapsed by default, the row opens the code field in a sheet over the cart, so the footer stays the same height. With Expanded by default, the field starts open in the footer and the row folds it in place.

Keep Add code link text filled in so shoppers have a visible row to open. The clear button empties the entry field; it does not remove an already applied code.

Codes and automatic discounts

Two creams with a non-removable Buy 2 chip, $5.60 saving and $50.40 subtotal.
(1) The automatic Buy 2 discount has no remove button. (2) The two creams total $50.40 after $5.60 off.

Entering a code asks Shopify to apply an existing discount. This field does not create new codes. Shopify decides whether the code is valid for the products, customer, dates, and other discounts in the cart.

Code chips can be removed by the shopper. Automatic discounts do not get the same removal control because they are applied by the store's discount rules.

Show catalog sale savings

A product compare-at price is a catalog markdown, not a Shopify discount code. To include those savings in this row, enable Cart > Discount code > Count compare-at savings. It is off by default.

The row includes the catalog markdown alongside actual Shopify discounts without counting the same saving twice. With Show a chip per discount enabled, catalog savings appear as a non-removable Sale chip. This changes the display; it does not create another discount. The Subtotal block's original-price display remains separate.

Test on the storefront

A rejected demo code remains in its sheet with an error and Apply button.
(1) The rejected code stays in the sheet with its error. Correct or clear the entry before trying again.

The editor preview does not apply real codes. Save, open your storefront, add a qualifying product, and test a known valid code. Check the total again at checkout.

A rejected code leaves the sheet open with an error. A code that applies closes the sheet and appears in the discounts row. Error wording is under Advanced > Messages.

Check an applied code

HELP-STACK-10 chip with a remove control and a $25.20 discounted cart amount.
(1) The applied code has a remove control. (2) A $2.80 order discount leaves $25.20 before shipping. This is the settled result after a page refresh.

In this example, a 10% order code takes $2.80 off a $28 cream, leaving $25.20 before shipping. Shopify checkout lists the $28 product subtotal and the $2.80 order discount separately. Use the chip's remove button to remove the code, then check the amount again.

If the drawer amount and checkout do not agree, refresh the storefront and retest. Contact support with the products, code and steps if the difference remains or returns.

If a code is rejected, check its requirements and Shopify's discount-combination settings. Bundlex Cart reward discounts are configured separately under Rewards bar.

When your cart also gives a reward, the code must be allowed to combine with it. See which boxes to tick in A reward or free gift is not applying.

Was this article helpful?

Your feedback helps us improve our docs.

Thanks - we'll keep improving this article.

Want to chat with our team? Still have a question?

Still need help?

Our team is one click away. Send us a message and we'll get back to you.

We use a few cookies to keep this site working, measure how it is used, and power our chat widget when you open it. See our cookie policy.