There may be n number of reasons to reflecting this issue but one of them is Rewards module of Mirasvit.
To resolve this issue install FixRules module of MagestyApps.
and edit select-payment-method.js file in Rewards module, this file location is:
app/code/Mirasvit/Rewards/view/frontend/web/js/checkout/override/select-payment-method.js
and add the following code in this file after this line:
quote.paymentMethod(paymentMethod);
------------------------------------------------------
fullScreenLoader.startLoader();
jQuery.ajax('/magestyapps_fixrules/checkout/applyPaymentMethod', {
data: {payment_method: paymentMethod},
complete: function () {
getTotalsAction([]);
fullScreenLoader.stopLoader();
}
});
setTimeout(function(){
jQuery.ajax('/magestyapps_fixrules/checkout/applyPaymentMethod', {
data: {payment_method: paymentMethod},
complete: function () {
getTotalsAction([]);
fullScreenLoader.stopLoader();
}
});
}, 3000);
and add these lines in define section:
'Magento_Checkout/js/model/full-screen-loader',
'jquery',
'Magento_Checkout/js/action/get-totals',
To resolve this issue install FixRules module of MagestyApps.
and edit select-payment-method.js file in Rewards module, this file location is:
app/code/Mirasvit/Rewards/view/frontend/web/js/checkout/override/select-payment-method.js
and add the following code in this file after this line:
quote.paymentMethod(paymentMethod);
------------------------------------------------------
fullScreenLoader.startLoader();
jQuery.ajax('/magestyapps_fixrules/checkout/applyPaymentMethod', {
data: {payment_method: paymentMethod},
complete: function () {
getTotalsAction([]);
fullScreenLoader.stopLoader();
}
});
setTimeout(function(){
jQuery.ajax('/magestyapps_fixrules/checkout/applyPaymentMethod', {
data: {payment_method: paymentMethod},
complete: function () {
getTotalsAction([]);
fullScreenLoader.stopLoader();
}
});
}, 3000);
and add these lines in define section:
'Magento_Checkout/js/model/full-screen-loader',
'jquery',
'Magento_Checkout/js/action/get-totals',
Comments
Post a Comment