File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
app/code/Magento/AdvancedPricingImportExport/Model/Import Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,14 @@ class AdvancedPricing extends \Magento\ImportExport\Model\Import\Entity\Abstract
50
50
51
51
const VALIDATOR_WEBSITE = 'validator_website ' ;
52
52
53
+ /**
54
+ * @deprecated
55
+ * @see VALIDATOR_TIER_PRICE
56
+ */
53
57
const VALIDATOR_TEAR_PRICE = 'validator_tier_price ' ;
54
58
59
+ const VALIDATOR_TIER_PRICE = 'validator_tier_price ' ;
60
+
55
61
/**
56
62
* Validation failure message template definitions.
57
63
*
@@ -221,7 +227,7 @@ public function __construct(
221
227
$ this ->_catalogProductEntity = $ this ->_resourceFactory ->create ()->getTable ('catalog_product_entity ' );
222
228
$ this ->_oldSkus = $ this ->retrieveOldSkus ();
223
229
$ this ->_validators [self ::VALIDATOR_WEBSITE ] = $ websiteValidator ;
224
- $ this ->_validators [self ::VALIDATOR_TEAR_PRICE ] = $ tierPriceValidator ;
230
+ $ this ->_validators [self ::VALIDATOR_TIER_PRICE ] = $ tierPriceValidator ;
225
231
$ this ->errorAggregator = $ errorAggregator ;
226
232
227
233
foreach (array_merge ($ this ->errorMessageTemplates , $ this ->_messageTemplates ) as $ errorCode => $ message ) {
@@ -536,7 +542,7 @@ protected function getWebSiteId($websiteCode)
536
542
*/
537
543
protected function getCustomerGroupId ($ customerGroup )
538
544
{
539
- $ customerGroups = $ this ->_getValidator (self ::VALIDATOR_TEAR_PRICE )->getCustomerGroups ();
545
+ $ customerGroups = $ this ->_getValidator (self ::VALIDATOR_TIER_PRICE )->getCustomerGroups ();
540
546
return $ customerGroup == self ::VALUE_ALL_GROUPS ? 0 : $ customerGroups [$ customerGroup ];
541
547
}
542
548
You can’t perform that action at this time.
0 commit comments