Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Configured product remove from cart
 
notzippy
Member
 
Avatar
Total Posts:  63
Joined:  2008-07-07
 

Hi

I have the following issue since my 1.1.3 upgrade. Add a configured product to the cart, then remove it and add something else. The item that should have been removed is still being added to the cost of the cart even though the cart does not contain that item anymore. Looking at the quote object the “chilid” product of the configured product is not being removed from the cart…

Anyone else seeing this ??
This is a show stopper if I cannot get this resolved.

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
notzippy
Member
 
Avatar
Total Posts:  63
Joined:  2008-07-07
 

Looked at the sales / quote model, when an item is removed it does not remove any child products - I am guessing this is an oversight ?

Fixed by adding
if ($item->getHasChildren()) {
foreach ($this->getAllItems() as $childitem) {
if ($childitem->getParentItemId()==$itemId) {
$childitem->isDeleted(true);
}
}
}

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top