-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Description
It would be very nice to have the feature in the Mage_Catalog_Model_Product
file to override Varien_Object
's getData
method (or __call
for that matter), and dispatch an event if no data is found.
Case in point: I don't like to rewrite the Mage_Catalog_Model_Product
class if at all possible. However, if a customer wanted to get some custom totals from a product, I could either do it in the catalog_product_load_after
, or, for better performance, essentially add a new value to be retrieved in certain cases. This would be tied to an event like: catalog_product_getvalue_awesome
, and I could perform my calculation. It would then update the internal data array with the new information.
Metadata
Metadata
Assignees
Labels
No labels