config.xml :-
<events>
<checkout_cart_add_product_complete>
<observers>
<checkout_cart_product_add_after_handler>
<type>model</type>
<class>observertest/observer</class>
<method>addToCartAdditionalItem</method>
</checkout_cart_product_add_after_handler>
</observers>
</checkout_cart_add_product_complete>
<checkout_cart_update_item_complete>
<observers>
<checkout_cart_update_item_handler>
<type>model</type>
<class>observertest/observer</class>
<method>updateCartItem</method>
</checkout_cart_update_item_handler>
</observers>
</checkout_cart_update_item_complete>
</events>
In the events tag you can see 2 event in which first one(checkout_cart_add_product_complete) is working fine but second one is not.
Where i'm doing wrong, please let me know.
Note:-
I also tried to use checkout_cart_update_items_after instead of checkout_cart_update_item_complete it's working fine but by using this event not getting updated cart total price (just getting old one). e.g- suppose before updating my cart if in my cart a product having 4 qty & it's subtotal is $80($20*4) & if i went to update 3 more qty(20*7=$140) then this time by using event checkout_cart_update_items_after i'm getting $80 on my event action(updateCartItem) but i want $140.
Thanks!!!