How to auto-apply discount codes at checkout
Auto-apply automatically adds the discount code to a visitor's cart when they reach checkout – no copying or pasting needed. This removes friction and increases redemption rates.
How to enable it
- Open your campaign in the 1ClickPopup app
- Go to the Settings tab
- Scroll to Auto apply discount
- Check Automatically apply discount at checkout
This works with both unique discount codes and existing Shopify discount codes.
How it works for visitors
- A visitor signs up through your popup
- The discount code is displayed on the Success screen (or Winning screen for gamified campaigns)
- When the visitor proceeds to checkout, the discount is automatically applied to their cart
- The visitor sees the discount reflected in their order total – no manual entry needed
Lead capture with Shop
If your store has Shop Pay enabled, auto-apply works through the Shop Pay checkout flow as well. The discount is applied automatically when the visitor checks out via Shop Pay.
To use this feature, make sure Shop Pay is enabled in your Shopify payment settings.
Things to know
Auto-apply works in the current browser session only. The discount is applied using Shopify's native functionality, which is session-based. If the visitor closes their browser and comes back later, the discount won't be automatically applied – they'll need to enter the code manually. The code itself is still valid, it just won't auto-apply after the session ends.
The visitor must have signed up first. The discount only auto-applies after a successful form submission. Visitors who haven't completed the popup won't see the discount at checkout.
Only one discount code can auto-apply. If a visitor has another discount code already applied at checkout, Shopify's combination rules determine whether both can be used together. Check your discount's combination settings if this is a concern.
Auto-apply doesn't guarantee redemption. The visitor still needs to complete the purchase. The discount is applied to the cart, but they can remove it or abandon checkout.