Allows you to alter the checkout information or cart content before an order is
placed.
This event is fired only when an order is placed from the front-end website.
public function subscribeEvents()
{
Backend::$events->addEvent('shop:onOrderBeforeCreate', $this, 'process_order');
}
public function process_order($cart_name)
{
$price = Shop_Cart::total_price($cart_name);
if ($price < 100)
throw new Phpr_ApplicationException('We are sorry,
you cannot place orders with total order amount less than 100 USD');
}