Moved logic from shopping cart to order.