Liquid, JavaScript, themes, sales channels
I want to display notification bar on top of every page if discount is applied (mostly for email marketing and automatically applied discounts), but I can't find a way to check if a discount is active (no need to display any dynamic, just "Your discount is applied"). Or atleast display it on first page after redirection. Is it possible to check if url contains a string without javascript?
Hi @Mystform,
You can only check the discount while on the cart or checkout page, you can't check it on every page.
Can you explain your requirement more, I will help you to check it.
I meet same problem. I just want that when customer apply a discount automatically through automatic url discount, the text "discount is applied" will appear in banner. I've use
User | RANK |
---|---|
38 | |
26 | |
13 | |
11 | |
8 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023