Hey keesjan, first i want to say thank you for your help!!!,
I just tried it the way you suggested, and the event is still not firing. Initially, i was trying to extend
IConsumer<OrderPlacedEvent>
instead of
IConsumer<EntityInserted<OrderProductVariant>>
in the class on my plugin, and i was using
public void HandleEvent(OrderPlacedEvent eventMessage)
and that didnt fire either.....
I changed the function signature as you suggested,
public void HandleEvent(EntityInserted<OrderProductVariant> eventMessage)
and whenever i place an order (which is when an OrderProductVariant Gets inserted) the event doesnt get fired.
From the article that i saw on
https://www.nopcommerce.com/boards/t/18287/how-can-i-execute-plugin-method-when-order-placed.aspx and looking at their sourcecode at
http://nopcommerce.codeplex.com/SourceControl/changeset/view/e64ec069d646#src%2fPlugins%2fNop.Plugin.SMS.Clickatell%2fOrderPlacedEventConsumer.cs . All i saw that they needed to do was to
+Create a class off the root of given plugin that:
-Implement the IConsumer Interface (
IConsumer<EntityInserted<OrderProductVariant>>
)
-Add a public void HandleEvent method. (
public void HandleEvent(EntityInserted<OrderProductVariant> eventMessage
))
is there any other step you think im missing or need to add in order for this event to get fired on my plugin when i make a purchase through the shopping cart? Doesnt this class need to be called from somewhere for the event handler to work? or does Nop.Core.Events handle that automatically?
Thanks again for your input!