added feature to update ajax data using hook
This commit is contained in:
@@ -649,8 +649,8 @@ abstract class ControllerCore
|
||||
$method = $bt[1]['function'];
|
||||
}
|
||||
|
||||
Hook::exec('actionBeforeAjaxDie', array('controller' => $controller, 'method' => $method, 'value' => $value));
|
||||
Hook::exec('actionBeforeAjaxDie'.$controller.$method, array('value' => $value));
|
||||
Hook::exec('actionBeforeAjaxDie', array('controller' => $controller, 'method' => $method, 'value' => &$value));
|
||||
Hook::exec('actionBeforeAjaxDie'.$controller.$method, array('value' => &$value));
|
||||
|
||||
die($value);
|
||||
}
|
||||
|
||||
@@ -3501,7 +3501,7 @@ class AdminOrdersControllerCore extends AdminController
|
||||
}
|
||||
}
|
||||
}
|
||||
$this->content = json_encode($to_return);
|
||||
$this->ajaxDie(json_encode($to_return));
|
||||
}
|
||||
|
||||
// public function ajaxProcessSearchProducts()
|
||||
|
||||
Reference in New Issue
Block a user