I want to set a custom row total. I am using 'checkout_cart_product_add_after' event. And want to update Row total. I going to add an extra amount in an item row total. like,
$item->setRowTotal($item->getRowTotal + 100); $item->save();
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
checkout_cart_product_add_after is triggered after the quote has already been saved.
The event has one parameter,
items with an array of quote items that have been generated from this product. For simple products it is always one item. For complex products (bundle, configurable), the first array item is always the parent (i.e. the main product). So you get your item like this:
$item = $observer->getItems();