0

I am creating new order from backend and i have to refresh order total section after my custom ajax request.

does any one know how i can achive this ?

enter image description here

2
  • 1
    You need to call the quote collect total method there same done on the shipping method selection or payment method selection. – Dhiren Vasoya Jun 18 at 10:00
  • Thank you @Dhiren Vasoya , i got the solution with reference of magento shipping method selection – Sanjay Shiyal Jun 18 at 11:01
0

With the help of below code i got my problem solution

 jQuery.ajax({
            url: url.build("/admin/router/controller/customfee"), 
            data: {option: 1},
            type: "POST", 
            dataType: 'json'
            }).done(
                 function (response) { 
                   window.order.loadArea(['custom_fee', 'totals'], true);
                 }   
               ).fail(
                    function (response) { 
                    }
                );

Your Answer

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

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