1

奇妙なMagentoの問題に遭遇しただけです。

バックエンドの一部の製品には、[カテゴリ]タブで選択可能なカテゴリとして「ルート」しかありません...しかし、スクープとしてストアフロントを選択すると、すべてのカテゴリが表示されます。

他のいくつかの製品では、デフォルトのスコープでツリー全体を選択できます。

インデックスとキャッシュがリセットされました。

手がかりはありますか?お願いします :)

4

2 に答える 2

0

ここで解決策を見つけることができます: http://zaclee.net/magento/errors-magento/magento-product-edit-only-shows-default-category

グリーツ!

于 2013-08-16T11:29:09.953 に答える
0

そこのコメントに別の解決策があります。最初に変更せずに、一貫性のない子の数を含むカテゴリを見つけるように変更しました。

select
  entity_id,
  children_count,
   (select (SELECT count(*) from catalog_category_entity u1 
            where u1.path REGEXP CONCAT('^',u2.path,'/[[:digit:]]+$')) 
    from catalog_category_entity u2 
    where u2.path = w1.path) 
  as actual_children_count
from catalog_category_entity w1
having children_count != actual_children_count

問題のあるレコードを調べた後、Tim Schmidt による更新を実行します。

CREATE TABLE catalog_category_entity_test AS SELECT * FROM catalog_category_entity;

UPDATE catalog_category_entity w1 
SET children_count = (
  select (SELECT count(*) from catalog_category_entity_test u1 
          where u1.path REGEXP CONCAT('^',u2.path,'/[[:digit:]]+$')) 
  from catalog_category_entity_test u2 where u2.path = w1.path)

DROP TABLE catalog_category_entity_test;
于 2015-07-28T08:42:06.537 に答える