diff --git a/vendor/magento/module-catalog-staging/Plugin/Catalog/Ui/DataProvider/Product/Form/Modifier/AdvancedPricing.php b/vendor/magento/module-catalog-staging/Plugin/Catalog/Ui/DataProvider/Product/Form/Modifier/AdvancedPricing.php new file mode 100644 index 000000000000..6dbcfc60543f --- /dev/null +++ b/vendor/magento/module-catalog-staging/Plugin/Catalog/Ui/DataProvider/Product/Form/Modifier/AdvancedPricing.php @@ -0,0 +1,55 @@ +locator->getProduct()->getId(); + if ($productId) { + unset($result[$productId]['product']['special_from_date']); + unset($result[$productId]['product']['special_to_date']); + } + + return $result; + } +} diff --git a/vendor/magento/module-catalog-staging/etc/adminhtml/di.xml b/vendor/magento/module-catalog-staging/etc/adminhtml/di.xml index 68e7e3159516..4ceec6b7df0c 100644 --- a/vendor/magento/module-catalog-staging/etc/adminhtml/di.xml +++ b/vendor/magento/module-catalog-staging/etc/adminhtml/di.xml @@ -423,4 +423,8 @@ + + + +