Need Help with Abandoned Cart/Checkout/Browser Page Refresh for Debut Theme

Hello Shopify Community,

I hope everyone is doing well. I am currently facing an issue with my Shopify store, which uses the Debut theme. We have a minimum production order time of 48 hours prior, and I’ve noticed that some customers leave their cart, checkout, or browser page with their order selected, only to come back later to complete the purchase. Unfortunately, this causes issues with our production schedule as the order time is critical.

I would like to implement a solution where any abandoned cart, checkout, or browser page is forced to refresh when the customer returns. This way, they will be prompted with the updated information and time constraints for order production.

Has anyone implemented a similar solution or could guide how to achieve this? Any help or pointers to relevant resources would be greatly appreciated.

Thank you in advance for your assistance!

Best regards

@pucca can you please clarify the basic issue that you are facing.

there is no forced refresh page for Cart/Checkout/Browser in my shop theme Debut and I would like to implement it

I do not completely follow – you have an order window and unless people put their order during this time, you can not fulfil their order?

There are 2 ways to approach this.

First – in backend.

You may create a Flow so that when product is added to the store (or published), Flow will wait for, say 6 hours and then set quantity to 0 or unpublish the product (may add a condition here to only do it to products with a special tag, or alike). This way even if people have this product in their carts it will be automatically removed as sold out.

I’d prefer this approach because it does not require any theme modifications and it also targets only required set of products.

Second approach – you can add a JS code to your theme to remember when user was last active (say, loaded any page on the site). If enough time has passed since then – flush their cart. Remembered time is updated with each page load.

I like this less, but here is the code you can add right above tag in your layouts/theme.liquid:


It’s a more blunt tool, but can be made more intelligent depending on what theme you use and your goals.

1 Like

Hi Tim,

We have a bakery and sell cakes online, requiring a minimum of 48 hours’ notice to produce a cake before the customer’s chosen pickup or delivery date. Let me give you an example of where the problem lies:

A customer selects a cake today, June 21st, in the afternoon, for pickup on the 23rd, and leaves it in the cart or at checkout.

The customer then returns a few hours later, but it’s now past midnight, making it the 22nd. The issue is that without a forced refresh of the cart/checkout page, the order still shows the initial chosen date, thereby bypassing the required 48 hours’ notice and causing problems for our production schedule.

We’ve noticed that customers can return to their cart or checkout page with the same order information even after months if they visit us again using the same IP address.

We would like to implement a forced refresh so that customers are required to start the order process over again. I hope this clarifies the problem better this time.

Thank you