mechanic-tasks
mechanic-tasks copied to clipboard
Unpublish products that have been out of stock includes gift cards
Task: https://github.com/lightward/mechanic-tasks/tree/main/docs/unpublish-products-that-have-been-out-of-stock-for-x-days
This task also hides gift card products. (There's a isGiftCard field on the product object btw)
Perhaps also check for the value "continue selling when out of stock" is checked? (ProductVariantInventoryPolicy)