Goal: In Shopify’s Refresh (Online Store 2.0), replace the product page “Add to cart” with an external link button for many products, ideally configurable per product in the editor, without using an app.
Dear,
I am using the Refresh theme and would like to change the add-to-cart into an external link button, but I don’t want to use an app. I already found a guide that supports Vintage-Shopify-Themes, but I am using an 2.0-Theme.
I want to do this in bulk, so not just only with one link. It would be great if I could change the external link when I create the product.
I forgot to say that I want to do this at bulk. That means I could hide the add to card button and add a new button. The problem is, I don’t know how to add a button with a changeable external link in the product editor. Do you understand what I mean?
Yeah sure @Wolfi , you’d like to do that for every product page, add button, but each page should have different url. It’s great that you’re on 2.0 theme.
Not a problem. I’m not sure about the file structure on your store. Could you share url so I can take a look?
@MarinaPetrovic Hey again, I would like to know if you could help me soon, because I need to get this to work asap. If not, that’s no problem, I just need to know. Thanks
Hi @Wolfi , when I said file structure, I meant on your files that contain code. When you go to Edit Code > Sections > There are many files. Is there a file called main-product.liquid or product.liquid?
That contains this piece of code:
This submit button is your add to cart button. So we should remove that and add:
```markup