@infrab4a/connect-angular 4.8.2-beta.1 → 4.9.1-beta-0
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.
|
@@ -1350,11 +1350,12 @@ class CartService {
|
|
|
1350
1350
|
const { id, name, EAN, slug, stock, price, weight, sku, type } = item;
|
|
1351
1351
|
const isGift = item.isGift || null;
|
|
1352
1352
|
const pricePaid = this.getProductPrice({
|
|
1353
|
-
product:
|
|
1353
|
+
product: LineItem.toInstance(product),
|
|
1354
1354
|
shop: checkout.shop || this.defaultShop,
|
|
1355
1355
|
isSubscriber: checkout.user?.isSubscriber,
|
|
1356
1356
|
});
|
|
1357
1357
|
RoundProductPricesHelper.roundProductPrices(item);
|
|
1358
|
+
RoundProductPricesHelper.roundProductPrices(product);
|
|
1358
1359
|
return {
|
|
1359
1360
|
checkout,
|
|
1360
1361
|
lineItem: LineItem.toInstance({
|
|
@@ -1364,8 +1365,8 @@ class CartService {
|
|
|
1364
1365
|
brand: product.brand,
|
|
1365
1366
|
slug: slug ?? product.slug,
|
|
1366
1367
|
sku: sku ?? product.sku,
|
|
1367
|
-
stock,
|
|
1368
|
-
price: this.roundPrice(price),
|
|
1368
|
+
stock: product.stock,
|
|
1369
|
+
price: this.roundPrice(product.price),
|
|
1369
1370
|
image,
|
|
1370
1371
|
weight: weight ?? product.weight,
|
|
1371
1372
|
quantity: (item.quantity || 0) + (quantity || 0),
|