0

How to update a cart after adding a product to the cart using an observer ?

15
  • what you want to update. Please specify reason of update and which field you want to update?
    – Amit Bera
    Commented Feb 19, 2019 at 8:52
  • here is the reason magento.stackexchange.com/questions/262302/…
    – Robinio
    Commented Feb 19, 2019 at 8:55
  • where you have using this code $data = [ 'qty' => $products_count, 'product' => $products_id, 'bundle_option' => $selectionProds, 'bundle_option_qty' => $selectionQty ]; $this->_cart->addProduct($_product,$data); $this->_cart->save();
    – Amit Bera
    Commented Feb 19, 2019 at 8:57
  • in my custom module
    – Robinio
    Commented Feb 19, 2019 at 8:58
  • and it works when the main page is loaded
    – Robinio
    Commented Feb 19, 2019 at 8:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.