Sometimes, you want to display special instructions when a specific discount is won.
You can do this by using a coupon description. Here is how :
1. Go to “Settings > Coupons” and click on the bubble icon next to the discount you’d like to add a description for.
2. Now, you can write a short description for the discount. For instance, you may want to write something to make sure that your customer understands the conditions of use of your coupon. In addition, you can add a link to your product in your text. Our text fields support HTML, so we can use the <a> tag to create a link: This 5% off coupon code only works for our Ray-Ban Aviator product! <a href=”https://nighht.fr/rayban-aviator”>Go check out our product page right now!</a>
3. That’s it. Hit “Save” and from now on, when this specific discount is won, the description will appear in the win screen (like on the screenshot below).
Bonus : adding a product to the cart automatically
This is a bit of a hack, but if you have installed SmashPops on a Shopify store, there is a way to add a product to the cart automatically when a discount is won (this will not refresh any cart drawer/notification/bubble immediately though since it is very specific to each theme).
1. First, you need to know the variant ID of the product you’d like to add to the cart. Go to the variant page in the “Products” section of your Shopify store and get the last number of the URL.
2. Add the following HTML to the coupon description (it is invisible on the win screen, so it can be added along with some other text if needed) :
<img src=”/x” style=”height:0;width:0;” onerror=”(function() {
fetch(‘/cart/add?id=<VariantID>&quantity=1’);
})()”>
Of course, replace <VariantID> with your variant ID.
3. Hit save and that’s it. Please note that this will only work the popup is displayed on your website (it won’t work in the preview). Also, as I said earlier, this may not refresh any cart drawer/notification/bubble (depending on your theme, you may need to add some other Javascript).