Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

createCart quantity return 0

Solved

createCart quantity return 0

ZoeM_
Shopify Partner
11 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.