Set custom product metafield to "Backorder" or "In Stock" based on inventory level in Shopify by using Arigato Automation
Set custom product metafield based on stock availability, providing transparent inventory status.
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.