Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

These support forums are now closed for new topics and comments.
Please head on over to for support.

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Jun 19, 2012 @ 18:27
    Lee Kelleher

    uCommerce - hooking into Product Save event

    Is there a simple way to hook into the Save event for a Product?

    I have read Lasse's blog post about Extending uCommerce Admin, but the idea of adding an extra tab to only hook into the Save event seems overkill.

    I am looking to index all Products into an Examine/Lucene index for a front-end advanced search - hooking into the Save event seems like the logical approach ... unless there are better ideas?

    Thanks, Lee.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 04, 2012 @ 13:52
    Søren Spelling Lund

    Hi Lee,

    You can override the presenter responsible for driving the EditProduct UIs.

    You do it by inheriting EditProductPresenter and overriding the WireEvents() method and wire up additional event handlers to the Save event:

    public class CustomEditProductPresenter
    public override WireEvents
    View.Save += myEventHandler;

    To replace the default presenter with your own you need to modify the Presenters.config file found in /umbraco/ucommerce/configuration

    uCommerce 3 will have a pipeline baked in, which will make the process a bit easier.


  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Jul 04, 2012 @ 20:18
    Lee Kelleher

    Søren, you are a superstar! Thank you!

    Looking forward to v3.

    Cheers, Lee.

  • andrew shearer 506 posts 654 karma points
    Feb 01, 2015 @ 22:06
    andrew shearer

    I tried this as per the comments/links above nad can't get past this exception:

    "No component for supporting the service UCommerce.Presentation.Presenters.Catalog.EditProductPresenter was found"

    any ideas? thanks

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Feb 17, 2015 @ 08:51
    Nickolaj Lundgreen

    Hi Andrew

    If your uCommerce version is not old (likes many years old) - you can create a pipelinetask instead:

Please Sign in or register to post replies

Write your reply to: