How to force refresh page if remove item in cart has been clicked

Hello,

Is there any way to force refresh the cart page when remove item is clicked? The reason why I would like to do this is that I added a checkout button at the top of the page. And this will not disappear if the page is not refresh after clicking the remove item to cart.

@leinhatz181 Yes, it’s possible. can you share your store URL so I can check and provide you the solution.

Here’s the link of my store https://lagshotgolf.com/

Hi @leinhatz181 ,

Can you please share which theme do you used for your store? just check in customize theme settings options if they have options for the refresh page on removing the products from the cart.

If don’t have options then might be need to add some custom js or coding to this.

Hi @Akibhusen

I am currently using the Debut theme and I can’t see an option to enable force refresh after an item has been removed from the cart.

Hi,

To refresh the cart page on the click remove link. Please follow the below step:

  • From your Shopify admin, go to Online Store > Themes.
  • Click on the ‘Customize’ button of the live theme.
  • Then select the cart page from the dropdown and click on the cart page from the left sidebar. see screenshot below

  • After that Uncheck the checkbox which is explained in the below screenshot.

Hope you are clear with the changes.

Thanks,

If you want to show an update to your cart without having to reload the page, then using a request is your best option.

Dinar Guru

Try this script, this might help you in reloading the cart page by clicking on remove button.

Note: Change the class as per your convenience.