Ads

Tuesday, June 22, 2010

Override core block in magento

The simplest way to override a core block is to simply copy the file into the corresponding /app/code/local/ folder, and Magento automatically uses that version of the file without an XML/config changes needed.

So just copy /app/code/core/Mage/Checkout/Block/Cart/Item/Renderer.php into /app/code/local/Mage/Checkout/Block/Cart/Item/ and be sure to refresh the cache.

No comments:

Post a Comment