我已经将ajax值从prestashop 1.7.6中的js传递给了前端控制器。因此,我首先在模块类文件的hookFooter函数中设置链接 // Create a link with the path$parameters = array("action" => "send_changed_price");
$ajax_link = $link->getModuleLink('mymodule','<
ajax函数调用的php脚本( phppage.php )只是回显hello world。当ajax函数的recall函数中留下警告(‘a’)行时,代码就会按预期工作,最后一行弹出消息"hello world“。{ function finish(context,response) { }}
constructor: A
fun