Always use cart drawer instead of cart page

Hello, is there a way to always send users to the cart drawer instead of to the cart page? URL: Storage & Organization – Stylish Solutions for a Tidy Home – InteriorGlows. When everything is loaded and you click on the cart, you open the cart drawer, but when you just opened another page and you click on the cart, you open the cart page. How can I always use the cart drawer?

Hi @TrendBlend

You can check the Cart type here and switch to Drawer

Hello @DaisyVo , I have that already, and the cart drawer most of the time shows. But when you click on the cart button when you just navigated somewhere else it sends you to the cart sometimes. So when that happens I want to stay on the page and let it load and then open the cart drawer and not go to cart page. Is this possible?

Hey there @TrendBlend You can try the app and process mentioned in the solution marked as a reply here https://community.shopify.com/post/1601593

Let me know if this works for you

Hello, I have already set the cart to drawer. But the issue is this button:

When you click it, it redirects you to the cart drawer which is good.

but when you refresh and click it then, it redirects you to the cart PAGE which is not good, can I not just remove the cart page so it will always send the user to the cart drawer or something else?

Hi @TrendBlend

Can you share the video?

Hello @DaisyVo , https://streamable.com/wfjzq6 when I refresh my page and click on the cart page, you automatically go to the cart page, instead of waiting for the page to load to open the cart drawer. Is there a way to disable the cart page, or to never go to the cart page anymore?

Hello @DaisyVo do you know how I can update the cart drawer after adding items to cart without refreshing? I’m adding them to cart like this:

try {
const response = await fetch(window.Shopify.routes.root + “cart/add.js”, {
method: “POST”,
headers: {
“Content-Type”: “application/json”,
},
body: JSON.stringify({ items: itemsToAdd }),
});

if (!response.ok) throw new Error(“Add to cart failed”);