【发布时间】:2019-11-22 10:50:30
【问题描述】:
我正在单一商店模式
运行最新的 Magento 2 CE (2.3.3)当我在 Magento 2 管理员中编辑类别的属性时,它会保存到错误的商店 ID。
数据库显示属性,在本例中为内容,存储 ID 0 而不是存储 ID 1。
SELECT * FROM catalog_category_entity_text WHERE entity_id = 27 AND attribute_id = 47;
显示如下数据:
+----------+--------------+----------+-----------+--------------+
| value_id | attribute_id | store_id | entity_id | value |
+----------+--------------+----------+-----------+--------------+
| 444 | 47 | 0 | 27 | <p>Test3</p> |
+----------+--------------+----------+-----------+--------------+
虽然它应该显示:
+----------+--------------+----------+-----------+--------------+
| value_id | attribute_id | store_id | entity_id | value |
+----------+--------------+----------+-----------+--------------+
| 444 | 47 | 0 | 27 | <p>Test3</p> |
| 445 | 47 | 1 | 27 | <p>Test3</p> |
+----------+--------------+----------+-----------+--------------+
我读过this question。我确认我已经完成了接受答案中的所有步骤。
different answer 对同一个问题讨论了手动编辑数据库以包含存储 1 的行。我确认这是可行的,但它当然不是一个选项。我们不能要求我们的客户手动编辑数据库。
有什么想法吗?
【问题讨论】: