Developer forum

Forum » Feature requests » Request for additional notifications

Request for additional notifications

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

 

I have some custom logic in a menu that uses some caching to improve performance. I'd like to clear the cache whenever someone creates or modifies a product, or when the sorting changes. I currently have the following subscribers:

 

  [Subscribe(eCommerce.Product.AfterSave)]
  [Subscribe(eCommerce.Product.AfterDelete)]
  [Subscribe(eCommerce.Group.AfterSave)]
  [Subscribe(eCommerce.Group.Deleted)]
 

However, Product.AfterSave doesn't seem to trigger when I create a new product, only when you save an existing one.

Furthermore, there seems to be no subscriber for changing the sort order. There is an OnSorting, but I believe that sorts when you sort the products in the Product list in the backend UI, not when you manually change the "custom sort order'.

 

Can the following two notifications be added:

 

  [Subscribe(eCommerce.Product.AfterCreate)]

  [Subscribe(eCommerce.ProductList.AfterCustomOrderChange)]

 

Thanks,

 

Imar


Replies

 
Asger Munkholm Højfeldt
Reply

Hi Imar,

We'll fix the AfterSave notification and create the two new as we do the fix... 

//Asger

 
Merethe Nielsen
Reply

Hi Imar

Our developer can not reproduce the issue with eCommerce.Product.AfterSave in 8.4 or 8.4.1.
I hope that the newest release can help you.

Kind regards,
Merethe

 
Merethe Nielsen
Reply

Btw... The bug for this is 14148, but closed with fixed in 8.4 unless you can reproduce it in 8.4.

/Merethe 

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

OK, I'll try it out on that release. Are the two new ntifications added to 8.4?

Thanks,

 

Imar

 
Merethe Nielsen
Reply

I can see in the bug description that this one is only for Product.AfterSave.

Product backlog 14149 is created with the new notifications and this backlog is planned for 8.4.1 (already in progress but not finished and tested).

/Merethe