【发布时间】:2016-11-07 16:44:34
【问题描述】:
我正在尝试使用shopping-cart-product-line.tpl 中的以下代码在一页结帐的购物车摘要中显示产品功能,但出现错误。
{foreach from=$product.features item=feature name=features}
{if $feature.id_feature == 9}
{$features.value|escape:'htmlall':'UTF-8'}
{/if}
{/foreach}
我需要对CartController.php 做任何事情吗?
错误 注意:未定义的索引:值在 path/tools/smarty/sysplugins/smarty_internal_templatebase.php(157) : eval()'d 代码在第 89 行
【问题讨论】:
-
你能添加错误信息吗?
标签: php html mysql prestashop