I am trying to get a replacement product to show up on a discontinued products page.
We currently have a system that allows us to attach related articles to product pages by tagging the article with the handle (article.handle) of the page. I am now trying to replicate this but with products.
Below is the code I have so far
{% for product in collection.all.products %}
{% for tag in product.tags %}
{% if tag == product.handle %}
### Related Articles
### {{ product.title }}
>{{ product.sku }}
{% endif %}
{% endfor %}
{% endfor %}