Developer forum

Forum » PIM » Subscriber - Ecommerce.Product.AfterSave

Subscriber - Ecommerce.Product.AfterSave

Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

Are there any subscribers for PIM? I would like trigger a subscriber like the one there is for eCom. (Ecommerce.Product.AfterSave)

I need to generate "some stuff" when a product is saved in PIM.

Regards / Aki


Replies

 
Vladimir Shushunov Dynamicweb Employee
Vladimir Shushunov
Reply

Hi Aki,

You should have exact the same notifications in the PIM.
I checked latest DW9.8.9 - they are sent. 

Could you provide your steps and DW version?

Best regards,
Vladimir

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

I have a solution which is running DW 9.8.9.

I that solution I also have this notification:  

[Dynamicweb.Extensibility.Notifications.Subscribe(Dynamicweb.Ecommerce.Notifications.Ecommerce.Product.AfterSave)]

It does not fire when a I save product in the PIM. But it does fire when I save a product in eCom.

Regards / Aki

 

 
Vladimir Shushunov Dynamicweb Employee
Vladimir Shushunov
Reply

Honestly don't know what to say -  as I can't reproduce the problem:
product either saved with notification either doesn't saved.
Could you chek BeforeSave notification -  do you catch it?

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

Unfortunately it is the same with "BeforeSave". 

Triggered by eCom but not by PIM. 

Regards / Aki

 
Vladimir Shushunov Dynamicweb Employee
Vladimir Shushunov
Reply

hmm... could you extract the dll in attached archive to {yoursite} bin folder and try to save product in PIM.

Btw send me please a screenshot where you save 'PIM' product... may be I do it somehow other....

 
Aki Ruuskanen
Aki Ruuskanen
Reply

 I think something went wrong with the file. The zip does not contain any file.  

 
Vladimir Shushunov Dynamicweb Employee
Vladimir Shushunov
Reply

Dynamicweb.Ecommerce.Examples.dll.7z

I'm sorry... I fixed a link

 
Aki Ruuskanen
Aki Ruuskanen
Reply

Hi,

Made a test with the DLL and in PIM I got not exception but in the eCom I got the "I'm saved" exception. :) 

Here is a screencast of that. 

https://drive.google.com/file/d/1mJ_6NM6ji5LY9M2f_wIV62vOk34hnL5u/view

Regards / Aki

 
Vladimir Shushunov Dynamicweb Employee
Vladimir Shushunov
Reply
This post has been marked as an answer

hmm.. but if you made a change in a field and then click Save?

It seems in the PIM the notification is sent only when any changes are saved.

Votes for this answer: 1
 
Aki Ruuskanen
Aki Ruuskanen
Reply

Aaaaahhhh.....

Makes sense. smiley

Thanks a bunch!

/ Aki

 

You must be logged in to post in the forum