Skip to content

Commit

Permalink
[frontend-api] applied promo code is now taken into account in priceB…
Browse files Browse the repository at this point in the history
…yTransportQuery and priceByPaymentQuery (v15.0) (#3149)
  • Loading branch information
vitek-rostislav authored May 2, 2024
2 parents 002a24c + 5c148e5 commit 0e7d124
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Model/Resolver/Price/PriceQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ public function priceByPaymentQuery(
null,
$payment,
$customerUser,
null,
null,
$cart->getFirstAppliedPromoCode(),
);

return $this->paymentPriceCalculation->calculatePrice(
Expand Down Expand Up @@ -177,6 +180,9 @@ public function priceByTransportQuery(
$transport,
null,
$customerUser,
null,
null,
$cart->getFirstAppliedPromoCode(),
);

return $this->transportPriceCalculation->calculatePrice(
Expand Down

0 comments on commit 0e7d124

Please sign in to comment.