I do product drops weekly and items sell out quickly. When an item in someone’s cart sells out, they have to manually remove them which takes time and results in them missing out on other items.
Is there a way for Shopify to automatically remove the sold out items from someone’s cart?
Hi @Momsstitchetti that would be an advanced customization using the ajax api /change endpoint and javascript to reload/update the cart/page.
There’s also the UI messaging for this to avoid a jarring experience ,such as informing the customer their cart is invalid with a message/countdown and or a button for them to remove invalid items; generally you’d do this in the cart-drawer or the cart-page, all other pages could be okay to just do it silently after the page loads.
https://shopify.dev/docs/api/ajax/reference/cart#post-locale-cart-change-js
If you need this customization explored or consulted you can contact me directly for services.
Please provide context, examples: store url, theme name, post url(s) , or any further detail.
Contact Info in signature.
I’m wanting this to happen automatically to streamline the checkout process. Are you saying this can only be done with coding?