Last active
May 20, 2021 05:36
-
-
Save genakim/b3b38e973390c1e1295aa1b594227ffe to your computer and use it in GitHub Desktop.
1-28654
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/addons/commerceml/schemas/cml/settings.php b/app/addons/commerceml/schemas/cml/settings.php | |
index 6eb8da9bcf..85c33d973d 100644 | |
--- a/app/addons/commerceml/schemas/cml/settings.php | |
+++ b/app/addons/commerceml/schemas/cml/settings.php | |
@@ -109,10 +109,6 @@ $schema = [ | |
'type' => 'bool', | |
'default' => true, | |
], | |
- 'catalog_importer.hide_out_of_stock_products' => [ | |
- 'type' => 'bool', | |
- 'default' => !YesNo::toBool(Registry::get('settings.General.show_out_of_stock_products')), | |
- ], | |
'catalog_importer.allow_update_product_name' => [ | |
'type' => 'bool', | |
'default' => true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/addons/commerceml/src/Importers/ProductImporter.php b/app/addons/commerceml/src/Importers/ProductImporter.php | |
index 72ebffb297..345cd76327 100644 | |
--- a/app/addons/commerceml/src/Importers/ProductImporter.php | |
+++ b/app/addons/commerceml/src/Importers/ProductImporter.php | |
@@ -522,14 +522,6 @@ class ProductImporter | |
$product_data['status'] = $import_storage->getSetting('catalog_importer.new_product_status', ObjectStatuses::ACTIVE); | |
} | |
- if ( | |
- isset($product_data['amount']) | |
- && empty($product_data['amount']) | |
- && $import_storage->getSetting('catalog_importer.hide_out_of_stock_products', false) === true | |
- ) { | |
- $product_data['status'] = ObjectStatuses::HIDDEN; | |
- } | |
- | |
return $product_data; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment