Skip to content

Instantly share code, notes, and snippets.

@kstasik

kstasik/php Secret

Created Jan 19, 2017
Embed
What would you like to do?
foreach ($this as $item) {
$product = $productCollection->getItemById($item->getProductId());
if ($product) {
// ....
} else {
$item->isDeleted(true); // simple product is removed
$recollectQuote = true;
}
$item->checkData();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment