Hi,
I found an interesting bug regarding Shopify API's product update (PUT) command.
Shopify has a max limit of 100 variants but it does not behave that way when you try to update and replace / add new variants.
Scenario:
- Create a new product (POST) with 85 variants. This works fine.
- Now if you try to update a product (PUT) with a set of variants, some containing variant IDs and some that does not (new variants), and this is within the 100 max variant restriction, then it will still return the error "Exceeded maximum number of variants allowed".
- For example, my products PUT command has 50 existing variants with 40 new variants. This fails b/c Shopify is counting the existing variants (total 50) with the new variants (total 40) but does not account for the removal of old variants (total 35).
Will there be a fix for this?