From f7c53087dc0e57ac11dddce25be1470e3121e5ba Mon Sep 17 00:00:00 2001 From: ani hammond Date: Tue, 12 Dec 2023 17:35:19 -0600 Subject: [PATCH 1/2] DINT-1219: experience platform connector extension missing topLevelSku in product data --- packages/extensions/experience-platform-connector/src/utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/extensions/experience-platform-connector/src/utils.js b/packages/extensions/experience-platform-connector/src/utils.js index 852fa27503..10c8183031 100644 --- a/packages/extensions/experience-platform-connector/src/utils.js +++ b/packages/extensions/experience-platform-connector/src/utils.js @@ -82,6 +82,7 @@ export const getFormattedProducts = products => { product: { name: name, sku: sku, + topLevelSku: product.sku, productType: type, pricing: { regularPrice: prices.price.value, From a4d7d2e2575210d253f8a0f517e95117c66dc04d Mon Sep 17 00:00:00 2001 From: glo82145 Date: Wed, 17 Jan 2024 13:44:23 +0530 Subject: [PATCH 2/2] Dint:1219::experience platform connector extension missing topLevelSku in product data --- .../src/__tests__/__snapshots__/utils.spec.js.snap | 3 +++ .../__tests__/__snapshots__/shoppingMiniCartView.spec.js.snap | 3 +++ .../src/handlers/__tests__/shoppingCartPageView.spec.js | 3 +++ .../src/handlers/__tests__/startCheckout.spec.js | 3 +++ 4 files changed, 12 insertions(+) diff --git a/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap b/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap index 2ccae02183..cdd082d419 100644 --- a/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap +++ b/packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap @@ -47,6 +47,7 @@ Array [ }, "productType": "ConfigurableProduct", "sku": "VSK02", + "topLevelSku": "VSK02", }, "quantity": 1, }, @@ -82,6 +83,7 @@ Array [ }, "productType": "SimpleProduct", "sku": "VA17-SI-NA", + "topLevelSku": "VA17-SI-NA", }, "quantity": 2, }, @@ -130,6 +132,7 @@ Array [ }, "productType": "ConfigurableProduct", "sku": "VA04", + "topLevelSku": "VA04", }, "quantity": 3, }, diff --git a/packages/extensions/experience-platform-connector/src/handlers/__tests__/__snapshots__/shoppingMiniCartView.spec.js.snap b/packages/extensions/experience-platform-connector/src/handlers/__tests__/__snapshots__/shoppingMiniCartView.spec.js.snap index ce2e8c7c86..9e3a89582a 100644 --- a/packages/extensions/experience-platform-connector/src/handlers/__tests__/__snapshots__/shoppingMiniCartView.spec.js.snap +++ b/packages/extensions/experience-platform-connector/src/handlers/__tests__/__snapshots__/shoppingMiniCartView.spec.js.snap @@ -47,6 +47,7 @@ Object { }, "productType": "ConfigurableProduct", "sku": "VSK02", + "topLevelSku": "VSK02", }, "quantity": 1, }, @@ -78,6 +79,7 @@ Object { }, "productType": "SimpleProduct", "sku": "VA17-SI-NA", + "topLevelSku": "VA17-SI-NA", }, "quantity": 2, }, @@ -122,6 +124,7 @@ Object { }, "productType": "ConfigurableProduct", "sku": "VA04", + "topLevelSku": "VA04", }, "quantity": 3, }, diff --git a/packages/extensions/experience-platform-connector/src/handlers/__tests__/shoppingCartPageView.spec.js b/packages/extensions/experience-platform-connector/src/handlers/__tests__/shoppingCartPageView.spec.js index 18def7ed3a..b29cb87766 100644 --- a/packages/extensions/experience-platform-connector/src/handlers/__tests__/shoppingCartPageView.spec.js +++ b/packages/extensions/experience-platform-connector/src/handlers/__tests__/shoppingCartPageView.spec.js @@ -81,6 +81,7 @@ describe('handle()', () => { }, "productType": "ConfigurableProduct", "sku": "VSK02", + "topLevelSku": "VSK02", }, "quantity": 1, }, @@ -116,6 +117,7 @@ describe('handle()', () => { }, "productType": "SimpleProduct", "sku": "VA17-SI-NA", + "topLevelSku": "VA17-SI-NA", }, "quantity": 2, }, @@ -164,6 +166,7 @@ describe('handle()', () => { }, "productType": "ConfigurableProduct", "sku": "VA04", + "topLevelSku": "VA04", }, "quantity": 3, }, diff --git a/packages/extensions/experience-platform-connector/src/handlers/__tests__/startCheckout.spec.js b/packages/extensions/experience-platform-connector/src/handlers/__tests__/startCheckout.spec.js index b2703ee438..fc30bb4370 100644 --- a/packages/extensions/experience-platform-connector/src/handlers/__tests__/startCheckout.spec.js +++ b/packages/extensions/experience-platform-connector/src/handlers/__tests__/startCheckout.spec.js @@ -96,6 +96,7 @@ describe('handle()', () => { }, "productType": "ConfigurableProduct", "sku": "VP08", + "topLevelSku": "VP08", }, "quantity": 3, }, @@ -138,6 +139,7 @@ describe('handle()', () => { }, "productType": "ConfigurableProduct", "sku": "VA09", + "topLevelSku": "VA09", }, "quantity": 1, }, @@ -173,6 +175,7 @@ describe('handle()', () => { }, "productType": "SimpleProduct", "sku": "VA22-SI-NA", + "topLevelSku": "VA22-SI-NA", }, "quantity": 1, },