Could someone please help me with this...
First off, Im looking for a way to only allow one product at a time in the cart. The best way I can think of is clearing the cart just before adding a product, but I cannot figure out how to do it? I have tried in the 'Items Management' section of ShoppingCart.php, but could'n't get it to work.
Second, I want to set AllowPurchase on the product that is added to the cart to false, and then back to true if the order is cancelled.
I have been digging around the files and trying some stuff, but cant manage to get either happening.