Redirect a product to another page (Theme: Brooklyn)

MK1
Shopify Partner
7 0 0

THEME : Brooklyn

Hi!

I have a problem here, i want to redirect a couple of products on my collection list, and i want these products to be linked and when you press on these products you should be taken to another page ( t-shirt shop) so basically, if you press the product / product picture it should redirect you to another page. Here on this screenshot you'll see on of the products i want to be linked, https://gyazo.com/8a5d49f9c1f8665dd293b10002b6f99e

I have received an answer from someone before saying that i should use the extension ShopifyFD to link the products, and use this code, but i dont understand... :(

-----

"""""""Yes, you can use metafields to determine whether to redirect to an external link or not. https://freakdesign.com.au/blogs/news/how-to-setup-the-custom-fields-for-shopify-chrome-extension

Basically, you need a condition like 

{% if product.metafields.redirect.link_to %}
 //Do the redirect
 {%else%}
 // link to product page as usual
{% endif %}

please note that redirect is the Namespace and link_to  is the key I gave as an example ""

---

I really appreciate the help!
I really appreciate the help!
I really appreciate the help!

0 Likes

I did not quite understand why and where you need to redirect a product. I will appreciate any further details and any examples from you.

Best,
Arthur

Shopify subject matter expert | Founder at GenovaWebArt | Full-services shopify agency | info@genovawebart.com
0 Likes
Mandelbrotian
Shopify Partner
132 1 19

Hi MK,

Did you work this one out? ShopifyFD is a Chrome extension that can be used to easily access functionality that might be a little harder to get to otherwise. You'll need to make sure that you activate it when you log in to your store, then you'll be able to access product metafields from your product pages allowing you to enter the desired redirect. You'll then need to change the code in your theme file with the code linked in your initial post. Feel free to contact me directly if you need help with this.

Cheers,

Elliott

Feeling a bit lost? Contact elliot@mandelbrotian.com for help with theme setup, alterations, custom functionality, and app development.
0 Likes