2017-05-02 3 views
0

私たちのサイトには、私たちがmagestoreチームから購入メガメニューの拡張機能をインストールMagentoの1ソース・モデル「megamenu/menutype」属性が見つかりません「menutype」

に基づいています。

ただし、カタログ/バックエンドの管理カテゴリの管理カテゴリをクリックすると、このエラーが発生します。

この問題を解決するにはどうすればよいですか?

**There has been an error processing your request** 

Source model "megamenu/menutype" not found for attribute "menutype" 

/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php(386): Mage::exception('Mage_Eav', 'Source model "m...') 
/app/code/core/Mage/Adminhtml/Block/Widget/Form.php(201): Mage_Eav_Model_Entity_Attribute_Abstract->getSource() 
app/code/core/Mage/Adminhtml/Block/Catalog/Category/Tab/Attributes.php(113): Mage_Adminhtml_Block_Widget_Form->_setFieldset(Array, Object(Varien_Data_Form_Element_Fieldset)) 
... 

screenshot of error page

答えて

1

この問題が正常に解決されました。 Menutypeは古いものと競合していました。 私たちのサイトでPeerforest_Megamenu拡張機能を使用しました。古いメガメニュー拡張機能は無効にしましたが、この属性はデータベースに残っていました。 名前がMagestoreメガメニュー拡張である新しい拡張機能をインストールしたときに、その問題が発生しました。

さらに。 Peerforest_Megamenuは、カテゴリテーブルにmegamenu/menutypeのような新しい属性を作成しました。これらの属性は、オプションを表示するためのモデルソースを必要としました。

Peerforest_Megamenuを無効にしたとき、モデルソースをもう見つけられませんでした。 私は、これらの属性用の新しいモデルソースファイルを作成しました。 これは新しいメニュータイプのコードブロックです。

<?php 
    class Magestore_Megamenu_Model_Menutype extends 
     Mage_Eav_Model_Entity_Attribute_Source_Abstract 
     { 
      protected $_options = array(); 

     public function getAllOptions() 
     {  
      $this->_options[] = array('value' => 'megamenu-horizontal','label' => 'Mega Menu'); 
      $this->_options[] = array('value' => 'megamenu-vertical','label' => 'Vertical'); 

      return $this->_options; 
     } 

    } 

希望は私の答えは他の人に役立つでしょう。 ありがとうございました。よろしくです。 よろしくお願いします。

関連する問題