Clearing cart when users leave

New Member
1 0 0

Hi guys,

I'm looking for a method to clear the cart when users leave my store. The store bring users from product page to checkout, and they never see their cart, sometimes people who is not accostumed to the processes of e-coms, leave the store, come back add the product again (so it's doubled in the checkout) and don't know how to remove them, so they leave.

Is there any way to do that?


Shopify Staff
Shopify Staff
741 53 90

Hi, @Cervicalix.

Sophia here from Shopify. Welcome to the Shopify Community!

I can see how this would be a confusing experience for customers. Carts expire after a session ends, but it sounds like some visitors have come back before the session has ended (a session ends after 30 minutes of no activity by a visitor, and at midnight UTC).

Skipping the cart page isn't something that we recommend, as it takes away the customer's chance to review their order and ensure they're happy with their choices before moving on. It can also give them an opportunity to keep shopping, as well as review any terms and conditions or notes you may need them to consider. That being said, I'm really curious to learn more about your business and why skipping the cart works for you. Is this a one-product store where customers typically only buy one item?

While emptying the cart for the customer would be outside of our support team's scope, I did come across a couple potential coding solutions here in the Shopify Community Forums (here and here). The Cart API reference may also be helpful to you. If you're not comfortable experimenting with the code on your own, I recommend checking out the Shopify Experts Marketplace to find someone who can help you.

Sophia | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog