How to show an announcement bar if visitor came from a url with a discount code applied?

1 0 2

Hi! I'm trying to figure out the best way to determine if the visitors/users has a discount code applied and if so display an announcement bar telling which benefit they will get. Is not possible to access cookies from liquid template so how could I do that?


Example: visitor came to

Behavior: Display the announcement bar with the text "CODE OLAVO10OFF APPLIED. YOU WILL GET 10% OFF IN YOUR NEXT ORDER (the discount will be displayed in the checkout)"

Replies 3 (3)

Shopify Partner
36845 3636 11969


can you please share store url

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on regarding any help
Shopify Partner | Skype :
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing

5 0 1

I would also like to know about this. I haven't found anything in the Liquid API, but maybe I'm missing something


Shopify Partner
12 1 2

Did you ever figure this out?