We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c16349a commit 53ae92cCopy full SHA for 53ae92c
app/code/core/Mage/Catalog/Model/Resource/Product/Collection.php
@@ -1463,12 +1463,13 @@ public function addOptionsToResult()
1463
$productIds[] = $product->getId();
1464
}
1465
if (!empty($productIds)) {
1466
+ $storeId = $this->getStoreId();
1467
$options = Mage::getModel('catalog/product_option')
1468
->getCollection()
- ->addTitleToResult(Mage::app()->getStore()->getId())
1469
- ->addPriceToResult(Mage::app()->getStore()->getId())
+ ->addTitleToResult($storeId)
1470
+ ->addPriceToResult($storeId)
1471
->addProductToFilter($productIds)
- ->addValuesToResult();
1472
+ ->addValuesToResult($storeId);
1473
1474
foreach ($options as $option) {
1475
if ($this->getItemById($option->getProductId())) {
0 commit comments