Read More
Read More
Menu Close

    How to delete items from cart in magento2

    Magento-Code-Snippet-5-1

    To delete items from cart you need to follow these functions:

    Searching for an experienced
    Magento 2 Company ?
    Read More
    . . .
    Discuss on Helpdesk

    Leave a Comment

    Your email address will not be published. Required fields are marked*


    5 comments

  • Yundong Cai
    hi, Webkul,

    I remove the item as your guide, however, the mini-cart is not updated. Can you please kindly advise what I can do? Thank you so much.

    • Demo3 Last
      Same issue. Subtotal and grandtotal is not updating in quote table by doing above code.
      • omelandr
        You must update section

        require([
        ‘Magento_Customer/js/customer-data’
        ], function (customerData) {
        var sections = [‘cart’];
        customerData.invalidate(sections);
        customerData.reload(sections, true);
        });

        • Ewall Solutions
          where we put this code?
          • omelandr
            you can try add it in footer.
  • Back to Top