Skip to content

Commit 1f93f59

Browse files
committed
MAGETWO-57007: [Backport] - [GitHub] Tier price of a simple/virtual product does not appear on a configurable product page #3759 - for 2.1
1 parent 549cb59 commit 1f93f59

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

app/code/Magento/ConfigurableProduct/Block/Product/View/Type/Configurable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ protected function getOptionPrices()
217217
foreach ($this->getAllowProducts() as $product) {
218218
$tierPrices = [];
219219
$priceInfo = $product->getPriceInfo();
220-
$tierPriceModel = $priceInfo->getPrice('tier_price');
220+
$tierPriceModel = $priceInfo->getPrice('tier_price');
221221
$tierPricesList = $tierPriceModel->getTierPriceList();
222222
foreach ($tierPricesList as $tierPrice) {
223223
$tierPrices[] = [

app/code/Magento/ConfigurableProduct/Pricing/Render/TierPriceBox.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
/**
99
* Responsible for displaying tier price box on configurable product page.
10-
*
11-
* @package Magento\ConfigurableProduct\Pricing\Render
1210
*/
1311
class TierPriceBox extends FinalPriceBox
1412
{

dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Block/Product/View/ConfigurableOptions.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ class ConfigurableOptions extends CustomOptions
4141
*/
4242
private $tierPricesSelector = '.prices-tier li';
4343

44+
/**
45+
* Product info main block.
46+
*
47+
* @var string
48+
*/
4449
private $mainBlockSelector = '.product-info-main';
4550

4651
/**
@@ -182,7 +187,7 @@ protected function selectOption($attributeTitle, $optionTitle)
182187
* @param array $attributesData
183188
* @return void
184189
*/
185-
protected function chooseOptions($variationOptions, $attributesData)
190+
protected function chooseOptions(array $variationOptions, array $attributesData)
186191
{
187192
//Select all options specified in variation
188193
foreach ($variationOptions as $variationSelection) {

0 commit comments

Comments
 (0)