Cart token missing from cart object in snippet

peakengage
Tourist
4 0 3

Hi, we are developing a webpush notification app for abandoned carts. For this, we need to capture the cart token on the front end so we can connect a checkout with a push subscription. Initially, we were able to capture the cart token by inserting a snippet with {{ cart | json }} and that JSON would have the token. Recently we are seeing that cart token is missing from this object. Even if items are added to the cart, the token doesn't show up in the cart object. 

Was there a recent change that has caused this? Is there another way to capture the cart token on the store frontend?

Thanks in advance.

0 Likes