Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Authentication Prestashop即时结账_Authentication_Prestashop_Credentialscache - Fatal编程技术网

Authentication Prestashop即时结账

Authentication Prestashop即时结账,authentication,prestashop,credentialscache,Authentication,Prestashop,Credentialscache,我已经在PrestaShop启用了客人结账功能。客人下单时必须填写资料。如果同一个访问者(来自同一个带有cookies的浏览器)下一个订单,则会阻止他填写数据(包括电子邮件)。PrestaShop怎么能做到这一点?它只能是来自同一浏览器的不同访问者。是否有比手动删除会话cookie更好的方法注销来宾?您认为这可能是bug吗?部分解决方案是编辑文件控制器/front/OrderConfirmationController.php 在函数displayOrderConfirmation()的末尾,在

我已经在PrestaShop启用了客人结账功能。客人下单时必须填写资料。如果同一个访问者(来自同一个带有cookies的浏览器)下一个订单,则会阻止他填写数据(包括电子邮件)。PrestaShop怎么能做到这一点?它只能是来自同一浏览器的不同访问者。是否有比手动删除会话cookie更好的方法注销来宾?您认为这可能是bug吗?

部分解决方案是编辑文件控制器/front/OrderConfirmationController.php

在函数displayOrderConfirmation()的末尾,在“return false”之前添加以下行:


$this->context->customer->logout()

我已经解决了它,但它花费了大量的核心编辑。。。