Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hi,
I'm trying to create a flow which will change the product template used by a product depending on the quantity in stock of the variants. I have the trigger working correctly using the "Product Variant Quantity Changed" with "Product has out of stock variants equal to 0 - True/False" but cannot find the field in the actions which needs updating to make the change.
Hello! We currently don't have any Actions to update the product template directly. But you can use the SendHTTPRequest action to send a GraphQL mutation to update the product template used. In the example section of the SendHTTPRequest action docs there is a sample of how to use it to send a GraphQL request to Shopify Admin to update a product, you could follow that and instead of updating the product description like in the example you can update the `templateSuffix` property:
mutation {
productUpdate(input: {id: \"{{ product.id }}\", templateSuffix: "new-product"}) {
product {
id
templateSuffix
}
}
}
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025