wickes-css2 2.94.0-order-summary.11 → 2.94.0-order-summary.13
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/build/js/basket.min.js +1 -1
- package/build/js/checkout.min.js +1 -1
- package/build/js/merged-checkout.min.js +1 -1
- package/build/js/page/basket/summary-mobile.js +1 -0
- package/build/js/page/basket-v2.js +1 -1
- package/package.json +1 -1
- package/src/js/page/basket/summary-mobile.js +1 -0
- package/src/js/page/basket-v2.js +1 -1
|
@@ -4,6 +4,7 @@ const summaryMobileEl = {
|
|
|
4
4
|
};
|
|
5
5
|
|
|
6
6
|
export function addClassToSummaryAside(data) {
|
|
7
|
+
console.log(data)
|
|
7
8
|
const payPalEnabled = data?.paymentInfos?.payPalEnabled;
|
|
8
9
|
const clickAndCollectOnly = data.clickAndCollectOnly;
|
|
9
10
|
const isPayPalAllowed = payPalEnabled && clickAndCollectOnly;
|
|
@@ -379,7 +379,6 @@ Wick.BasketPage = {
|
|
|
379
379
|
addClassToSummaryAside(Wick.BasketData.updateCart);
|
|
380
380
|
const initialTotalPrice = Wick.BasketData.updateCart.totalPrice.value;
|
|
381
381
|
updateClearpayVisibility(initialTotalPrice);
|
|
382
|
-
addClassToSummaryAside(Wick.BasketData.updateCart);
|
|
383
382
|
} else {
|
|
384
383
|
updateBasketDataQuantity();
|
|
385
384
|
updateOrderSummary(
|
|
@@ -399,6 +398,7 @@ Wick.BasketPage = {
|
|
|
399
398
|
updateClearpayPlacements(Wick.BasketData.updateCart.totalPrice.value);
|
|
400
399
|
updateClearpayVisibility(Wick.BasketData.updateCart.totalPrice.value);
|
|
401
400
|
Wick.BasketPage.addPotentialPromo(Wick.BasketData.updateCart);
|
|
401
|
+
addClassToSummaryAside(Wick.BasketData.updateCart);
|
|
402
402
|
Wick.BasketPage.getCartEntries(Wick.BasketData.updateCart);
|
|
403
403
|
Wick.BasketPage.checkProductArrays(Wick.BasketData.updateCart) || Wick.BasketPage.removeOrderItem(repaintData);
|
|
404
404
|
updateBasketSession();
|
package/package.json
CHANGED
|
@@ -4,6 +4,7 @@ const summaryMobileEl = {
|
|
|
4
4
|
};
|
|
5
5
|
|
|
6
6
|
export function addClassToSummaryAside(data) {
|
|
7
|
+
console.log(data)
|
|
7
8
|
const payPalEnabled = data?.paymentInfos?.payPalEnabled;
|
|
8
9
|
const clickAndCollectOnly = data.clickAndCollectOnly;
|
|
9
10
|
const isPayPalAllowed = payPalEnabled && clickAndCollectOnly;
|
package/src/js/page/basket-v2.js
CHANGED
|
@@ -379,7 +379,6 @@ Wick.BasketPage = {
|
|
|
379
379
|
addClassToSummaryAside(Wick.BasketData.updateCart);
|
|
380
380
|
const initialTotalPrice = Wick.BasketData.updateCart.totalPrice.value;
|
|
381
381
|
updateClearpayVisibility(initialTotalPrice);
|
|
382
|
-
addClassToSummaryAside(Wick.BasketData.updateCart);
|
|
383
382
|
} else {
|
|
384
383
|
updateBasketDataQuantity();
|
|
385
384
|
updateOrderSummary(
|
|
@@ -399,6 +398,7 @@ Wick.BasketPage = {
|
|
|
399
398
|
updateClearpayPlacements(Wick.BasketData.updateCart.totalPrice.value);
|
|
400
399
|
updateClearpayVisibility(Wick.BasketData.updateCart.totalPrice.value);
|
|
401
400
|
Wick.BasketPage.addPotentialPromo(Wick.BasketData.updateCart);
|
|
401
|
+
addClassToSummaryAside(Wick.BasketData.updateCart);
|
|
402
402
|
Wick.BasketPage.getCartEntries(Wick.BasketData.updateCart);
|
|
403
403
|
Wick.BasketPage.checkProductArrays(Wick.BasketData.updateCart) || Wick.BasketPage.removeOrderItem(repaintData);
|
|
404
404
|
updateBasketSession();
|