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?
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.
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:
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.
Søren, you are a superstar! Thank you!
Looking forward to v3.
Cheers, Lee.
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
Hi Andrew
If your uCommerce version is not old (likes many years old) - you can create a pipelinetask instead:
http://docs.ucommerce.net/ucommerce/v6/extending-ucommerce/create-pipeline-task.html
is working on a reply...