From 35c0ad103d426fddad69736b49740aab6d724bc3 Mon Sep 17 00:00:00 2001 From: mschipperheyn Date: Fri, 8 Nov 2024 09:37:46 -0300 Subject: [PATCH] fix(product-duplicator): Add source variant customFields to duplicated variant --- .../src/config/entity/entity-duplicators/product-duplicator.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/config/entity/entity-duplicators/product-duplicator.ts b/packages/core/src/config/entity/entity-duplicators/product-duplicator.ts index 05dd197b47..f01f404415 100644 --- a/packages/core/src/config/entity/entity-duplicators/product-duplicator.ts +++ b/packages/core/src/config/entity/entity-duplicators/product-duplicator.ts @@ -182,6 +182,7 @@ export const productDuplicator = new EntityDuplicator({ return { languageCode: translation.languageCode, name: translation.name, + customFields: translation.customFields, }; }), optionIds: options.map(option => option.id), @@ -190,6 +191,7 @@ export const productDuplicator = new EntityDuplicator({ stockLocationId: stockLevel.stockLocationId, stockOnHand: stockLevel.stockOnHand, })), + customFields: variant.customFields, }; }); const duplicatedProductVariants = await productVariantService.create(ctx, variantInput);