Create Product API inverts options and their values

Solved
Tahar
Shopify Partner
20 1 1

The 2019-04 version of the product API seem to be broken. Creating a product with the following configuration:

  • Option name: Size
  • Option values: S, M, L, XL, XXL 

The create operation successfully creates the product but the option values and the variants are inverted. This is a regression as the API used to create both option values and variants in the order we send them over to Shopify. 

Has anyone seen this issue?

 

Tahar from Stock&buy

0 Likes
Tahar
Shopify Partner
20 1 1

This is an accepted solution.

We found the problem! It looks like Shopify does not honor the variant position property when the products are created. The position is being set from Shopify following the order the variants were added in. 

0 Likes
stevenou
New Member
4 0 0

Do you know if it's possible to change the ordering with an update? I am trying to update the ordering of both the variants and options, but it doesn't seem to be taking my ordering. 

0 Likes