@infrab4a/connect-angular 4.13.5-beta.1 → 4.13.6-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1438,7 +1438,6 @@ class CartService {
|
|
|
1438
1438
|
discount: 0,
|
|
1439
1439
|
categories: product.categories || product.category?.id ? [product.category?.id, ...product.categories] : [],
|
|
1440
1440
|
category: product.category,
|
|
1441
|
-
categoryReference: product.category?.reference,
|
|
1442
1441
|
isGift: isGift ?? null,
|
|
1443
1442
|
costPrice: isGift ? 0 : product.costPrice ?? 0,
|
|
1444
1443
|
type,
|
|
@@ -1611,11 +1610,12 @@ class CartService {
|
|
|
1611
1610
|
}
|
|
1612
1611
|
giftToLineItems(items) {
|
|
1613
1612
|
return items.map((item) => {
|
|
1614
|
-
const { brand, categories, id, name, price, sku, slug, stock, weight, EAN } = item;
|
|
1613
|
+
const { brand, categories, category, id, name, price, sku, slug, stock, weight, EAN } = item;
|
|
1615
1614
|
const image = item?.miniatures?.length ? item.miniatures[0] : item.images[0];
|
|
1616
1615
|
return LineItem.toInstance({
|
|
1617
1616
|
brand,
|
|
1618
1617
|
categories,
|
|
1618
|
+
category,
|
|
1619
1619
|
id: id.toString(),
|
|
1620
1620
|
name,
|
|
1621
1621
|
price,
|