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

olavodecarvalho
Visitor
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 example.com/discount/OLAVO10OFF

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)

KetanKumar
Shopify Partner
36845 3636 11969

@olavodecarvalho 

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 bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing

jonaholsson
Tourist
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

Best,
Jonah

Kasperh9
Shopify Partner
12 1 2

Did you ever figure this out?