Skip to content

Commit dd0a66a

Browse files
committed
MAGETWO-86544: MAGETWO-49985: product custom options export in reverse order fixed #95
- Merge Pull Request magento-engcom/import-export-improvements#95 from umarch-rltsquare/magento2:71-reverse-export-custom-options-fix - Merged commits: 1. e1b5040 2. 558f714
2 parents e150a7e + 558f714 commit dd0a66a

File tree

1 file changed

+6
-10
lines changed
  • app/code/Magento/CatalogImportExport/Model/Export

1 file changed

+6
-10
lines changed

app/code/Magento/CatalogImportExport/Model/Export/Product.php

+6-10
Original file line numberDiff line numberDiff line change
@@ -1315,16 +1315,12 @@ protected function getCustomOptionsData($productIds)
13151315
}
13161316
$options = $this->_optionColFactory->create();
13171317
/* @var \Magento\Catalog\Model\ResourceModel\Product\Option\Collection $options*/
1318-
$options->addOrder('sort_order');
1319-
$options->reset()->addOrder('sort_order')->addTitleToResult(
1320-
$storeId
1321-
)->addPriceToResult(
1322-
$storeId
1323-
)->addProductToFilter(
1324-
$productIds
1325-
)->addValuesToResult(
1326-
$storeId
1327-
);
1318+
$options->reset();
1319+
$options->addOrder('sort_order', 'ASC');
1320+
$options->addTitleToResult($storeId);
1321+
$options->addPriceToResult($storeId);
1322+
$options->addProductToFilter($productIds);
1323+
$options->addValuesToResult($storeId);
13281324

13291325
foreach ($options as $option) {
13301326
$row = [];

0 commit comments

Comments
 (0)