Skip to content

Commit 67acc7c

Browse files
committed
MAGETWO-91697: [Magento Cloud] "Tier Pricing" of Products changes to "Price" (without discount) after Updated Items and Quantities in the Order of B2B Store View.
- Fix for review mtft tests
1 parent 7354ec9 commit 67acc7c

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

app/code/Magento/Bundle/Model/ResourceModel/Selection/Collection.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,7 @@ protected function _construct()
6464
*/
6565
public function _afterLoad()
6666
{
67-
parent::_afterLoad();
68-
if ($this->getStoreId() && $this->_items) {
69-
foreach ($this->_items as $item) {
70-
$item->setStoreId($this->getStoreId());
71-
}
72-
}
73-
return $this;
67+
return parent::_afterLoad();
7468
}
7569

7670
/**

app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,16 +675,18 @@ protected function _afterLoad()
675675
/**
676676
* Add Store ID to products from collection.
677677
*
678-
* @return void
678+
* @return $this
679679
*/
680-
private function prepareStoreId()
680+
protected function prepareStoreId()
681681
{
682682
if ($this->getStoreId() !== null) {
683683
/** @var $item \Magento\Catalog\Model\Product */
684684
foreach ($this->_items as $item) {
685685
$item->setStoreId($this->getStoreId());
686686
}
687687
}
688+
689+
return $this;
688690
}
689691

690692
/**

app/code/Magento/Review/Model/ResourceModel/Review/Product/Collection.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,15 @@ protected function _afterLoad()
540540
return $this;
541541
}
542542

543+
/**
544+
* Not add store ids to items
545+
*
546+
* @return $this
547+
*/
548+
protected function prepareStoreId() {
549+
return $this;
550+
}
551+
543552
/**
544553
* Add store data
545554
*

0 commit comments

Comments
 (0)