Product created with basic variant for price and UPC via API JSON

Product created with basic variant for price and UPC via API JSON

JDumoulin
Shopify Partner
2 0 0

product created via IPA JSON ask to select variant when press "add to basket".  Why ?

Replies 2 (2)

StevenT_A7
Explorer
156 13 17

Hi @JDumoulin , 

 

As per my knowledge this can be the reason , since i don't access to your website i can't go in more deep;


No Default Variant Selected:
If variants like size or color exist, make sure one is pre-selected. Otherwise, users are forced to choose, which breaks the flow.


Variant ID Not Passed to Add-to-Cart:
"Buy" button clicks must pass a valid variant ID. Without it, nothing gets added to the cart.


Single Variant Treated as Multi:
If there's only one variant, flatten it or auto-select it to avoid confusing the UI and logic.

 

Please let me know if you are facing any kind of specific problem .

Thanks 

Steven Taylor
302-260-8345
JDumoulin
Shopify Partner
2 0 0

Thank you Steven

I think my problem is more complex.  I use API JSON instead of GRAPHQL and the behavior is very strange.  I will try with GRAPHQL and w'll see.