Hi @AsafGitai , thanks for replying!
Sorry, I still have questions ![]()
-
So, only new dev stores will be able to use the new variants? What about the non-dev stores? When they will be able to use the extended variants feature?
-
So, our app is a third part fulfillment service, so we need to use the
productSetmutation to keep the products up to date in our platform and Shopify. When we save products in our side it means the products have been updated and that includes the media as well. Which means we need to replace all the previous media for that product. So it would be helpfull if we could use a mutation that would replace the media instead of just appending new images. -
I’ve tried this and I get the same error
{
code: "ITEM_NOT_STOCKED_AT_LOCATION",
field: [
"input",
"quantities",
"0",
"locationId",
],
message: "The specified inventory item is not stocked at the location.",
}
That was the mutation I’ve tried
mutation inventorySetQuantities($input: InventorySetQuantitiesInput!) {
inventorySetQuantities(input: $input) {
inventoryAdjustmentGroup {
reason
referenceDocumentUri
changes {
name
delta
quantityAfterChange
}
}
userErrors {
code
field
message
}
}
}
and the variables:
{
"input": {
"name": "available",
"reason": "correction",
"ignoreCompareQuantity": true,
"quantities": [
{
"locationId": "gid://shopify/Location/{{my_app_location_id}}",
"inventoryItemId": "gid://shopify/InventoryItem/{{my_variant_inventory_item_id}}",
"quantity": 100
}
]
}
}
- Okay, it makes sense but in our case it will be worth it as we need to handle 100+ variants. So, can you confirm if the flow I’m using here is correct?
-
productSet mutation to create or update the product
-
productOperation query to get the set operation and the product
-
productDeleteMedia to clean up old media (if it’s an update)
-
productCreateMedia to aappend the new media
-
productVariantsBulkUpdate to set up inventory item for product variants
-
inventorySetQuantities to enable fulfillment inventory
-
publishablePublish to publish the product to the online store
Thanks again for your help