I am working on a site for a unique client. The product they sell expires every night at midnight and is replaced by a new product. We've found that if a customer has an existing cart the product will carry over with the cart session after the product has expired from our site. We need to be able to check the cart for expired products and remove them.
I've been successful at looping through the FC.json.products array to find expired products based on their unique code but I haven't been able to find a way to delete or modify an item (set quantity to 0, perhaps?). Is there a way to do this that I'm just overlooking?
Thanks for any help.