I want to set custom price to bundle product. especially apply to the main product, not its options product. I need to apply the discount on the bundle's total price.
Here is my code working for the normal product type. it's properly working.
/**
* @param type $item
*
* @return true
*/
protected function setItemPrice($item, $price) {
$item->getProduct()->setSpecialPrice($price);
$item->setCustomPrice($price);
$item->setOriginalCustomPrice($price);
$item->getProduct()->setIsSuperMode(true);
}