Checkout sends me to cart page instead of cart drawer

Topic summary

A user has configured their Shopify theme to use a cart drawer instead of a cart page. However, when customers are at checkout and click the ‘Shopping Cart’ link, they are redirected to the cart page rather than triggering the cart drawer to open.

Key Issue:

  • Cart drawer works correctly in most contexts
  • Checkout page’s ‘Shopping Cart’ link bypasses the drawer and loads the full cart page

User’s Goal:

  • Prevent customers from accessing the cart page entirely
  • Ensure the cart drawer opens consistently, including from checkout

The discussion appears to be seeking troubleshooting help to modify this checkout behavior and maintain consistent cart drawer functionality throughout the shopping experience.

Summarized with AI on November 25. AI used: claude-sonnet-4-5-20250929.

Hello, in my theme settings I’m using a cart drawer instead of the cart page. But when I’m at checkout and I click ‘Shopping Cart‘ (see image below) it sends me to the cart page instead of opening the cart drawer. My cart drawer is optimized and my cart page is not. How do I never let people go to cart page and just open cart drawer. URL: Your Shopping Cart – LIORÉNNA

@TrendBlend your cart drawer or page is a part of the theme, whereas checkout page is part of shopify system. Hence when you click on link it goes back to page only as it does not have any code added to open cart. Still you can ask actual shopify support about it and check checkout settings from customize settings.

1 Like

This is possible with a bit of JavaScript, but I’d get professional help with it if you’re not familiar writing that.

Steps:

  • Include a script in theme.liquid that checks for the current page and makes sure it’s not the cart page
  • If it is the cart page, redirect to whatever page you want, with a url parameter like ?cart-drawer=openat the end (bonus, make the page configurable via theme settings)
  • Also have the script check for that url parameter on page load, if it exists, open the cart drawer right away, ideally using existing “open cart drawer” JS functionality in the theme

As @suyash1 pointed out, the checkout page is system not theme. Unless you’re on the Plus plan, customizing the checkout page is pretty restricted. Best to stick with what works.

1 Like