Try the Demo

Magento Forum

   
How do i get product id of selected option of a bundle product in invoice
 
fabstr
Jr. Member
 
Total Posts:  17
Joined:  2010-03-22
 

hi,

when the invoice pdf is generated i want to have access on the selected bunlde option but i only get the ID of the bundle product itself.
I also managed to get all options of the bundle product but there is no flag which was bought…

anybody has a clue how to get this information?

this is an empty array:

Mage::getModel('bundle/product_type')->getOrderOptions($product);

would be nice if someone has a solution.

 
Magento Community Magento Community
Magento Community
Magento Community
 
fabstr
Jr. Member
 
Total Posts:  17
Joined:  2010-03-22
 

ok i figured it out by myself.

here is the solution:

$items $this->getChilds($item);

foreach (
$items as $_item{
    
//full product informations
    
$product Mage::getModel('catalog/product')->load($_item->getProductId());
}

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