Skip to content

Conversation

@timdmackey
Copy link
Contributor

This task will automatically tag any products which have variants set to "continue selling when out of stock." This allows you to set up a product collection that includes "available" products and not just products with inventory greater than zero. Configure the task with a tag to apply, and Mechanic will take care of applying and removing the tag as appropriate.

This task is based on a Canny request to tag products by availability. Since the goal of this request concerns collection filtering, and shopify can already filter on inventory count, I decided to only implement tagging on products with "continue selling" since that gives the merchant what they need to create the collection.

The code is based on the Auto-tag products that have a "compare at" price task. I didn't see the need to include negative tagging (filters can already negate tags), but I can add that back in if desired.

I thought it might be useful to include this collection example image in the documentation (as a data uri), but I don't see any other tasks with images so I decided not to.

Screenshot-2025-11-29-at-10 49 13 PM

This task will automatically tag any products which have variants set to "continue selling when out of stock." This allows you to set up a product collection that includes "available" products and not just products with inventory greater than zero. Configure the task with a tag to apply, and Mechanic will take care of applying and removing the tag as appropriate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant