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!
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024