I want to restrict Magento to have one single product per order. If the user is trying to add more than one product to the cart it should be prohibited. I'm not talking about restricting one particular product. Generally whatever the product is, there should be one product at a time in the cart until place the order.
How can I achieve this?