AI Reports

Magento 2 troubleshooting › Prices

Why does a product show a different price for one customer group?

Short answer: The price a customer sees comes from the price index for their website and customer group. Three things change it per group: customer group and tier prices, catalog price rules, and special prices. Check the index first, then each source.

Check it step by step

These queries only read data. Run them on a copy of your database if you can, or ask your developer to. If your tables have a prefix (set in app/etc/env.php), add it to each table name.

1. The indexed price per website and group

Works on Magento Open Source and Adobe Commerce:

SET @sku = 'ABC-123';  -- your SKU
SELECT ip.website_id, ip.customer_group_id, ip.price, ip.final_price, ip.min_price, ip.tier_price
FROM catalog_product_index_price ip
JOIN catalog_product_entity e ON e.entity_id = ip.entity_id
WHERE e.sku = @sku
ORDER BY ip.website_id, ip.customer_group_id;

final_price is what the group pays after rules and special prices. Group 0 is guests.

2. Group and tier prices on the product

Magento Open Source

SET @sku = 'ABC-123';  -- your SKU
SELECT IF(t.all_groups = 1, 'all groups', t.customer_group_id) AS customer_group,
       t.website_id, t.qty, t.value, t.percentage_value
FROM catalog_product_entity_tier_price t
JOIN catalog_product_entity e ON e.entity_id = t.entity_id
WHERE e.sku = @sku
ORDER BY t.qty;

Adobe Commerce

Product, category, rule and CMS values are stored per version and joined on row_id (why):

SET @sku = 'ABC-123';  -- your SKU
SELECT IF(t.all_groups = 1, 'all groups', t.customer_group_id) AS customer_group,
       t.website_id, t.qty, t.value, t.percentage_value
FROM catalog_product_entity_tier_price t
JOIN catalog_product_entity e ON e.row_id = t.row_id
WHERE e.sku = @sku
  AND e.created_in <= UNIX_TIMESTAMP() AND e.updated_in > UNIX_TIMESTAMP()
ORDER BY t.qty;

3. Catalog price rules applied today

Works on Magento Open Source and Adobe Commerce:

SET @sku = 'ABC-123';  -- your SKU
SELECT rp.website_id, rp.customer_group_id, rp.rule_date, rp.rule_price
FROM catalogrule_product_price rp
JOIN catalog_product_entity e ON e.entity_id = rp.product_id
WHERE e.sku = @sku
  AND rp.rule_date = CURRENT_DATE
ORDER BY rp.website_id, rp.customer_group_id;

Rows here mean a catalog price rule is lowering the price for that group today.

How to fix it

Related

Gaurav Harsh

Gaurav Harsh is a Magento developer who works on large Adobe Commerce stores and builds AI Reports, a Magento extension for asking your store's data questions in plain English. LinkedIn