Vendor & Product Type Link on my Shop product page and grid dont go to my linked collection.

Vendor & Product Type Link on my Shop product page and grid dont go to my linked collection.

mfloyd77
New Member
5 0 0

Here is the snippet code. I have tried a few variations based on these forums with no success.

 

{%- if settings.show_product_vendor -%}<li><a href="{{ routes.collections_url }}/{% if collection == blank %}all{% else %}{{ collection.handle }}{% endif %}?filter.p.vendor={{ product.vendor | downcase | excape | replace: ' ','+' }}"
class="text-uppercase"
>{{ product.vendor }}</a></li>{%- endif -%}
{%- if settings.show_product_type -%}<li><a href="{{ routes.collections_url }}/{% if collection == blank %}all{% else %}{{ collection.handle }}{% endif %}?filter.p.product_type={{ product.type | downcase | excape | replace: ' ','+' }}"
class="text-uppercase"

>{{ product.type }}</a></li>{%- endif -%}

 

I pulled it from the product grid item design in snippets. If you click on the vendor or product type, it doesn't link to anything. Shopify said I have everything correct and its a theme issue. but should be able to fix with some code

 

https://shop.thebabypenguin.com/collections/baby-toys

Replies 0 (0)