M2网站产品有部分store视图下未使用默认 use Default Value

作者:admi... 点击数: 0 收藏到会员中心
最后编辑时间: 2022-08-30 17:54

123.jpg

多站点的时候,有部分视图未使用默认值,如在后台全手工修改工作量较大,目前仅需要执行以下SQL,删除所有额外视图的内容

DELETE FROM `catalog_product_entity_text` where store_id = 1;
DELETE FROM `catalog_product_entity_datetime` where store_id = 1;
DELETE FROM `catalog_product_entity_decimal` where store_id = 1;
DELETE FROM `catalog_product_entity_int` where store_id = 1;
DELETE FROM `catalog_product_entity_varchar` where store_id = 1;


付费内容限时免费中...

如果遇到有多个store的,要全删除的话请运行

DELETE FROM `catalog_product_entity_text` where store_id > 0;
DELETE FROM `catalog_product_entity_datetime` where store_id >0;
DELETE FROM `catalog_product_entity_decimal` where store_id >0;
DELETE FROM `catalog_product_entity_int` where store_id >0;
DELETE FROM `catalog_product_entity_varchar` where store_id >0;


热点标签:
内容说明:
如您需要转载本文请保留以下信息是对作者发文的支持与尊重:

M2网站产品有部分store视图下未使用默认 use Default Value 来源于 https://www.magentola.com/news-read-318.html
上一篇:M2数据库使用导出数据库时出现“you need (at least one of) the SUPER privilege(s) for this operation”
下一篇:M2如何快速让产品的数量同实际数量一致?
相关内容
产品推荐