Skip to content

Commit 245585a

Browse files
committed
fix(shiptheory): add width and height to the product information
1 parent 1d51ce0 commit 245585a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/functions/shiptheory/DataStore.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,13 @@ class DataStore extends DataStoreBase {
124124
// grab data from each shipment and create a list of shipments to be sent to Shiptheory
125125
// for now it is simply assuming all items in embedded are part of the shipment
126126
const products = items.map(p => ({
127+
height: p.height,
127128
name: p.name,
128129
qty: p.quantity,
129130
sku: p.code,
130131
value: p.price,
131-
weight: p.weight
132+
weight: p.weight,
133+
width: p.width
132134
}));
133135
const weight = items.reduce( (accum, curr) => curr.weight + accum);
134136
return {

0 commit comments

Comments
 (0)