You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/code/Magento/CatalogImportExport/Model/Import/Product.php
+27-2Lines changed: 27 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -132,6 +132,16 @@ class Product extends \Magento\ImportExport\Model\Import\Entity\AbstractEntity
132
132
*/
133
133
constCOL_NAME = 'name';
134
134
135
+
/**
136
+
* Column new_from_date.
137
+
*/
138
+
constCOL_NEW_FROM_DATE = 'new_from_date';
139
+
140
+
/**
141
+
* Column new_to_date.
142
+
*/
143
+
constCOL_NEW_TO_DATE = 'new_to_date';
144
+
135
145
/**
136
146
* Column product website.
137
147
*/
@@ -298,6 +308,7 @@ class Product extends \Magento\ImportExport\Model\Import\Entity\AbstractEntity
298
308
ValidatorInterface::ERROR_INVALID_WEIGHT => 'Product weight is invalid',
299
309
ValidatorInterface::ERROR_DUPLICATE_URL_KEY => 'Url key: \'%s\' was already generated for an item with the SKU: \'%s\'. You need to specify the unique URL key manually',
300
310
ValidatorInterface::ERROR_DUPLICATE_MULTISELECT_VALUES => "Value for multiselect attribute %s contains duplicated values",
311
+
ValidatorInterface::ERROR_NEW_TO_DATE => 'Make sure new_to_date is later than or the same as new_from_date',
301
312
];
302
313
//@codingStandardsIgnoreEnd
303
314
@@ -319,8 +330,8 @@ class Product extends \Magento\ImportExport\Model\Import\Entity\AbstractEntity
0 commit comments