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 1105299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:36:35+00:00 2026-05-17T01:36:35+00:00

I have been wondering about this for a while. What if Magento has written

  • 0

I have been wondering about this for a while. What if Magento has written a core Observer class and performs a functionality that you do not want it to execute, or you want to rewrite it? Is there a way to say, don’t use this method in an Observer, just use mine. If I setup a method for my own Observer won’t it just do the core functionality first and then whatever I have implement?

For example, Magento wants to save some data to the database in an Observer method, but I don’t want it to save that data at all, I want it to save some other data that I have added columns or attributes to the database for.

  • 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-05-17T01:36:35+00:00Added an answer on May 17, 2026 at 1:36 am

    Standard caveat about class overrides being the last resort for implementing your own functionality

    It’s probably possible to fiddle with the loading of the Magento global config to strip out a core Magento Observer, but there’s no supported way for doing it.

    However, consider how the Core observers are configured.

    <adminhtml>
        <events>
            <cms_wysiwyg_config_prepare>
                <observers>
                    <widget_observer>
                        <class>widget/observer</class>
                        <method>prepareWidgetsPluginConfig</method>
                    </widget_observer>
                </observers>
            </cms_wysiwyg_config_prepare>
        </events>
    </adminhtml>
    

    Observers are Magento Model classes. If a Model’s been configured with the URI/path based syntax

    <class>widget/observer</class>
    

    as opposed to a full PHP class name

    <class>Mage_Widget_Model_Observer</class>
    

    you can create an override for the Observer Model class (just as you can for any other Model). If a PHP class name’s been used, you’re out of luck. (You could place a local file in local/Mage/Widget/Model/Observer.php if you’re willing to take on the responsibility of maintenance, but I don’t recommend it)

    So, to override the above observer, you would

    1. Create a custom module that include an override for the class Mage_Widget_Model_Observer.

    2. In your override class, either redeclare prepareWidgetsPluginConfig to do what you want OR override the specific method. This could include a empty method to completely remove the functionality.

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

Sidebar

Related Questions

Have been wondering about this for days now: I have a basic wxpython program
I been wondering about this for a while. It seems like there are so
I've been wondering about this one for a while now, so I thought it
I've been wondering about this for a while and I can't see why Google
There is a question I have been wondering about for ages and I was
I've been using C++ for a short while, and I've been wondering about the
I was wondering about something. Lets say I have this piece of code: if
I have been wondering how to put all the stored procedures on a SQL
I have been wondering what the best practices or ramifications are in setting up
After much googling I have been wondering what the benefits/differences are between mysql and

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.