added feature to update ajax data using hook

This commit is contained in:
Shreesh Arora
2024-11-15 16:25:33 +05:30
parent cd18dd90af
commit 5f64bc6a96
2 changed files with 3 additions and 3 deletions

View File

@@ -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);
}

View File

@@ -3501,7 +3501,7 @@ class AdminOrdersControllerCore extends AdminController
}
}
}
$this->content = json_encode($to_return);
$this->ajaxDie(json_encode($to_return));
}
// public function ajaxProcessSearchProducts()