Vendor name linked to corresponding collection

Topic summary

A Shopify store owner using the Craft theme wants to link vendor names on product pages to custom collection showcase pages (featuring collages, videos, and additional content) rather than the default vendor pages.

Current Issue:

  • Modified main-product.liquid to make vendor names clickable using {{ product.vendor | url_for_vendor }}
  • Links now direct to default vendor pages (/collections/vendors?q=name%20collection) instead of custom collection pages (/collections/name-collection)
  • URL redirects don’t work because the source URL still exists

Proposed Solution:
A community member (YOD_Solutions) suggested using:

{%- assign vendor_collection_handle = product.vendor | handle -%}
{{ product.vendor }}

This dynamically generates collection handles matching the vendor name pattern, avoiding manual redirects.

Status: The original poster thanked the responder, suggesting the solution may work. A third user (miguel_by) requested help adapting this approach to their own code snippet involving product card vendor links.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

Hello,

I sell on my website some objects made by different vendors. I give each vendor a personalized showcase page with collages, videos and more pictures. Technically individual templates of collections.

On a product page, I wanted the vendor name to be clickable and linked to the corresponding collection/vendor showcase.

Following the instructions from another chat (underneath), I edited the code in main-product.liquid as follows:

Find this line of code under {%- when ‘text’ -%} code

{{- block.settings.text -}}

Copy

Change it to this and save your file

{{- block.settings.text -}}

My problem is half solved. Now, a click on the vendor name directs to an empty page where all the vendor’s products are showcased. But not to my nice collection pages.

I wanted to redirect the url for each vendor, but it doesn’t work as the source url still exists, right. It would have been:

Is there a dynamic solution to redirect each vendor to its corresponding collection page?

Or will I have to migrate the content for each of my current vendor collection page to a possible new template of vendor page?

My theme is Craft, thank you in advance.

Best

Ph

How about:

{%- assign vendor_collection_handle = product.vendor | handle -%}
{{ product.vendor }}

you can modify “vendor_collection_handle” to match the pattern of your vendor collection handle.

1 Like

Thank you!

Could you help me out, this is my code snippet:

{{ 'onboarding.product_title' | t }} {% render 'product-price', product: product_card_product %} {%- if settings.show_products_rating and product_card_product.metafields.reviews.rating.value != blank -%}
{%- endif -%}