// Rename correctly all hooks

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12006 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-02 15:52:40 +00:00
parent 6f39d725b2
commit 07207496d7
36 changed files with 112 additions and 104 deletions
+8 -1
View File
@@ -353,7 +353,14 @@ abstract class PaymentModuleCore extends Module
}
// Hook validate order
Hook::exec('newOrder', array('cart' => $cart, 'order' => $order, 'customer' => $customer, 'currency' => $currency, 'orderStatus' => $order_status));
Hook::exec('actionValidateOrder', array(
'cart' => $cart,
'order' => $order,
'customer' => $customer,
'currency' => $currency,
'orderStatus' => $order_status
));
foreach ($cart->getProducts() AS $product)
if ($order_status->logable)
ProductSale::addProductSale((int)$product['id_product'], (int)$product['cart_quantity']);