Skip to content

Commit 66d7fb2

Browse files
author
Valeriy Nayda
committed
MAGETWO-52015: Bundle Product price range not include custom options
1 parent cce83d7 commit 66d7fb2

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

app/code/Magento/Catalog/Block/Product/ListProduct.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ protected function _getProductCollection()
122122
}
123123
}
124124
$this->_productCollection = $layer->getProductCollection();
125+
$this->_productCollection->addOptionsToResult();
125126

126127
$this->prepareSortableFieldsByCategory($layer->getCurrentCategory());
127128

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,6 @@ class Product extends \Magento\Catalog\Model\AbstractModel implements
142142
*/
143143
protected $optionInstance;
144144

145-
/**
146-
* @var bool
147-
*/
148-
protected $optionsInitialized = false;
149-
150145
/**
151146
* @var array
152147
*/
@@ -1901,6 +1896,7 @@ public function addOption(Product\Option $option)
19011896
{
19021897
$options = (array)$this->getData('options');
19031898
$options[] = $option;
1899+
$option->setProduct($this);
19041900
$this->setData('options', $options);
19051901
return $this;
19061902
}

0 commit comments

Comments
 (0)