d
Topic
vuela Member
Posts:
4
July 04, 2010

Link to tags on product pages This post is outdated

I would like to add a simple in-line row of links to the tags on a product page. On my product page I have the tags listed for that product, but I am having trouble getting the tags to link to a results page showing all products that have that same tag.

Here is the page I'm working with: http://blackroosterdecor.myshopify.com/products/the-devon-chair-reincarnated

I want the tags to be clickable to show other items that also have that tag (independant of any collection if possible).

Also, on my collection pages I have the tags setup how I like them - nice!

Any help is appreciated!!

i
Replies
Posts:
5840
Last edited July 04, 2010

I want the tags to be clickable to show other items that also have that tag (independant of any collection if possible).

I fixed your product.liquid code by adding a line code and editing the URL... using this now:

<div id="product-tags">
<span class="tagged">Tagged</span>
{% for tag in product.tags %} +
{% capture url %}/collections/all/{{ tag | handle }}{% endcapture %}
{{ tag | link_to: url }}
{% endfor %}
</div>

I am sorry for the intrusion!

Caroline @ Shopify

 

Caroline from http://11heavens.com ∴ mllegeorgesand AT gmail DOT com
vuela Member
Posts:
4
July 04, 2010

Thanks!

However, I like this better - so that it links to a results page that shows all products with that tag (answer from this post: http://forums.shopify.com/categories/2/posts/12608).

Posts:
5840
July 04, 2010

It's the same answer :-)

Caroline from http://11heavens.com ∴ mllegeorgesand AT gmail DOT com