浏览文章

文章信息

Magento2 无法保存(修改)产品属性|Can't update product attribute 14227

您需要为所有全局属性标识属性ID矫正数据,从类似catalog_product_entity_*的表中查找具有以上标识的属性ID且商店ID字段不为零的表中删除所有值。

DELETE FROM `catalog_product_entity_int` WHERE
   store_id <> 0 AND
   attribute_id IN (           SELECT attribute_id 
           FROM catalog_eav_attribute 
           WHERE is_global = 1
   )

对以下表执行相同的操作

catalog_product_entity_varchar

catalog_product_entity_text

catalog_product_entity_datetime

catalog_product_entity_decimal


完成后重建索引。

注意:

catalog_eav_attribute按照我编写的方式进行选择,也会为您提供全局类别属性的属性ID,但这并不重要,因为在产品表中您没有类别属性引用。

另外,在尝试此操作之前,请备份您的数据库,以防万一我错过了什么。

来源:https : //magento.stackexchange.com/a/42763/6501

感谢:https : //magento.stackexchange.com/users/146/marius


原创