在Magento安装新品牌扩展程序时出现错误?

时间:2014-04-02 05:24:59

标签: php magento-1.7

我是Magento的初学者。当我安装新的brands-logo-extension时,我收到错误。

扩展网址为:http://www.magentocommerce.com/magento-connect/manufacturer-brand-logo.html

,错误代码为:

a:5:{i:0;s:88:"Invalid method Bc_Manufacturer_Block_Manufacturer::displayOnLeftSidebarBlock(Array
(

)
)";i:1;s:2503:"#0 [internal function]: Varien_Object->__call('displayOnLeftSi...', Array)
#1 [internal function]: Bc_Manufacturer_Block_Manufacturer->displayOnLeftSidebarBlock()
#2 /home/jenadm/public_html/site.com/app/code/core/Mage/Core/Model/Layout.php(348): call_user_func_array(Array, Array)
#3 /home/jenadm/public_html/site.com/app/code/core/Mage/Core/Model/Layout.php(214): Mage_Core_Model_Layout->_generateAction(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#4 /home/jenadm/public_html/site.com/app/code/core/Mage/Core/Model/Layout.php(206): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#5 /home/jenadm/public_html/site.com/app/code/core/Mage/Core/Model/Layout.php(210): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 /home/jenadm/public_html/site.com/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#7 /home/jenadm/public_html/site.com/app/code/core/Mage/Cms/Helper/Page.php(113): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#8 /home/jenadm/public_html/site.com/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), 'furniture-jupit...')
#9 /home/jenadm/public_html/site.com/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), 'furniture-jupit...')
#10 /home/jenadm/public_html/site.com/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Cms_IndexController->indexAction()
#11 /home/jenadm/public_html/site.com/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('index')
#12 /home/jenadm/public_html/site.com/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#13 /home/jenadm/public_html/site.com/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#14 /home/jenadm/public_html/site.com/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#15 /home/jenadm/public_html/site.com/index.php(87): Mage::run('', 'store')
#16 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:7:"default";}

1 个答案:

答案 0 :(得分:0)

这些是概述块中提到的详细信息。在安装扩展程序之前,请检查概述块和评论块。

下面提到了在产品详情页面上显示品牌徽标所需的代码

echo $this->getLayout()->createBlock('manufacturer/manufacturer')->setProduct($_product)->setTemplate('manufacturer/product_manufacturer.phtml')->toHtml();

magento扩展程序还提供了一个块,可在一个页面中显示整个品牌徽标列表。您可以在任何希望显示列表的地方使用此代码。

代码:

echo $this->getLayout()->createBlock('manufacturer/manufacturer')->setTemplate('manufacturer/manufacturer.phtml')->toHtml();