Replace the add to cart button for specific products

Hi :slightly_smiling_face:

is it possible to replace the add to cart button into a button which directs you to the product page for some specific products?

Thanks! :slightly_smiling_face:

Hello @LinisCandy

You want to redirect to product page when click on add to cart button right?

if yes, then you only need to make change in add to cart button href. by that it will send user to specific product page instead of add item to cart.

This would require a little coding, you only have to go to the page and add a simple condition which can be like if the product is ABC then show a link else normal add to cart should show

yes, thats it, but i cant do the coding. Can you do that?:slight_smile:

Yes, but only for specific products

Sure. I understand. But it requires some changes in code

can you do that?:slight_smile:

That can be done. But in that case which condition we will hide the add to card button it need to be define. like price range or title or collection etc.

maybe product id? :slightly_smiling_face: would be the best