[英]CCAvenue Payment Module Giving Error in the Order Cart Page, Prestashop 1.6.1.7
CC Avenue模塊在“訂單購物車”頁面上顯示以下錯誤,盡管該模塊正在運行,並且沒有任何錯誤,但是如何消除此錯誤?
注意:未定義的索引:/home/desigssq/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)中的ccavenue_error_message:第38行上的eval()代碼
注意:嘗試在/home/desigssq/public_html/tools/smarty/sysplugins/smarty_internal_templatebase.php(157)中獲取非對象的屬性:第38行上的eval()代碼
此錯誤意味着變量$ccavenue_error_message
在模塊的.tpl
文件之一中,但未在調用它的.php
文件中定義。
在.tpl
文件中,向包含$ccavenue_error_message
的代碼部分添加一個條件。 例如,如果您有:
<div class="error">{$ccavenue_error_message.text}</div>
替換為:
{if isset($ccavenue_error_message)}<div class="error">{$ccavenue_error_message.text}</div>{/if}
隨時添加您的tpl文件的代碼,以便我可以給您確切的部分進行修改。
您還應該要求模塊開發人員更正此錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.