Tags: Out of Stock, Products, Unpublish
This task monitors inventory updates, and pulls the product from the selected sales channels whenever a product's total inventory meets your "out of stock" threshold. Optionally, it'll send you an email when it does so. This task can also be run manually, to scan all products at once.
- View in the task library: tasks.mechanic.dev/hide-out-of-stock-products
- Task JSON, for direct import: task.json
- Preview task code: script.liquid
{
"sales_channel_names__required_array": [
"Online Store"
],
"email_notification_recipient__email": "",
"out_of_stock_inventory_quantity__number_required": "0"
}
Learn about task options in Mechanic
mechanic/user/trigger
shopify/inventory_levels/update
Learn about event subscriptions in Mechanic
This task monitors inventory updates, and pulls the product from the selected sales channels whenever a product's total inventory meets your "out of stock" threshold. Optionally, it'll send you an email when it does so. This task can also be run manually, to scan all products at once.
This task monitors inventory updates, and pulls the product from the selected sales channels whenever a product's total inventory meets your "out of stock" threshold.
To scan your entire catalog for out of stock products, use the "Run task" button. Otherwise, this task will run whenever an inventory level is updated.
If you'd like to wait until the product has been out of stock for several days, use this task instead: Unpublish products that have been out of stock for x days.
Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.
Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.
Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!