0

In my module I have my own discount and when I load the pag custom discount doesn't load. I try to call function estimateTotals and after it shipping amount is lost but show my discount.

That I do:

cartCache.clear('cartVersion');
totalsDefault.estimateTotals();

When page is loading I see this XHR. It has right shipping amount, but It doesn't consider my discount. enter image description here

After call estimateTotals from Grand Total minus discount. But shipping amount is lost. You can see it on this screenshot. enter image description here

Maybe someone have idea, what to do?

P.S: I have this discount on DB. And I can load it from DB.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.