Cart Token value replication to use it as a cookie for persistent cart app

Jesus_Lugo
New Member
2 0 0

Hi, I'm trying to develop a persistent cart app, and I was wondering if there's a way to replicate the value of cart.js token generated by Shopify which is used to retrive the cart saved over the user session in other device.

Or If in another hand I have to develop an external app where I can save the cart.js token when the user makes some changes and associate it to the customer.id, so when the user log in I can retrive that value and set it to the browser?

I'm not sure what's the best practice or if there's a better way to do it.

Thanks!

Jesús.

Jesús Lugo.
0 Likes
Andrei21
Tourist
15 0 0

@Jesus_Lugo  

Did you ever find a solution to this? 

We're having the same issue. I can't believe that a persistent cart that ties cart items to users account is not standard Shopify functionality.

Does anyone have a solution to this?

Thanks

0 Likes