If you are using the Inventory Management function, this script may be of interest to you.
This script monitors the availability of options (if options are associated with products by SKU), and if the associated product is out of stock, the CPB product added to the cart will be automatically removed when next time you go to cart or update cart.
To use this function, follow these steps:
1. Go to the "Online Store".
2. Click "Actions".
3. Click "Edit code"
1. Expand the "Layout" section.
2. Find the theme.liquid file.
3. Add this line to <head>..</head> section
<script src="https://storage.googleapis.com/cdn.thecustomproductbuilder.com/scripts/scripts.js" defer></script>