Vendor name linked to corresponding collection

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.

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 -%}