cartjs
cartjs copied to clipboard
Unable to init
Hi folks,
I've tried to follow the setup very closely as per the guide, but right at the init:
CartJS.init({{ cart | json }}, { dataAPI: true });
I get this error:
cart.min.js:5 Uncaught TypeError: Cannot read property 'items' of undefined at cart.min.js:5
I know that:
- jQuery is working
- CartJS is included
What's the step that I'm missing?
Thanks in advance!
Hi @choujar, apologies for the delayed response on this. I have very limited time for Cart.js these days.
If this is still an issue, can you please point me to a publicly-accessible Shopify site that reproduces the issue, ideally as a minimal test case (ie without lots of other third party libraries that may be causing the issue)?