Skip to content

Commit 7a526e9

Browse files
committed
#26121: special price & tier price are coming in base currency
Revert Pricing Price TierPrice
1 parent 9bd5def commit 7a526e9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

app/code/Magento/Catalog/Pricing/Price/TierPrice.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ class TierPrice extends AbstractPrice implements TierPriceInterface, BasePricePr
7070
* @param Session $customerSession
7171
* @param GroupManagementInterface $groupManagement
7272
* @param CustomerGroupRetrieverInterface|null $customerGroupRetriever
73-
* @param int|null $customerGroup
7473
*/
7574
public function __construct(
7675
Product $saleableItem,
@@ -79,18 +78,15 @@ public function __construct(
7978
\Magento\Framework\Pricing\PriceCurrencyInterface $priceCurrency,
8079
Session $customerSession,
8180
GroupManagementInterface $groupManagement,
82-
CustomerGroupRetrieverInterface $customerGroupRetriever = null,
83-
$customerGroup = null
81+
CustomerGroupRetrieverInterface $customerGroupRetriever = null
8482
) {
8583
$quantity = (float)$quantity ? $quantity : 1;
8684
parent::__construct($saleableItem, $quantity, $calculator, $priceCurrency);
8785
$this->customerSession = $customerSession;
8886
$this->groupManagement = $groupManagement;
8987
$this->customerGroupRetriever = $customerGroupRetriever
9088
?? \Magento\Framework\App\ObjectManager::getInstance()->get(CustomerGroupRetrieverInterface::class);
91-
if ($customerGroup) {
92-
$this->customerGroup = $customerGroup;
93-
} elseif ($saleableItem->hasCustomerGroupId()) {
89+
if ($saleableItem->hasCustomerGroupId()) {
9490
$this->customerGroup = (int) $saleableItem->getCustomerGroupId();
9591
} else {
9692
$this->customerGroup = (int) $this->customerGroupRetriever->getCustomerGroupId();

0 commit comments

Comments
 (0)