Skip to content

Commit 207ac11

Browse files
author
Yaroslav Onischenko
committed
MAGETWO-48647: [GITHUB] Max Characters setting of a product Custom Option (Field type) is not exported #3197
1 parent 35fddeb commit 207ac11

File tree

1 file changed

+6
-3
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import/Product

1 file changed

+6
-3
lines changed

app/code/Magento/CatalogImportExport/Model/Import/Product/Option.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ class Option extends \Magento\ImportExport\Model\Import\Entity\AbstractEntity
4747

4848
const COLUMN_ROW_SKU = '_custom_option_row_sku';
4949

50-
const COLUMN_MAX_CHARACTERS = '_custom_option_max_characters';
51-
5250
const COLUMN_ROW_SORT = '_custom_option_row_sort';
5351

5452
/**#@-*/
@@ -58,6 +56,11 @@ class Option extends \Magento\ImportExport\Model\Import\Entity\AbstractEntity
5856
*/
5957
const XML_PATH_PAGE_SIZE = 'import/format_v1/page_size';
6058

59+
/**
60+
* @var string
61+
*/
62+
private $columnMaxCharacters = '_custom_option_max_characters';
63+
6164
/**
6265
* All stores code-ID pairs
6366
*
@@ -1108,7 +1111,7 @@ private function processOptionRow($name, $optionRow)
11081111
$result[self::COLUMN_PREFIX . 'price'] = $result[self::COLUMN_ROW_PRICE];
11091112

11101113
if (isset($optionRow['max_characters'])) {
1111-
$result[self::COLUMN_MAX_CHARACTERS] = $optionRow['max_characters'];
1114+
$result[$this->columnMaxCharacters] = $optionRow['max_characters'];
11121115
}
11131116

11141117
return $result;

0 commit comments

Comments
 (0)