Articles on: Countdown Timers
This article is also available in:

๐ŸŽŸ๏ธ How to Show a Discount Code on a Countdown Timer

Want to give customers a discount at the exact moment your countdown creates urgency? ๐ŸŽŸ๏ธ


Hoppy Countdown Timer can show a coupon code badge inside your countdown. Customers click the badge to copy the code, and Hoppy also tries to apply it to their cart automatically.


This guide shows you how to attach a Shopify discount to a countdown, style the coupon badge and test it on your storefront.



โš ๏ธ Before You Begin


Make sure:


  • The Hoppy Countdown Timer app is installed and the Countdown Timers app embed is enabled in your theme
  • You have already created a discount code in Shopify Admin โ†’ Discounts (or you are ready to create one)
  • The discount is Active in Shopify


โ„น๏ธ The coupon option is available for Product Page, Top/Bottom Bar, Landing Page, Cart Page, Cart Drawer, Custom Position and Campaign-based countdowns. It is not available for Checkout Page countdowns.



๐Ÿ› ๏ธ Step 1 โ€” Open the Countdown


Open the Hoppy Countdown Timer app from your Shopify Admin, then:


โžก๏ธ Click Create new countdown, or open an existing countdown from your list


โžก๏ธ Stay on the Content tab (for Campaign-based countdowns, this is the Timer Content tab)



๐ŸŽŸ๏ธ Step 2 โ€” Turn On the Coupon Code


Scroll down to the Coupon Code card.


โžก๏ธ Tick Show coupon code


Three things appear:


  • A Select Discount from Shopify button
  • A note: Discount will be applied automatically when user clicks on copy icon on storefront.
  • A Create new Discount link



๐Ÿ”Ž Step 3 โ€” Select the Discount


โžก๏ธ Click Select Discount from Shopify


A Select Discount window opens and lists your active discounts.


โžก๏ธ Use the Search discounts field to find a discount by its title


โžก๏ธ Click the discount you want to attach


After you select it, the card shows Selected discount: followed by the discount title (with the code in brackets when it differs from the title). To pick a different one later, click Change Discount.


What appears in the list


  • Only active discounts are shown
  • Only discounts that use a code can be selected. Automatic discounts do not have a code to copy, so they are not listed
  • If you have no active code discounts, the window shows No discounts available with a Create discount button. You can also use the Create new Discount link in the Coupon Code card. Both open the Shopify discounts page in a new tab. Create the code there, then come back, click Select Discount from Shopify again and select it


โš ๏ธ If the list does not load, the window shows an error message (for example Failed to load discounts.) instead of the list. Reload the app and try again. If it still fails, contact support through the in-app chat.



๐ŸŽจ Step 4 โ€” Style the Coupon Badge


Open the Design tab (for Campaign-based countdowns, open each placement tab, make sure the placement is switched on and scroll down to its design settings). When Show coupon code is on, a Coupon Code Style section appears. You can adjust:


  • Border Style (Dashed, Solid or Dotted)
  • Coupon Text Color
  • Coupon Border Color
  • Background Color
  • Font Size (in px)


๐Ÿ’ก Match the badge colors to your timer background so the code stands out without clashing.


For the full design walkthrough, see ๐ŸŽจ Countdowns โ€” Design & Styling.



๐Ÿ’พ Step 5 โ€” Save and Publish


โžก๏ธ Click Save


โžก๏ธ Click Publish


If you left the discount unselected while Show coupon code is ticked, the app asks you to select a discount or disable "Show coupon code" before you can save.



๐Ÿงช Step 6 โ€” Test on Your Storefront


  1. Open your store in an Incognito or Private window
  2. Go to the page where the countdown appears
  3. Click the coupon badge


Expected Result


โœ… The code is copied to the visitor's clipboard
โœ… The badge text briefly changes to Applied! for about two seconds, then returns to the code
โœ… Hoppy asks Shopify to apply the code to the visitor's session and cart, so it shows up at checkout when it is valid for the items in the cart



๐Ÿ“Š Tracking Coupon Clicks


Each click on the badge is recorded as a coupon copy event. See ๐Ÿ“Š Countdown Timers โ€” Analytics to learn what the dashboard shows.



โš ๏ธ Important Notes


  • The coupon badge shows the code stored with the countdown. If you later rename or change the code inside Shopify, open the countdown, click Change Discount, reselect it and save so the badge shows the current code
  • If the discount expires or is deactivated in Shopify, the badge still displays, but customers will not get the discount. Unpublish the countdown or pick another discount
  • Whether the discount actually applies depends on your Shopify discount rules (eligible products, minimum spend, customer eligibility, combinations)



๐Ÿ”ง Troubleshooting


The Coupon Code card is missing
You are probably creating a Checkout Page countdown. Coupon codes are not supported there.


My discount is not in the list
Check that it is Active in Shopify, that it uses a code (not an automatic discount) and try searching by its title.


The code is copied but not applied at checkout
Check the discount's eligibility rules in Shopify. Test with products that qualify and make sure the cart meets any minimum requirement.


The badge does not appear on the storefront
Confirm the countdown is published and the app embed is on. See โฑ๏ธ Countdown is Not Showing on My Store [Fixed].



๐ŸŽ‰ Final Result


โœ… Your countdown shows a clickable coupon badge
โœ… Customers copy the code in one click and Hoppy tries to apply it for them
โœ… You can style the badge to match your store

Updated on: 28/11/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!