Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 4c76f9a

Browse files
committed
save the custom option price when it is 0
1 parent 9c4e95d commit 4c76f9a

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/CatalogImportExport/Model/Import/Product

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1794,7 +1794,8 @@ protected function _getSpecificTypeData(array $rowData, $optionTypeId, $defaultS
17941794
];
17951795

17961796
$priceData = false;
1797-
if (!empty($rowData[self::COLUMN_ROW_PRICE])) {
1797+
$customOptionRowPrice = $rowData[self::COLUMN_ROW_PRICE];
1798+
if (!empty($customOptionRowPrice) || $customOptionRowPrice === '0') {
17981799
$priceData = [
17991800
'price' => (double)rtrim($rowData[self::COLUMN_ROW_PRICE], '%'),
18001801
'price_type' => 'fixed',

0 commit comments

Comments
 (0)