@pinelab/vendure-plugin-qls-fulfillment 1.5.1 → 1.6.0
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.
- package/CHANGELOG.md +4 -0
- package/dist/services/qls-product.service.js +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -282,6 +282,16 @@ let QlsProductService = class QlsProductService {
|
|
|
282
282
|
core_1.Logger.info(`Variant '${variant.sku}' excluded from sync to QLS.`, constants_1.loggerCtx);
|
|
283
283
|
return 'not-changed';
|
|
284
284
|
}
|
|
285
|
+
if (!variant.enabled || !variant.product?.enabled) {
|
|
286
|
+
const disabledEntity = !variant.enabled ? 'Variant' : 'Product';
|
|
287
|
+
if (existingProduct) {
|
|
288
|
+
core_1.Logger.warn(`${disabledEntity} '${variant.sku}' is disabled but exists in QLS (product ID ${existingProduct.id}). Skipping sync.`, constants_1.loggerCtx);
|
|
289
|
+
}
|
|
290
|
+
else {
|
|
291
|
+
core_1.Logger.info(`${disabledEntity} '${variant.sku}' is disabled, skipping sync to QLS.`, constants_1.loggerCtx);
|
|
292
|
+
}
|
|
293
|
+
return 'not-changed';
|
|
294
|
+
}
|
|
285
295
|
let qlsProduct = existingProduct;
|
|
286
296
|
let createdOrUpdated = 'not-changed';
|
|
287
297
|
const { additionalEANs, ...additionalVariantFields } = this.options.getAdditionalVariantFields(ctx, variant);
|