New Shopify Certification now available: Liquid Storefronts for Theme Developers

createCart quantity return 0

Solved
ZoeM_
Shopify Partner
9 0 3

I was trying to use createCart to create a cart. It can return all the data I need, but the quantity is always 0.

 

Screen Shot 2022-06-22 at 10.41.53 AM.png

Screen Shot 2022-06-22 at 10.42.40 AM.png

Screen Shot 2022-06-22 at 10.44.15 AM.png

Accepted Solution (1)
steveb3210
Shopify Partner
7 1 1

This is an accepted solution.

Make sure the item has inventory in the store, otherwise this is what it does.

View solution in original post

Reply 1 (1)
steveb3210
Shopify Partner
7 1 1

This is an accepted solution.

Make sure the item has inventory in the store, otherwise this is what it does.