Set metafield when products go out of stock in Shopify by using Arigato Automation
Use metafields to update your theme with stock status
Triggered when a product variant goes out of stock or comes back in stock, this Workflow updates a metafield to indicate the stock status. This helps you track sold-out products easily.