How to custom vendor link in product page

Solved

How to custom vendor link in product page

HKR
New Member
15 0 0

this is my product page: https://hkrsolutions.com/products/motorola-mototrbo-r7-digital-portable-two-way-radio, everytime i click the vendor, it jump to the /vendors?q=MOTOROLA page, i need to change this to a certain page like https://hkrsolutions.com/collections/radio-motorola

Accepted Solution (1)

DaveedValencia
Shopify Partner
26 5 5

This is an accepted solution.

You can do this by editing the product vendor liquid file. Add an "if" statement to check if the Product Vendor is Motorola, if it is, then it will display the Motorola collection. Otherwise it will send to the default vendor page.

 

 Motorola Example.png

View solution in original post

Replies 5 (5)

HKR
New Member
15 0 0

i think this change will enhance my website seo

PaulMartin
Shopify Partner
574 57 136

Hi HKR,

I'm not sure how this was setup in the backend of your store. I'm assuming it's with the use of metafields or metaobjects. If so, you'll simply just need to change the value of the field.

If not, could you enlighten me how this was set up in the admin? If you're unsure with it yourself, let me know.

[email protected]
Feel free to email me! 😄
I'm open to conversations or work ʕ •ᴥ•ʔ

DaveedValencia
Shopify Partner
26 5 5

This is an accepted solution.

You can do this by editing the product vendor liquid file. Add an "if" statement to check if the Product Vendor is Motorola, if it is, then it will display the Motorola collection. Otherwise it will send to the default vendor page.

 

 Motorola Example.png

HKR
New Member
15 0 0

Thanks for going out of your way to write me the code, it`s very useful

HKR
New Member
15 0 0

HKR_0-1725950357825.pngSolved the problem, thank you.