Customize buy button destination (cart instead of checkout)

Hi team,

I’m suing a template from a dropshipping training that I bought and I’d like to customize the buy button destination. Since it’s not an standard template from Shopify, I didn’t manage to get support to solve it.

I’d like to take users to the cart, instead of the checkout since I’d like to provide an opportunity for the users to add more products on their cart to make the purchase.

My website is: https://casaideia.com/

Do you know how can I access the HTML of the product page to make this adjustment?

Thanks,

Alexandre

1 Like

Hope this can help you

To customize the buy button destination, you’ll need to dive into the theme code. First, go to your Shopify admin, then Online Store > Themes > Actions > Edit Code. Look for the file that handles the product page, usually named product-template.liquid or something similar in your Sections folder. Once you find it, look for the form tag or the button code that controls the add-to-cart action. You can change the action URL from the checkout page to the cart page by updating the form’s action attribute. Specifically, you want to change it to /cart instead of /checkout. If you’re not comfortable editing the code, you might want to work with a Shopify expert to make sure everything’s set up properly

1 Like

Thanks for your guidance Alena :wink: