Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I am trying to specify to have some product variants be auto-added via Shopify Flow.
What I have done is:
- Start when: "order created"
- Check if: "tags is equal to add_extra_product"
- Do this: "Add order line item"
At the right panel, I am trying to specify "Product variant GID" with the existing product variant, but it always throws an error "This value is not a product variant GID".
Solved! Go to the solution
This is an accepted solution.
Try this format:
gid://shopify/ProductVariant/<ProductID>
You can also refer to this Developer Doc:
https://shopify.dev/api/examples/order-editing
I hope this helps!
What is the GID you're using?
I have tried both options: productID and variantID.
I have pasted these IDs from the below-formatted URLs.
https://<brand>.myshopify.com/admin/products/<productID>
https://<brand>.myshopify.com/admin/products/<productID>/variants/<variantID>
This is an accepted solution.
Try this format:
gid://shopify/ProductVariant/<ProductID>
You can also refer to this Developer Doc:
https://shopify.dev/api/examples/order-editing
I hope this helps!
User | RANK |
---|---|
3 | |
1 | |
1 | |
1 | |
1 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023