Click on Vendor and get directed to collection

Patricbl12
Tourist
5 0 2

Hi KetanKumar,

I edit the product-price.liquid and changed the normal vendor to {{product.vendor | link_to_vendor}} 

Now, I can click on the vendor on a product page and get redirected to all of the vendor's products.

However, if I click on the collection via a direct link to it, the collection shows a collection photo and a description. 

If I click on the vendor of a product I get directed to the collection, but the collection image and description are now missing:

Normal Collection

Patricbl12_0-1612977546321.png

 

 

Collection via "Vendor" Link:

Patricbl12_1-1612977545683.png

 

 

How can I redirect to the actual collection including the cover photo & description?

I hope you can help me with this. 

 

Best regards, 

 

Patric

Replies 13 (13)

KetanKumar
Shopify Partner
36839 3635 11972

@Patricbl12 

Sorry for facing this issue, it's my pleasure to help us.

Welcome to the Shopify community!
and Thanks for your Good question. 😊

Please share your site URL,
So I will check and provide a solution here.

 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Patricbl12
Tourist
5 0 2

Thank you very much @KetanKumar 

The URL is https://parartgon.com/ or https://productmatch.myshopify.com/

(is the same)

 

I am looking forward to hearing from you soon. 

 

Best regards, 

 

Patric

KetanKumar
Shopify Partner
36839 3635 11972

do you have like this https://parartgon.com/collections/vendors?q=Anjali to this https://parartgon.com/collections/anjali ?

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
Patricbl12
Tourist
5 0 2

@KetanKumar Yes exactly!

 

Is it possible to redirect to the second kind of link, instead of the first link? 

I need to direct to the actual collection...

KetanKumar
Shopify Partner
36839 3635 11972

@Patricbl12 

Yes, it custom redirect code possible to this.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
bylo
Tourist
6 0 3

@KetanKumar 

I'm facing this same issue. How do I redirect the url_to_vendor output to the collections page for the vendor rather than the all collections page?

KetanKumar
Shopify Partner
36839 3635 11972

@bylo 

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community!😊
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
bylo
Tourist
6 0 3

@KetanKumar 

My site is www.littlelalang.com thank you!

KetanKumar
Shopify Partner
36839 3635 11972

@bylo 

thanks do you have add this link

{{ product_vendor | link_to_vendor }}
If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
bylo
Tourist
6 0 3

@KetanKumar 

I added the bolded section below

{% if section.settings.product_vendor_enable %}
<span class="h3" itemprop="brand">{{ product.vendor | link_to_vendor }}</span>
{% endif %}

but then when i click on the vendor name (e.g. 'Petite Crown'), it redirects to https://littlelalang.com/collections/vendors?q=Petite%20Crown

This is not correct as there is no collection description displayed.

So I changed it to an <a> link as you see below:

{% if section.settings.product_vendor_enable %}
<span class="h3" itemprop="brand"><a href="https://littlelalang.com/collections/{{ product.vendor }}">{{ product.vendor }}</a></span>
{% endif %}

but now it redirects to https://littlelalang.com/collections/Petite%20Crown which is still not correct.

I need the vendor name to redirect to https://littlelalang.com/collections/Petite-Crown . Is there a way to do that in the product file?

KetanKumar
Shopify Partner
36839 3635 11972

@bylo 

can you please check shopify liquid possible to shopify no more

https://www.shopify.in/partners/shopify-cheat-sheet 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Partner | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
pioneer100
Shopify Partner
1119 145 481

@Patricbl12 
That will happen because clicking on vendor name doesn't redirects you to that vendor's collection page. instead of that it is taking you to collections/all page and that page is filtered depending on your vendor's name. 

If helpful, Please Like and accept The Solution.
Patricbl12
Tourist
5 0 2

@pioneer100 

I see, thanks for the explanation! Is there any way to direct them to the actual collection page?

Or is that not an option?