Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9047087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:49:00+00:00 2026-06-16T11:49:00+00:00

app/code/core/Customer/etc/config.xml registers observers for before and after Magento saves the address: <events> <customer_address_save_before> <observers>

  • 0

app/code/core/Customer/etc/config.xml registers observers for before and after Magento saves the address:

<events>
    <customer_address_save_before>
        <observers>
            <customer_address_before_save_viv_observer>
                <class>customer/observer</class>
                <method>beforeAddressSave</method>
            </customer_address_before_save_viv_observer>
        </observers>
    </customer_address_save_before>
    <customer_address_save_after>
        <observers>
            <customer_addres_after_save_viv_observer>
                <class>customer/observer</class>
                <method>afterAddressSave</method>
            </customer_addres_after_save_viv_observer>
        </observers>
    </customer_address_save_after>
</events>

…but I can’t find any evidence that Magento actually dispatches these events anywhere:

$ grep -RF 'dispatchEvent(' . | grep -F customer_addres
./app/code/core/Mage/Customer/Model/Address/Abstract.php:        Mage::dispatchEvent('customer_address_format', array('type' => $formatType, 'address' => $this));

As far as I understand Mage::dispatchEvent(…) is the only way Magento fires events off. Do these events actually happen? (I’m hoping so, because I could really use some events that fire at address save time.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T11:49:01+00:00Added an answer on June 16, 2026 at 11:49 am

    Yes it dispatch but some events are hard to find where are dispatched because magento do this dynamically. This happens for almost all core models on save. Magento dispatch those events like this:

    Mage::dispatchEvent($this->_eventPrefix.'_save_before', $this->_getEventData());
    Mage::dispatchEvent($this->_eventPrefix.'_save_after', $this->_getEventData());
    

    So grep will fail to find where this events are dispatched.

    For example model “Mage_Customer_Model_Address” extends class “Mage_Customer_Model_Address_Abstract” which has set $_eventPrefix = 'customer_address' and in Mage_Core_Model_Abstract in _beforeSave() and _afterSave() methods that events are dispatched.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to override an abstract Block in Magento : app/code/core/Mage/Eav/Block/Adminhtml/Attribute/Edit/Options/Abstract.php I need to
Magento 1.4.1.1 Back in history, app/code/core/Mage/GoogleAnalytics/Block/Ga.php was copied over to app/code/local/Mage/GoogleAnalytics/Block/Ga.php and changes were
In the core of Magento there is the app\code\core\Mage\Catalog\Block\Product\View\Options.php class for example. How would
How to call the following two lines in magento's \app\code\core\Mage\Wishlist\Helper\Data.php file $this->_helper->layout()->disableLayout(); $this->_helper->viewRenderer->setNoRender(); Actually
I've got a problem with getting custom attribute in app/code/core/Mage/Sales/Model/Quote/Address/Total/Subtotal.php for example $product->getPrice() or
I have my core web-app code in the header right now in a tag
I'm using core motion in my app. This code works fine: motionManager = [[CMMotionManager
I have customized the new style for meagento notification messages in below path /app/code/core/Mage/Core/Block/Messages.php
i want to rewrite the block file : /app/code/core/Mage/Catalog/Block/Product/View/Options/Type/Select.php, below is my steps, but
I'm trying to obvserve the adminhtml_block_salesrule_actions_prepareform event thats dispatched in the app/code/core/Mage/Adminhtml/Block/Promo/Quote/Edit/Tab/Actions.php file in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.