How to make some products of a collection non-clickable on collections page

Highlighted
New Member
16 0 0

Hi, I have seen some sites where one of the product images is really a message on that image and clicking on it is diabled. Any clue how to disable the click on any selected collection item?

Thanks

Sukanta  

0 Likes
Highlighted
Excursionist
25 0 4

Hi Sukanto, You can use a tag for those product you want non-clickable. Then you can use an if,else tag on your collection listing template to hide the product link. It is hard to say exactly without see site or know theme name.

Thanks

shopifycrew.com Trusted partner for setup and customize your Shopify site.
Highlighted
New Member
16 0 0

Cool, Thanks. That gives me the solution to implement. I am doing it in Retina theme.

0 Likes
Highlighted
Excursionist
25 0 4

Glad to hear that you are able to implement.

Thanks

shopifycrew.com Trusted partner for setup and customize your Shopify site.
0 Likes
Highlighted
New Member
4 0 0

I have a related goal: At the end of the product page, I need to disable the ability to click on any of the 'more from this collection' products (while still displaying them).

I understood the above, but am having trouble locating the link.  

Using 'solo' theme. The source code is in single-product.liquid, which links related-products.liquid, which links to product-grid-item. I expected to find the link there and disable it, but there was no link.

Can you help?

0 Likes
Highlighted
New Member
1 0 0

Can you please elaborate the  if,else tag  - How do I do this? Where?

 

 

0 Likes