I have searched the forums and google, but couldn’t come to a straight answer. The problem is as follows: on the homepage I have a block with “New” products. Now, I want to display a CUSTOM attribute ‘author’ (it’s a book store) which I get in the template-file (new.phtml) via the following code:
Also I want to display the STANDARD attribute “short_description”. Now, the fact of the matter is that using the following code..
.. does not do anything. Actually, both attributes won’t do anything for me, unless I specifically go to the New.php in /app/code/core/Mage/Catalog/Block/Product.New.php and add ‘short_description’ as well as ‘author’ to the list of attributes in:
->addAttributeToSelect(array('name', 'price', 'small_image', 'short_description', 'author'), 'inner')
I find it weird that ‘short_description’ isn’t default selected, but okay. The ‘author’ is custom, so I understand that, but now for my question:
Each time I upgrade Magento I seem to lose most of the custom stuff like I just described. As I am solely managing 4 magento-stores (each a different type of store) this can get a bit frustrating, having to implement my custom things every upgrade. Not to mention it costs me as lot of time looking up my customization notes and finding the stuff I need to replace.
How is this handled best? Is it something I have to live with or can I build something custom that does the same but isn’t part of the Core so that I can keep it running every upgrade?