Posted on

Unable to retrieve the qty updated product value in the cart using Observer

I am trying to get the cart item value once the qty updated in the Cart page for the specific Item. Have used the below code to get the value, But the event triggered still its showing the old value.

In events.xml I am using the event checkout_cart_save_after. Its firing but unable to get the updated data

UpdateCartObserver.php

$items = $observer->getCart()->getQuote()->getItems();

But still I am able to get only the Item Total value before qty update. I need the cart Item value after qty update. Please suggest

Leave a Reply

Your email address will not be published.