When a customer places an order, how to set a minimum order amount?
ie) The total order quantity is not less than 500 US dollars.
I know how to get the total amount of an order. But I do not know where to place this code and where to check
sOrderId = Mage::getSingleton('checkout/session')->getLastOrderId(); $oOrder = Mage::getModel('sales/order')->load($sOrderId); if($oOrder >=$500) { ..... }
If a customer only bought less than $ 500, they will not be allowed to go to the basket.
source share