Wishlist show wrong price when having tierprices discount for customer group
johanroberthson opened this issue · comments
Steps to reproduce:
- add tierprice to a product to have different price for customergroups. Give 10% discount on a product.
- Login user that have a customergroup that give discount on product.
- Add product to wishlist
Actual result
Normal price will be the discount price and it will give additional discount. The discount is added twice.
Expected result
The price should be as in the productlist.
Versions
- ScandiPWA: 6.2.3
- Magento 2.4.6
Additional context
Add any other context about the problem here.
In ScandiPWA\WishlistGraphQl\Model\Resolver\WishlistItemsResolver
Price is fetch with this:
$productPriceIncTax = $product->getPriceInfo()->getPrice('final_price')->getMinimalPrice()->getValue();
$productPriceExcTax = $product->getPriceInfo()->getPrice('final_price')->getMinimalPrice()->getValue('tax');
I got correct values when fetch price with:
$productPriceIncTax = $product->getPrice();
$productPriceExcTax = $product->getPrice();
We have price exclusive tax on our site.