I’m trying to write a simple module that will change the title of all items in a shopping cart to “hello world”, and do so without hacking “core” files.
I think I have a good understanding about what to do, and how it should work. I’m able to get my module to appear as Enabled in the admin, but my “hello world” never shows up. I’ve disabled the Magento cache as well.
Here’s what I’ve done:
1. created etc/modules/MyCompany_HelloWorld.xml
2. created app/local/MyCompany_HelloWorld/etc/config.xml
3. Created app/local/MyCompany_HelloWorld/Block/Checkout/Cart.php
class MyCompany_HelloWorld_Checkout_Block_Cart extends Mage_Checkout_Block_Cart
public function getItemName($item)
return 'Hello World';
4. Verified in Admin that my new module is enabled
At this point, I’d expect items in my shopping car to all have a title of “Hello World”. However, it doesn’t work. I suspect it’s something in my .xml config files. Am I missing anything obvious? What troubleshooting steps should I be taking from here?