public function haltReset(ISC_QUOTE $quote) { $items = $quote->getItems(); foreach($items as $item) { if($item->getParentId() || $item->getProductId() != $this->prodids) { continue; } foreach($items as $subItem) { if($subItem->getParentId() == $item->getId()) { $quote->removeItem($subItem->getId()); } } } }