I am using below link code but getting following error, the link code is use to update shipping method after coupon code is applied


I am getting following error

enter image description here

According, to me it is due to

//address.trigger_reload = new Date().getTime();
  • We had same issue with this on 2.2.6 version Cant say for sure why this is happening, but we ended up removing this line address.trigger_reload = new Date().getTime(); For us everything else worked fine without this line that supposed to trick magento into thinking that address has changed.
    – Macas
    Commented Oct 16, 2019 at 11:53
  • where in the magento vendor files is that reference to the address.trigger_reload = new Date().getTime(); ? Commented Aug 12, 2021 at 11:55

1 Answer 1


i resolve this error with this code:

                 ], function (quote, rateRegistry) {
                        var address = quote.shippingAddress();                          
                        rateRegistry.set(address.getKey(), null);
                        rateRegistry.set(address.getCacheKey(), null);
                        address.trigger_reload = new Date().getTime();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.