Magento 对于某些产品,在默认范围内,只能选择根类别?
只是偶然发现了一个奇怪的Magento问题 后端的某些产品在“类别”选项卡中将根目录作为可选择的类别。。。但如果我选择一个店面作为scoope,所有类别都会出现 而其他一些产品在默认范围内可以选择整个树 已重置索引和缓存Magento 对于某些产品,在默认范围内,只能选择根类别?,magento,Magento,只是偶然发现了一个奇怪的Magento问题 后端的某些产品在“类别”选项卡中将根目录作为可选择的类别。。。但如果我选择一个店面作为scoope,所有类别都会出现 而其他一些产品在默认范围内可以选择整个树 已重置索引和缓存 有什么线索吗?请:您可以在此处找到解决方案: 格里茨 这里还有另一个解决方案。我对其进行了更改,以发现子级计数不一致的类别,而不首先对其进行修改: select entity_id, children_count, (select (SELECT count(*
有什么线索吗?请:您可以在此处找到解决方案:
格里茨 这里还有另一个解决方案。我对其进行了更改,以发现子级计数不一致的类别,而不首先对其进行修改:
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;
可能是以下内容的副本: