scandipwa / scandipwa

Next-generation front-end for Magento 2

Home Page:https://scandipwa.com/?utm_source=github&utm_medium=readme&utm_campaign=general

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wishlist show wrong price when having tierprices discount for customer group

johanroberthson opened this issue · comments

Steps to reproduce:

  1. add tierprice to a product to have different price for customergroups. Give 10% discount on a product.
  2. Login user that have a customergroup that give discount on product.
  3. 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.