Skip to content

Commit 53ae92c

Browse files
massa-mankiatng
andauthored
Fix issue with incorrect product option pricing in admin console (#4779)
* bugfix(quote): Fix issue with incorrect product option pricing in admin console orders BUG 4778 * Update app/code/core/Mage/Catalog/Model/Resource/Product/Collection.php Co-authored-by: Ng Kiat Siong <[email protected]> * Update app/code/core/Mage/Catalog/Model/Resource/Product/Collection.php Co-authored-by: Ng Kiat Siong <[email protected]> --------- Co-authored-by: Ng Kiat Siong <[email protected]>
1 parent c16349a commit 53ae92c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/code/core/Mage/Catalog/Model/Resource/Product/Collection.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,12 +1463,13 @@ public function addOptionsToResult()
14631463
$productIds[] = $product->getId();
14641464
}
14651465
if (!empty($productIds)) {
1466+
$storeId = $this->getStoreId();
14661467
$options = Mage::getModel('catalog/product_option')
14671468
->getCollection()
1468-
->addTitleToResult(Mage::app()->getStore()->getId())
1469-
->addPriceToResult(Mage::app()->getStore()->getId())
1469+
->addTitleToResult($storeId)
1470+
->addPriceToResult($storeId)
14701471
->addProductToFilter($productIds)
1471-
->addValuesToResult();
1472+
->addValuesToResult($storeId);
14721473

14731474
foreach ($options as $option) {
14741475
if ($this->getItemById($option->getProductId())) {

0 commit comments

Comments
 (0)