I am using a bundle product say Samsung Mobile in my website for which i have added a bundle item called free gift. This free gift can be any simple product like a Sony memory card.
Now, i am facing a situation where in the navigation filter i am getting the filters for not only the bundled product but also for the simple product attached to it. For eg, Samsung Mobile is having an attribute called brand for which the value is Samsung but the memory card which is the bundle item attached to it is also having an attribute brand for which the value is Sony. I do not want Sony to be in the filters as that is referring to the free gift product attribute.
Upon digging up the code for layer navigation, i found out that While reindexing Magento saves the attributes of the children products to the parent product as well in the table "catalog_product_index_eav".
I need to edit the code where the system saves the bundle items attributes to the parent product but unable to find the code for it. Is there any observer that i can use to achieve this? I only need to customize the reindexing part for the process "Product Attributes".