I can get bundle item id, using that id I wants bundle product Id.
I have used below code, but it is not working:
$grouped_product_model = Mage::getModel('catalog/product_type_bundle');
$groupedParentIds = $grouped_product_model->getParentIdsByChild(#productid); //#productid will be bundle item id.
Thanks
Best Answer
Try it like this: