We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

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
Trailblazer
183 15 20

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

Phone:- +1 (302) 260-8345
Email :- steven.taylor.a7@gmail.com
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.