2014-04-02 50 views
-1

我是Magento的初學者。當我安裝一個新的品牌標誌擴展時,我收到一個錯誤。在Magento中,當我安裝新品牌擴展程序時,出現錯誤?

擴展網址爲: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";} 
+0

你跟蹤,我們需要安裝該擴展後作出的代碼更改的步驟?如果否,請參見分機頁面 –

+0

中的概述塊,可以向我發送鏈接,在此分機中寫入概述塊 –

+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();