I want to change AllowPurchase of a product to false once a user adds it to the cart, and set it back to true if they cancel the purchase or remove it from the cart.
What is the best way to do this? And where should I put the code?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.