先确认问题层级

同一客户组在A站有折扣,B站不应有,但B站也显示A站价格。先核对价格作用域和原始高级价格行。

确认Catalog Price Scope是Website还是Global,并记录两个Store所属website_id。

查询website_id=0与具体Website的价格行;不需要的All Websites记录应通过正式接口删除。

修复方法

  • 自定义价格插件从当前Store获取Website,不能写死默认站;缓存键需包含客户组和Store维度。
  • 修复数据与代码后全量重建价格索引,客户退出重登并清FPC/GraphQL缓存。
bin/magento config:show catalog/price/scope
SELECT website_id,customer_group_id,qty,value FROM catalog_product_entity_tier_price WHERE entity_id=:entity_id;
bin/magento indexer:reindex catalog_product_price

怎样才算解决

同一SKU和客户组在两个Website分别显示各自价格,购物车、订单与API返回一致。