Personalized checkout and custom promotions with Shopify Scripts
using Tag Filtering, how would I populate a collection object in liquid? For example, say we have a related tag we're using lets say related-baseball-hats using https://www.mydomain.com/collections/all/related-baseball-hats I can see them all in search. But if I have a product and I pull the tag out, how can I bring back these related products into a collection to show on the product page. Is it possible to use liquid to return a collection based on tag filtering? What is the correct markup.
Thanks!
I was hoping something like this would work?
{% assign my_tagged_products = collection.products | where: "tags", "related-baseball-hats" %}
https://shopify.dev/docs/themes/navigation-search/filtering/tag-filtering
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024