Magento 2 – How to Reload Cart Page Total Section

cartmagento2

I am updating cart quantity with ajax and that is working is fine. But I cannot figure out how to reload the cart total section. I added this code but it is updating mini-cart section. Is there any section defined for that too? Need to update cart total section after ajax response.

    var sections = ['cart'];
    customerData.invalidate(sections);
    customerData.reload(sections, true);

Best Answer

@gh darvishani

It kind of hack i was using estimate shipping so simple js trick work for me.

 $("#s_method_flatrate_flatrate").trigger('click');