Enable Shopify Flow to update product template based on tags or types.

Enable Shopify Flow to update product template based on tags or types.

eric64418
Tourist
6 0 2

This should not be something that I should have to do manually. Chat GPT wrote this instruction manual, if only it was possible to work... 

 

  1. Install Shopify Flow:

    • Go to the Shopify App Store and install the Shopify Flow app if you haven’t already.
  2. Create a New Workflow:

    • In your Shopify admin, go to Apps and then Shopify Flow.
    • Click on Create workflow.
  3. Set Up the Trigger:

    • Add a trigger by selecting Product created or Product updated. This will trigger the workflow when a product is created or updated.
  4. Add a Condition:

    • Add a condition to check the product type. Click on Add condition and choose Product type.
    • Set the condition to match the specific product type you want to assign a template to (e.g., "Clothing").
  5. Add an Action:

    • Add an action to update the product template. Click on Add action and select Update product.
    • In the action settings, set the Template suffix to the template you want to assign (e.g., product.clothing).
  6. Save and Enable the Workflow:

    • Name your workflow (e.g., "Assign Clothing Template") and click Save.
    • Enable the workflow.
Replies 5 (5)

paul_n
Shopify Staff
1672 183 382

Stay tuned on this. We have something in the works that will help this kind of use case. 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
eric64418
Tourist
6 0 2

Thanks! For now I'm using the mechanic app to do this. I do feel that it should be a native feature though. 

Chris_Marshall1
Shopify Partner
40 1 11

Hi @paul_n - any update on this? We want to build something that runs when a product description changes and would rather it was all Shopify-native rather than relying on other platforms.
Thanks
Chris

paul_n
Shopify Staff
1672 183 382

You can now use "Send Admin API request" to call any Admin API. So you use it to set the template suffix. There is a template available (slightly different use case but same action) here: 

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
Chris_Marshall1
Shopify Partner
40 1 11

Thanks Paul - yeah it was the trigger I was more interested in. We've used the Admin API request action already - very useful 🙂

Running get products as a scheduled job limits us to 100 results each time. Products will update after every price and inventory change. If we were to send a bulk price update, we might well update > 100 products in a minute and so there's a risk that we miss changes, even if we were to set it to run each minute.