Hey guys, is it possible to auto tag products in collections with their variant name (size in our case) and each collection these products are? Tagging all current products would be ideal, but waiting for new products would do too.
If above is possible, looking to see if removing tags when product is removed from collection, is also possible action.
Yes you can tag products, and you can use collection names in the tags. Iâm not sure it makes sense to use those tags to make a product enter a collection and then use that same collection membership to set a tagâŚseems a bit circular. I think you need to think out what you actually want to happen and when and give an example if you need more detail about how it could work.
We use Tapcart for mobile shopping app, and filtering is not working unless we tag how they want..
This is what they want ->>>
Tapcart filters work in conjunction with your Shopify tags. To utilize this feature you will need to tag every product with both the variant tag(s) and the collection group(s) they live in. For example, if you have a menâs product called âBlue Shirtâ which lives in both the âNew Arrivalsâ collection and the âMenâs Topsâ collection, the product must be tagged with both the variant name âcolor-blue and the collection group names, âNew Arrivalsâ and âMenâs Topsâ. This is required for this item to be filtered within the app in both collections. In simple form, a product must be tagged with both the variant name and collection names to which it belongs to.
This scares me so much, I wonât be doing it manually thatâs for sure
Yuck, I sympathize. This is a brittle approach. Two approaches would work. You could use âProduct added to storeâ to autotag any new product. In the admin, you could back fill those tags by running the same workflowâŚchoose the products and click âRun Flow automationâ from the ââŚâ menu.
The workflow would look like:
Product added to store
Add product tags (loop over product.collections and output titles in a comma separated list)
Add product tags (loop over product.varants and output variant titles)