// 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:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user