Coupon Support in Side Cart and Popup Checkout

Cart Management
Updated Nov 8, 20263 min read

Shoppers can apply a coupon right in the cart drawer or the checkout popup, without going to another page. This guide shows how it works and how to test it. In the free plugin, the coupon form always shows in the drawer. Pro lets you change or hide it.

Test it in five minutes

  1. Go to Marketing > Coupons and create a coupon named TEST10 for 10% off.
  2. Go to Onpage Checkout > Floating Cart and check that Enable Sticky Cart is on.
  3. Add a product to the cart and click the floating button.
  4. Type TEST10 and click Apply.
  5. Check the discount row and new total, then click Remove.
  6. Apply it again and place a test order.

In the cart drawer

Coupon form inside the WooCommerce side cart drawer

The Side Cart Slide-in method opens this same drawer, so it has the same coupon form.

Change it PRO

Coupon Form, Coupon Title and Collapsible Coupon switches
  • Under Drawer Elements: Coupon Form, Coupon Title, Collapsible Coupon, Coupon Initially Collapsed.
  • Under Drawer Text: Coupon Title, Coupon Placeholder, Coupon Button, Applied Coupons Heading, Remove Coupon, Discount Label.
  • Under Drawer Notices & Feedback Text: the coupon messages.

In the checkout popup

Popup Checkout PRO shows WooCommerce’s normal checkout form, so its coupon area is the normal “Have a coupon? Click here to enter your code” line. You can hide that line on the Checkout Form tab.

Coupon rules still apply

The plugin only gives shoppers a place to type the code. WooCommerce still decides whether it is valid, using the rules you set on the coupon:

RuleExample
Percentage or fixed discount10% off, or $5 off the cart
Minimum and maximum spendValid from $50 to $200
Individual use onlyCannot join with other coupons
Exclude sale itemsNot valid on discounted products
Products and categoriesValid only for shoes
Usage limitsOnce per customer
Expiry dateEnds on a chosen day
Allowed emailsFor named customers only

When a code fails, the shopper sees WooCommerce’s reason, such as “This coupon has expired”. The Invalid Coupon Message shows only when no reason is given.

With variable products

When a shopper changes a variation in the cart, WooCommerce checks the coupon again. A coupon limited to one variation may then be removed, so test this if you use such coupons.

If something goes wrong

  • The coupon form is missing: in Pro, check Coupon Form. On the popup, check the Checkout Form tab.
  • It works for you but not for guests: a page cache or a security plugin may be blocking guests. Test in a private window.
  • It works only on the cart page: a firewall may be blocking the request. Send these names to your host and ask them to allow them: admin-ajax.php, coupon_code, onepaquc_apply_coupon and onepaqucpro_apply_coupon.
  • The total does not change: clear your cache, and look for script errors in your browser console.
  • A removed coupon comes back: check for a plugin or link that applies coupons automatically.
  • Numbers look off: if you use a tax or currency plugin, compare the drawer’s totals with the checkout page.

Good habits

  • Test each new coupon as a guest before you announce it.
  • Write clear rules in your promotion, such as “Not valid on sale items”.
  • Remove test coupons when you finish.