Merged in fix/SW-1997-tracking-ancillaries-adjust-total (pull request #1893)
fix(SW-1997): productPoints and productPrice should be the total * fix(SW-1997): productPoints and productPrice should be the total Approved-by: Matilda Landström
This commit is contained in:
@@ -195,7 +195,7 @@ export function trackAddAncillary(
|
|||||||
productId: ancillary?.id,
|
productId: ancillary?.id,
|
||||||
productName: ancillary?.title,
|
productName: ancillary?.title,
|
||||||
productUnits: quantityWithCard,
|
productUnits: quantityWithCard,
|
||||||
productPrice: ancillary?.price.total,
|
productPrice: (ancillary?.price.total ?? 0) * (quantityWithCard ?? 0),
|
||||||
currency: ancillary?.price.currency,
|
currency: ancillary?.price.currency,
|
||||||
productCategory: ancillary?.categoryName,
|
productCategory: ancillary?.categoryName,
|
||||||
})
|
})
|
||||||
@@ -207,7 +207,7 @@ export function trackAddAncillary(
|
|||||||
productId: ancillary?.loyaltyCode,
|
productId: ancillary?.loyaltyCode,
|
||||||
productName: ancillary?.title,
|
productName: ancillary?.title,
|
||||||
productUnits: quantityWithPoints,
|
productUnits: quantityWithPoints,
|
||||||
productPoints: ancillary?.points,
|
productPoints: (ancillary?.points ?? 0) * (quantityWithPoints ?? 0),
|
||||||
productCategory: ancillary?.categoryName,
|
productCategory: ancillary?.categoryName,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user