0

ナビゲーション メニューについてサポートが必要です。管理パネルに新しいカテゴリを追加したときに、ナビゲーション メニューにカテゴリが表示されません。ナビゲーション メニューにカテゴリがまったく表示されません。

これが、問題の原因となったデータベースに対して行ったことです。テーブルを切り捨てcatalog_category_entityます。テーブルを切り捨てcatalog_category_entity_datetimeます。テーブルを切り捨てcatalog_category_entity_decimalます。テーブルを切り捨てcatalog_category_entity_intます。テーブルを切り捨てcatalog_category_entity_textます。テーブルを切り捨てcatalog_category_entity_varcharます。テーブルを切り捨てcatalog_category_productます。テーブルを切り捨てcatalog_category_product_indexます。

catalog_category_entity( entity_id, entity_type_id, attribute_set_id, parent_id, created_at, updated_at, path, position, ) の値levelに挿入children_count(1,3,0,0,'0000-00-00 00:00:00','2009-02-20 00:25:34',' 1',1,0,1),(2,3,3,0,'2009-02-20 00:25:34','2009-02-20 00:25:34','1/2' ,1,1,0); catalog_category_entity_int( value_id, entity_type_id, attribute_id, store_id, entity_id, value) 値 (1,3,32,0,2,1),(2,3,32,1,2,1) に挿入します。insert into catalog_category_entity_varchar( value_id, entity_type_id, attribute_id, store_id, entity_id, value) 値 (1,3,31,0,1,'ルート カタログ'),(2,3,33,0,1,'ルート カタログ'),(3,3, 31,0,2,'デフォルト カテゴリ'),(4,3,39,0,2,'製品'),(5,3,33,0,2,'デフォルト カテゴリ');

上記のクエリを実行した後、ナビ メニューのすべてのカテゴリがなくなり、管理パネルにカテゴリを追加してもカテゴリが表示されません。

top.phtml ファイルを確認しましたが、コード $this->getStoreCategories() は何も返しません。

どうすればこれを修正できますか?

ありがとう

4

1 に答える 1

0

この問題は、Magento サンプル データ sql ファイルを実行してデータを挿入し直すことで解決されました。

于 2013-08-02T23:41:26.080 に答える