Skip to content

Event for non-existant product attribute values #139

@JosephMaxwell

Description

@JosephMaxwell

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions