Is there a way for Shopify to automatically remove the sold out items from someone's cart?

Topic summary

A user seeks a way to automatically remove sold-out items from customer carts. The issue occurs when customers add available products to their cart, but those items sell out before checkout—leaving them still purchasable if they remain in the cart.

Key Points:

  • Shopify automatically blocks checkout when customers attempt to purchase sold-out items in their cart
  • The problem only exists if the “Continue selling when out of stock” setting is enabled on products
  • One responder suggests verifying this inventory setting is disabled to prevent out-of-stock purchases
  • A tutorial video link was shared explaining the inventory setting

Status: The discussion remains open with no definitive automatic removal solution provided—only confirmation that Shopify’s default checkout blocking should prevent the issue if inventory settings are configured correctly.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

Is there a code or recommended app to remove sold out products from customer’s carts?

Hey @Regan23 ,

Are you allowing users to add items to the cart even when they are sold out? Shopify removes all abandoned carts in 10 days automatically.

Hi @ThePrimeWeb , People are putting products in the cart when they are still available and then the products sells out and if they have it in their cart they are still able to purchase it.

Hi there! If your customers have sold out products in their cart, Shopify will automatically block checkout when they try to complete the purchase. Your customers can buy out of stock products only if you have ‘Continue selling when out of stock’ enabled on your products. Have you checked if this setting is enabled?

If you have allowed people to purchase after the item is out of stock, then it will allow them to.

Make sure this isn’t checked