Developer forum

Forum » Development » DWAPI - notification subscribers and other improvements

DWAPI - notification subscribers and other improvements

Niels Foldager
Reply

Hi Dynamicweb,

Would it be possible to get a notification subscriber that fires when a cart is loaded by the DWAPI?

As for now, it is impossible to manipulate data in custom orderfields and custom orderline fields, e.g. the OrderBeforeSave notification subscriber is not hit when loading a cart from the DWAPI.

We would also like other comon used notification subscribers, like BeforeDiscountCalculation and AfterDiscountCalculation, to come in action when loading a cart by the DWAPI.

It could then be nice if Dynamicweb.Environment.ExecutingContext is extended so it would be possible to determine if request comes from frontend, backend or api.

We have also noticed, that the DiscountExtender is not hit when using the DWAPI.

Would it also be possible to add the stock quantity to each product orderline, which may also be a necessary piece of information in a shopping cart?

Best regards
Niels Foldager


Replies

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

Any update on this one?

 

Best regards, Anders

 

You must be logged in to post in the forum