1

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);
0

@gh darvishani

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

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

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.