Use cookies to save user information

Highlighted
New Member
1 0 0

Hi Everyone,

I don't know if this question was asked before. If it was apologies for making a duplicate.

So I'm busy building a shopify site and need users to select their location from a drop down when entering the products page. The drop down will just be a city name, which I will then use to filter out certain products.

My plan was to take the value from the drop down and save it to a cookie, which I can then read and apply my filters accordingly. Would something like this even be possible? And if yes are there any resources that I can follow? I have been scouting the forums but cant find any clear answers on this. 

Any answers will be appreciated

 

0 Likes