Skip to content

Commit d0e05c3

Browse files
author
vnayda
committed
MAGETWO-59950: Configurable product option price is displayed incorrectly per website - for 2.0.x
- fix builds
1 parent 282cf5c commit d0e05c3

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ public function process(Select $select)
5151
$select->joinLeft(
5252
['status_global_attr' => $statusAttribute->getBackendTable()],
5353
"status_global_attr.entity_id = " . self::PRODUCT_RELATION_ALIAS . ".child_id"
54-
. ' AND status_global_attr.attribute_id = ' . (int)$statusAttribute->getAttributeId()
55-
. ' AND status_global_attr.store_id = ' . Store::DEFAULT_STORE_ID,
54+
. ' AND status_global_attr.attribute_id = ' . (int)$statusAttribute->getAttributeId()
55+
. ' AND status_global_attr.store_id = ' . Store::DEFAULT_STORE_ID,
5656
[]
5757
);
5858

5959
$select->joinLeft(
6060
['status_attr' => $statusAttribute->getBackendTable()],
6161
"status_attr.entity_id = " . self::PRODUCT_RELATION_ALIAS . ".child_id"
62-
. ' AND status_attr.attribute_id = ' . (int)$statusAttribute->getAttributeId()
63-
. ' AND status_attr.store_id = ' . $this->storeResolver->getCurrentStoreId(),
62+
. ' AND status_attr.attribute_id = ' . (int)$statusAttribute->getAttributeId()
63+
. ' AND status_attr.store_id = ' . $this->storeResolver->getCurrentStoreId(),
6464
[]
6565
);
6666

app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product/StatusBaseSelectProcessorTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ public function testProcess()
8080
->with(
8181
['status_global_attr' => $backendTable],
8282
"status_global_attr.entity_id = "
83-
. BaseSelectProcessorInterface::PRODUCT_RELATION_ALIAS . ".child_id"
84-
. " AND status_global_attr.attribute_id = {$attributeId}"
85-
. ' AND status_global_attr.store_id = ' . Store::DEFAULT_STORE_ID,
83+
. BaseSelectProcessorInterface::PRODUCT_RELATION_ALIAS . ".child_id"
84+
. " AND status_global_attr.attribute_id = {$attributeId}"
85+
. ' AND status_global_attr.store_id = ' . Store::DEFAULT_STORE_ID,
8686
[]
8787
)
8888
->willReturnSelf();

app/code/Magento/ConfigurableProduct/Model/ResourceModel/Product/Indexer/Price/Configurable.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ protected function _applyConfigurableOption()
211211
. ' AND status_attr.store_id = ' . $this->storeResolver->getCurrentStoreId(),
212212
[]
213213
)->where(
214-
'IFNULL(status_attr.value, status_global_attr.value) = ?', ProductStatus::STATUS_ENABLED
214+
'IFNULL(status_attr.value, status_global_attr.value) = ?',
215+
ProductStatus::STATUS_ENABLED
215216
)->group(
216217
['l.parent_id', 'i.customer_group_id', 'i.website_id', 'l.product_id']
217218
);

0 commit comments

Comments
 (0)