Arigato Automation

Set Custom Product Metafield To "backorder" Or "in Stock" Based On The Inventory Level in Shopify by Using Arigato Automation

This automation sets a custom product metafield to either "Backorder" or "Instock" depending on whether the item is in stock or not.

Download Complete

You can now import the ".arigato" workflow file you downloaded into the app.

  1. Open the Arigato Automation app in your Shopify admin.
  2. Visit the "Import & Export" page within the app.
  3. Scroll to bottom and upload your file to import the workflow.

The automation is fired every time a product is updated or stock. Once fired, it checks for the current product inventory level. If the inventory level is less than or equal to 0, the app updates the product metafield "custom_stock_status" to "backorder." If the product is in stock, the workflow replaces the "custom_stock_status" metafield with "in stock."

This automation can be used to assist in filtering for products that are in stock and the ones out-of-stock.

ProTip: To effectively implement the workflow, a batch workflow is required, to loop through all the products with the same conditions and actions to set the respective metafield value. 

Set Product metafield