Set Cart Attributes based on landing page

Solved
Highlighted
Tourist
5 0 1

Hello,

we're using cart attributes so a customer can choose their school at checkout.  but each school has their own landing page.  Is there any way to set a cart attribute that will stick while the customer is shopping? 

for example they land at mystore.com/pages/Bishop.  they shop, and have to choose "Bishop" from a drop down in the cart screen even though they came through the Bishop page so I Want it to pass that attribute through.

  Does that require a cookie?  Or is there a way to do it in code.

TIA

0 Likes
Highlighted
Astronaut
1139 191 231

This is an accepted solution.

Hello,

Yes, this would require either cookies or local storage, plus some Liquid logic to detect which landing page the user is in. 

If you don't have front-end coding knowledge you'll need to end up hiring a Shopify developer to assist you.

Kind regards,
Diego

◦ Problem Solved? ✔️ Please click on Accept as Solution and like.
◦ Hire me! Recommended by 25+ customers on Facebook. Click here to read their reviews.
◦ Contact me at: diego.boarutto.fortes@gmail.com
0 Likes