Hi, sorry for such basic question.
To my logic work in product.liquid I need a variable that must keep his value while customer navigates on several product pages.
How can I make sure to INITIAL value be defined only once for each user session ?
Solved! Go to the solution
Hi @SBD_ thanks per contribution.
Passed this time the need I have is better described like this :
With a Pop Up at home page ( or any other way to get customer visitor input ) capture customer response about which region are him/her in Brasil ( 5 possibilities only ) .
With that value ... use in the code of Product and Cart page to calculate how much visitor should expend to get FREE SHIPPING .
Thats what I need.
This is an accepted solution.
Thanks for the info. For that information to persist, one approach would be to store the value in local storage.
Then on the product/cart page you could retrieve the value using getItem:
var region = localStorage.getItem('region')
Hey @SBD_ thanks again ...