Skip to content

Commit 664351d

Browse files
AC-2044::Cart Price Rule with shipping method set as condition is not working Magento - fixed static test
1 parent 79d594b commit 664351d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/code/Magento/Checkout/view/frontend/web/js/model/cart/shipping-save-processor/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ define([
4848
resourceUrlManager.getUrlForSetShippingInformation(quote),
4949
JSON.stringify(payload)
5050
).done(
51-
function (response) {
51+
function () {
5252
fullScreenLoader.stopLoader();
5353
}
5454
).fail(

app/code/Magento/Checkout/view/frontend/web/js/view/cart/shipping-rates.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ define([
4747
*/
4848
initObservable: function () {
4949
var self = this;
50-
shippingSaveProcessor.registerProcessor('cart', cartShippingProcessor);
50+
5151
this._super();
5252

53-
this.selectedShippingMethod.subscribe(function (value) {
53+
shippingSaveProcessor.registerProcessor('cart', cartShippingProcessor);
54+
this.selectedShippingMethod.subscribe(function () {
5455
if (quote.shippingMethod()) {
5556
shippingSaveProcessor.saveShippingInformation('cart');
5657
}

0 commit comments

Comments
 (0)