Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.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
检查显示问题时的Magento额外总计_Magento - Fatal编程技术网

检查显示问题时的Magento额外总计

检查显示问题时的Magento额外总计,magento,Magento,我在一页签出中增加了一个额外的总数。我添加了带有一些工具提示的自定义标题,效果很好。但是由于我升级了magento,它显示了html标记 假设您使用的是magento v1.7+ 查看您的总模板/app/design/frontend/base/default/template/checkout/total/default.phtml Magento正在使用$this->escapeHtml()转义html 要解决此问题,您可以删除$this->escapeHtml()或$this->escap

我在一页签出中增加了一个额外的总数。我添加了带有一些工具提示的自定义标题,效果很好。但是由于我升级了magento,它显示了html标记


假设您使用的是magento v1.7+

查看您的总模板/app/design/frontend/base/default/template/checkout/total/default.phtml

Magento正在使用$this->escapeHtml()转义html


要解决此问题,您可以删除
$this->escapeHtml()
$this->escapeHtml($this->getTotal()->getTitle(),数组('span','a'))

有关升级前后如何添加订单总额的一些信息。该数组将允许指定的html标记不被扫描?是,它不会逃脱那些标签
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?><strong><?php endif; ?>
   <?php echo $this->escapeHtml($this->getTotal()->getTitle()); ?>
<?php if ($this->getRenderingArea() == $this->getTotal()->getArea()): ?></strong><?php endif; ?>
public function escapeHtml($data, $allowedTags = null)
{
    return $this->helper('core')->escapeHtml($data, $allowedTags);
}