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:
-
From mywebsite.com - This website is for sale! - mywebsite Resources and Information.
-
To mywebsite.com - This website is for sale! - mywebsite Resources and Information.
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