Skip to content

Commit 2dad3a2

Browse files
anihamani hammondglo82145
authored
DINT-1219: experience platform connector extension missing topLevelSku in product data (#4217)
* DINT-1219: experience platform connector extension missing topLevelSku in product data * Dint:1219::experience platform connector extension missing topLevelSku in product data --------- Co-authored-by: ani hammond <[email protected]> Co-authored-by: glo82145 <[email protected]> Co-authored-by: Aanchal Pawar <[email protected]>
1 parent b457789 commit 2dad3a2

File tree

5 files changed

+13
-0
lines changed

5 files changed

+13
-0
lines changed

packages/extensions/experience-platform-connector/src/__tests__/__snapshots__/utils.spec.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Array [
4747
},
4848
"productType": "ConfigurableProduct",
4949
"sku": "VSK02",
50+
"topLevelSku": "VSK02",
5051
},
5152
"quantity": 1,
5253
},
@@ -82,6 +83,7 @@ Array [
8283
},
8384
"productType": "SimpleProduct",
8485
"sku": "VA17-SI-NA",
86+
"topLevelSku": "VA17-SI-NA",
8587
},
8688
"quantity": 2,
8789
},
@@ -130,6 +132,7 @@ Array [
130132
},
131133
"productType": "ConfigurableProduct",
132134
"sku": "VA04",
135+
"topLevelSku": "VA04",
133136
},
134137
"quantity": 3,
135138
},

packages/extensions/experience-platform-connector/src/handlers/__tests__/__snapshots__/shoppingMiniCartView.spec.js.snap

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Object {
4747
},
4848
"productType": "ConfigurableProduct",
4949
"sku": "VSK02",
50+
"topLevelSku": "VSK02",
5051
},
5152
"quantity": 1,
5253
},
@@ -78,6 +79,7 @@ Object {
7879
},
7980
"productType": "SimpleProduct",
8081
"sku": "VA17-SI-NA",
82+
"topLevelSku": "VA17-SI-NA",
8183
},
8284
"quantity": 2,
8385
},
@@ -122,6 +124,7 @@ Object {
122124
},
123125
"productType": "ConfigurableProduct",
124126
"sku": "VA04",
127+
"topLevelSku": "VA04",
125128
},
126129
"quantity": 3,
127130
},

packages/extensions/experience-platform-connector/src/handlers/__tests__/shoppingCartPageView.spec.js

+3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ describe('handle()', () => {
8181
},
8282
"productType": "ConfigurableProduct",
8383
"sku": "VSK02",
84+
"topLevelSku": "VSK02",
8485
},
8586
"quantity": 1,
8687
},
@@ -116,6 +117,7 @@ describe('handle()', () => {
116117
},
117118
"productType": "SimpleProduct",
118119
"sku": "VA17-SI-NA",
120+
"topLevelSku": "VA17-SI-NA",
119121
},
120122
"quantity": 2,
121123
},
@@ -164,6 +166,7 @@ describe('handle()', () => {
164166
},
165167
"productType": "ConfigurableProduct",
166168
"sku": "VA04",
169+
"topLevelSku": "VA04",
167170
},
168171
"quantity": 3,
169172
},

packages/extensions/experience-platform-connector/src/handlers/__tests__/startCheckout.spec.js

+3
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ describe('handle()', () => {
9696
},
9797
"productType": "ConfigurableProduct",
9898
"sku": "VP08",
99+
"topLevelSku": "VP08",
99100
},
100101
"quantity": 3,
101102
},
@@ -138,6 +139,7 @@ describe('handle()', () => {
138139
},
139140
"productType": "ConfigurableProduct",
140141
"sku": "VA09",
142+
"topLevelSku": "VA09",
141143
},
142144
"quantity": 1,
143145
},
@@ -173,6 +175,7 @@ describe('handle()', () => {
173175
},
174176
"productType": "SimpleProduct",
175177
"sku": "VA22-SI-NA",
178+
"topLevelSku": "VA22-SI-NA",
176179
},
177180
"quantity": 1,
178181
},

packages/extensions/experience-platform-connector/src/utils.js

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ export const getFormattedProducts = products => {
8282
product: {
8383
name: name,
8484
sku: sku,
85+
topLevelSku: product.sku,
8586
productType: type,
8687
pricing: {
8788
regularPrice: prices.price.value,

0 commit comments

Comments
 (0)