Hi Magento gurus, I have a question. I am getting started with module development and would like to override a core model’s method. I followed the steps given here:
I followed them to a T, but it’s not working, meaning that a product’s price is not being changed in the store.
To make sure Price.php was even being loaded, I put a die(’test’); statement at the top of the file, but alas, it wasn’t being loaded. In the main index.php file I uncommented these two lines:
But no errors are showing. The price difference doesn’t take effect, and the Price.php file isn’t even loaded.
To sum up, I have this at app/code/local/MyCompany/ConstPrice/etc/config.xml:
<?xml version="1.0" encoding="utf-8"?>
And this at app/code/local/MyCompany/ConstPrice/Model/Price.php:
class MyCompany_ConstPrice_Model_Price extends Mage_Catalog_Model_Product_Type_Price
public function getPrice($product)
And this at app/etc/modules/MyCompany_All.xml:
Your help is appreciated. Any ideas? How can I further troubleshoot my xml module files to see if they’re working, to see if they’re loading correctly?