@haus-tech/product-import-export-plugin 3.0.20 → 3.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -314,7 +314,7 @@ let ImportParser = class ImportParser {
|
|
|
314
314
|
slug,
|
|
315
315
|
description: translatedFields.hasOwnProperty('description')
|
|
316
316
|
? parseString(translatedFields.description)
|
|
317
|
-
: r.description
|
|
317
|
+
: r.description,
|
|
318
318
|
customFields: parsedCustomFields,
|
|
319
319
|
};
|
|
320
320
|
});
|
|
@@ -372,12 +372,13 @@ let ImportParser = class ImportParser {
|
|
|
372
372
|
};
|
|
373
373
|
});
|
|
374
374
|
const jsonAssets = parseAssetsIfJson(r.variantAssets);
|
|
375
|
+
const variantIsEnabled = r.enabled == null || r.enabled === '' ? true : parseBoolean(r.enabled);
|
|
375
376
|
const parsedVariant = {
|
|
376
377
|
sku: parseString(r.sku),
|
|
377
378
|
price: r.price ? parseNumber(r.price) : undefined,
|
|
378
379
|
taxCategory: parseString(r.taxCategory),
|
|
379
380
|
stockOnHand: parseNumber(r.stockOnHand),
|
|
380
|
-
enabled:
|
|
381
|
+
enabled: variantIsEnabled,
|
|
381
382
|
trackInventory: r.trackInventory == null || r.trackInventory === ''
|
|
382
383
|
? generated_types_1.GlobalFlag.INHERIT
|
|
383
384
|
: parseBoolean(r.trackInventory)
|