cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get updated cart item value using Observer after qty updated

Unable to get updated cart item value using Observer after qty updated

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 gets triggered still its showing the old value.

events.xml

<event name="checkout_cart_save_after">
<observer name="update_gift_value"
instance="MtyVendor\myModule\Observer\UpdateCartObserver"/>
</event>

UpdateCartObserver.php

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

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