we need to get group product id into the cart page.
We get all group product items ids into the cart page but not get group product id.
Please share if anyone have idea.
thanks.
If you have child item id of grouped product, You can get parent Id by below way,
$childId = 33; $parentId = Mage::getModel('catalog/product_type_grouped')->getParentIdsByChild($childId); echo "<pre>";print_r($parentId);
We used the below code:
$values = unserialize($_item->getOptionByCode('info_buyRequest')->getValue()); $parentId = $values['super_product_config']['product_id']; $group_product=Mage::getModel('catalog/product')->load($parentId);
But, into the admin side
Order View => Items Ordered = table have not worked above code.
How can we find into the admin side Order View => Items Ordered table?