simpo-component-library 3.6.277 → 3.6.279
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.
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +3 -2
- package/fesm2022/simpo-component-library.mjs +2 -1
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/package.json +1 -1
- package/simpo-component-library-3.6.279.tgz +0 -0
- package/simpo-component-library-3.6.277.tgz +0 -0
@@ -8038,6 +8038,7 @@ class CartComponent extends BaseSection {
|
|
8038
8038
|
this.cartInfo.billdetails.couponCode = localStorage.getItem("couponCode");
|
8039
8039
|
const restResponse = this.restService.addItemToDB(this.cartInfo).toPromise();
|
8040
8040
|
restResponse.then((response) => {
|
8041
|
+
console.log(response);
|
8041
8042
|
this.cartInfo.billdetails.totalGrossValue = response?.data?.billdetails?.totalGrossValue ?? 0;
|
8042
8043
|
this.cartInfo.billdetails.totalTax = response?.data?.billdetails?.totalTax ?? 0;
|
8043
8044
|
this.cartInfo.billdetails.deliveryCharges = response?.data?.billdetails?.deliveryCharges ?? 0;
|
@@ -8053,7 +8054,7 @@ class CartComponent extends BaseSection {
|
|
8053
8054
|
this.cartInfo.orderedItems = this.USER_CART_ITEMS;
|
8054
8055
|
this.cartInfo.billdetails.discountAmount = response?.data?.billdetails?.discountAmount ?? 0;
|
8055
8056
|
this.cartInfo.billdetails.totalTaxAfterDiscount = response?.data?.billdetails?.totalTaxAfterDiscount ?? 0;
|
8056
|
-
this.cartInfo.totalAmount =
|
8057
|
+
this.cartInfo.totalAmount = response?.data?.billdetails?.finalPrice ?? 0;
|
8057
8058
|
this.storageService.addAllProductsToCart(this.cartInfo.orderedItems);
|
8058
8059
|
this.responseData = this.cartInfo;
|
8059
8060
|
});
|