Error showing special prices when changing store view - Magento 2.3.1
-
03-03-2021 - |
Question
I have 2 store views, one for normal customers (product prices including tax) and one for wholesale customers (product prices excluding tax). See images for reference.
Normal Store View (product prices including tax):
Wholesale Store View (product prices excluding tax):
And additionally, I have special prices for the customer group Wholesale in some products like this:
When I log in with a wholesale account for example in the store view EN (prices including tax), I see the correct special prices.
But when in the same session I change the store view, I lose the special prices and I only see the normal customer prices:
If I log in with a wholesale account but now in the store view Wholesale (prices excluding tax), I see the correct special prices too:
But when in the same session I change the store view, I lose the special prices and I only see the normal customer prices again:
I don't understand why, this happens to me only if I change the store view and it is very strange right? Is this an error for Magento? Any idea why this happens and how to solve it?
UPDATE 1
The entity_id of this product is 2726, the customer_group_id is "2" (Wholesale group) and this is the result of Query:
SELECT * FROM catalog_product_index_price WHERE entity_id = 2726;
UPDATE 2
This is the configuration that I have for my taxes:
Solution
I had your same problem and I have solved it in the following way:
Stores > Configuration > Customers > Customer Configuration
Check that you have this option in NO. I used to have it in YES so that Magento automatically assigned the Wholesale group to my customers and I had the same problem as you. Disabling this option you can fix your problem.
OTHER TIPS
Hey Please check in catalog_product_index_price table with your entity_id. Like SELECT *
FROM catalog_product_index_price
WHERE entity_id =432 LIMIT 0 , 30 and see what price is there.