We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents abe0a39 + a197f23 commit 9dc4453Copy full SHA for 9dc4453
app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php
@@ -2078,12 +2078,9 @@ public function addTierPriceData()
2078
2079
/** @var $attribute \Magento\Catalog\Model\ResourceModel\Eav\Attribute */
2080
$attribute = $this->getAttribute('tier_price');
2081
- if ($attribute->isScopeGlobal()) {
2082
- $websiteId = 0;
2083
- } else {
2084
- if ($this->getStoreId()) {
2085
- $websiteId = $this->_storeManager->getStore($this->getStoreId())->getWebsiteId();
2086
- }
+ $websiteId = 0;
+ if ($attribute->isScopeWebsite() && $this->getStoreId() != 0) {
+ $websiteId = $this->_storeManager->getStore($this->getStoreId())->getWebsiteId();
2087
}
2088
2089
$connection = $this->getConnection();
0 commit comments