Question: Cookies

Shopify Partner
7 0 0

Can cookies be read within a liquid page?

For example, if the user wants to remember the category/collection they were looking at when they last visited a cookie can be added using JavaScript.... however I am not sure how to read that information form the cookie within the theme.liquid file.

is there a cookies collection object?

Shopify Expert
9981 84 1492

No. Javascript Cookies are client side, liquid is server side - they don't talk to each other.

What are your trying to do?

★ Winning Partner of the Build a Business competition. ★