How to automatically empty a customer's cart after a set time in Shopify?

2 0 0

Hello, we sell made-to-order products that can be ordered for a specific date. The problem we have is that some people add an item to the cart, choose a delivery date (orders can’t be placed within 48 hours), but then do not place the order for whatever reason. Instead, they come back a few days later to place the order with the original date still stored in the browser/order. Consequently, they're able to place orders within 48 hours, sometimes even for the same day, which is impossible for us as we make everything to order.


We have a countdown timer on the cart, but if they've already proceeded to the checkout, the countdown timer won’t empty the cart. Therefore, they can still place the order at a later date, with their original and (ideally) unavailable date.


Is there a setting in Shopify that will just wipe the cart after a certain amount of time?

Replies 2 (2)

11 1 1

Hi Harry,


Which app are you using? There are a couple of apps that empty carts like Urgency Cart Countdown Timer (4.9 stars, 81 Reviews, Free), but I haven't seen any that can affect the cart after a customer has made it to checkout. If you're comfortable editing your store's theme code, you can clear cart via Shopify's clear.js API, or else work with a shopify developer to making some updates.

io from Symmetry Commerce
- Was your question answered? Mark it as an Accepted Solution
- Need help with your Shopify store or app? Reach me at:

Shopify Partner
1822 143 189

Hi @Harry30 ,


Are you using APP for countdown feature? You can clear the cart using the Shopify cart frontend API.


For this you just need the trigger point, that is end of the timer which will be stored in user browser. Whenever the time lapse a SCRIPT function will clear the user's cart.


The only concern is this script will not run in checkout flow.


Let me know if you have any further questions or need help in implementing the same.

For any custom development WhatsApp or connect at Email ID: for quick consultation. | Shopify Free codes
To support Buy Me a Coffee