I have overrode the price rule of Magento product by overriding the getPrice() method in "Mage_Catalog_Model_Product_Type_Price" class, simple products are working fine and show the updated price which I mentioned in getPrice() i.e
public function getPrice($product)
{
return 80;
}
But in the case of downloadable products it shows the original price, Any one here can tell me how can I override price in downloadable products.
Thanks
I would guess that this will be chased down to the getFinalPrice method of Mage_Downloadable_Model_Product_Price. Trying editing the file to return an obscure fixed amount and see if that's the value you get. If it is then you will need to overload this model too.
来源:https://stackoverflow.com/questions/8803042/magento-override-getprice