Shopify.getCart() returns undefined but open a alert message with cart item count

Highlighted
Excursionist
36 0 1

I am trying to get product info that is added to cart. Shopify.getCart() function returns undefined but opens an alert message saying "there is 1 item in the cart". How to get the cart details using this? any help appreciated Screenshot 2019-07-16 at 2.17.46 PM.png

0 Likes