简体   繁体   English

CCAvenue付款模块在订购购物车页面上出错,Prestashop 1.6.1.7

[英]CCAvenue Payment Module Giving Error in the Order Cart Page, Prestashop 1.6.1.7

The CC Avenue module is giving the following error on the Order cart page, though the module as such is working and there is nothing wrong in it, but how do I remove this error? CC Avenue模块在“订单购物车”页面上显示以下错误,尽管该模块正在运行,并且没有任何错误,但是如何消除此错误?

Notice: Undefined index: ccavenue_error_message in /home/desigssq/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38 注意:未定义的索引:/home/desigssq/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)中的ccavenue_error_message:第38行上的eval()代码

Notice: Trying to get property of non-object in /home/desigssq/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d code on line 38 注意:尝试在/home/desigssq/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)中获取非对象的属性:第38行上的eval()代码 在此处输入图片说明

This error means that the variable $ccavenue_error_message is in one of the .tpl files of the module, but is not defined in the .php file that calls it. 此错误意味着变量$ccavenue_error_message在模块的.tpl文件之一中,但未在调用它的.php文件中定义。

In the .tpl file, add a condition to the part of the code containing $ccavenue_error_message . .tpl文件中,向包含$ccavenue_error_message的代码部分添加一个条件。 For example if you have: 例如,如果您有:

<div class="error">{$ccavenue_error_message.text}</div>

replace it by: 替换为:

{if isset($ccavenue_error_message)}<div class="error">{$ccavenue_error_message.text}</div>{/if}

Feel free to add the code of your tpl file so I can give you exactly the part to modify. 随时添加您的tpl文件的代码,以便我可以给您确切的部分进行修改。

You should also ask the developer of the module to correct this bug. 您还应该要求模块开发人员更正此错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM