Good day - 3 years later and I can not for the life of me get an ajax call to work.
PrestaShop: 1.7.6.5
Module: CustomModule
Ajax URL:
https://domain/module/CustomModule/CustomModuleOrderManagerController?action=productStockIssue&id_product=###&id_order=###&ajax=true
class CustomModuleOrderManagerController extends ModuleAdminController { public function processProductStockIssue() { $this->ajaxDie( Tools::jsonEncode( ['error' => 'This is a test 2.'] ) ); } }
Am I missing something? It just responds with 404 not found with everything that I try.