How can I modify the checkout button to redirect to the cart page?

I would like to know how to change the function of the checkout button that is in the cart drawer.
Instead of going to the checkout, I would like it to go to the cart page.

Thanks!

1 Like

This will vary wildly between themes, so without know what theme you are using or being able to inspect the website it can only be described in very broad terms.

You will need to find the template and it’s area of code the renders the cart drawer, this may be cart.liquid in templates or even cart-drawer.js in assets, or cart-drawer in snippets etc.

You will then need to either change the form type used to be for the cart, or change the behavior of the checkout button itself or replace the button with a link that looks like a button to the cart.

See similar threads or others found through search depending on theme

https://community.shopify.com/c/shopify-design/make-quot-proceed-to-checkout-button-quot-redirect-to-cart-page/td-p/880564

https://community.shopify.com/c/shopify-design/changing-checkout-button-on-cart-drawer-to-view-cart-page/td-p/1437576

@PaulNewton i use “Refresh” theme