Detecting Quote Activation via a Plugin RRS feed

  • Question

  • Hi all

    Could anyone advise me on the best way to detect that a Quote has been activated via a plugin?

    We are creating a plugin that will basically do some quite complex validation and logic when a quote is activated but because there is no "Activated" event for quotes (that I've seen) I'm wondering what the best way is to detect when a quote gets activated?

    I'd like the plugin to be as granular as possible so that it only fires when there is a high likelihood that a quote was activated. As such I'm not sure if its best to try and use the update event or the SetState event?

    The update event seems to be working for me but will obviously get called a lot. The SetState event seems like a good bet but doesn't seem to be getting called when I activate the quote at the moment....

    Any advice would be greatly appreciated

    Thanks all


    Friday, June 8, 2012 3:20 PM


  • I would also say use the update event.
    You could check the pre and post image for the state. If that didn't change just exit the plugin.
    Won't be using too much resouces then i think.
    • Marked as answer by sh856531 Monday, June 11, 2012 8:00 AM
    Friday, June 8, 2012 4:21 PM