Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

HunkyBill commented on How to set the default product variant through API?

$
0
0

The default variant is always just the first one. A product cannot exist without a variant. So, if you want to create a default variant, what you're really saying is is that you want to create a product, with one variant. No obligation to create two or more and you need no options either. Note that in reality, when creating a product, it has no SKU. Only a variant has a SKU. Your setup shows you trying to set a SKU on a product which will almost certainly fail. 

 


Viewing all articles
Browse latest Browse all 25503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>