Magento:list.phtml价格

Magento:list.phtml价格,magento,listview,product,Magento,Listview,Product,我创建了一个Magento网站,但是价格从list.phtml中消失了 这是我的台词:www.smztw.com/散热器.html 为什么?有人能告诉我怎么取回吗 非常感谢请确保模板中有以下行: echo$this->getPriceHtml($\u产品,true) 如果有此选项,则应调用此文件的方法: /app/code/core/Mage/Catalog/Block/Product/Abstract.php 这就是方法(Magento 1.8): 问题应该在这里,您可以调试它并找到问题所在

我创建了一个Magento网站,但是价格从list.phtml中消失了 这是我的台词:www.smztw.com/散热器.html 为什么?有人能告诉我怎么取回吗


非常感谢

请确保模板中有以下行:

echo$this->getPriceHtml($\u产品,true)

如果有此选项,则应调用此文件的方法:

/app/code/core/Mage/Catalog/Block/Product/Abstract.php

这就是方法(Magento 1.8):

问题应该在这里,您可以调试它并找到问题所在

我希望有帮助

public function getPriceHtml($product, $displayMinimalPrice = false, $idSuffix = '')
    {
        $type_id = $product->getTypeId();
        if (Mage::helper('catalog')->canApplyMsrp($product)) {
            $realPriceHtml = $this->_preparePriceRenderer($type_id)
                ->setProduct($product)
                ->setDisplayMinimalPrice($displayMinimalPrice)
                ->setIdSuffix($idSuffix)
                ->toHtml();
            $product->setAddToCartUrl($this->getAddToCartUrl($product));
            $product->setRealPriceHtml($realPriceHtml);
            $type_id = $this->_mapRenderer;
        }

        return $this->_preparePriceRenderer($type_id)
            ->setProduct($product)
            ->setDisplayMinimalPrice($displayMinimalPrice)
            ->setIdSuffix($idSuffix)
            ->toHtml();
    }