I am facing problem when i am removing configure product from cart using $cart->removeItem($itemId)->save();
method then its change all products price to zero. check this screen : https://prnt.sc/oagwbm
My code for removing item from cart :
foreach ($items as $item) {
if($item->getProduct()->getId() == 208202){
$this->_cart->removeItem($item->getItemId())->save();
}
}
I am removing only one product from cart
Is there any other way to remove item from cart in observer ?