As discussed in this thread, I am working on a project that needs to have dynamic pricing of a product. The user can choose the amount they want to pay. I have it working great accept that I have no way for the user to change the amount they are paying after the item has been added to the cart.
The code and methods I am using to achieve this are listed in the thread.
After very much research and experimentation, the only idea that I can come up with is to remove the first item from the cart and then add the item back with the updated price. But I can't find a way to remove an item from the cart.
Is there anyway for me to programmatically remove an item from the cart?


