Developer forum

Forum » Development » Popup message when orderstate is changed

Popup message when orderstate is changed

Lars Larsen
Lars Larsen
Reply

Hi

I would like to make a popup that should show up when an orderstate is changed from within the backend. I have added a javascript alert in the Ecommerce.Order.BeforeSave notification:

Dynamicweb.Context.Current.Response.Write("<script>alert(\"Orderstate changed!\");</script>");

The alert shows up when changing orderstate from the orderlist and when editing an order, changing the orderstate and clicking "Save". But the popup doesn't show up if clicking "Save and close" from the order edit page. How can I fix this?


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Lars

I don't know... I think you have to be creative...

Adding something to the response is a bit tricky and hacky. Maybe look around for another approach.

BR Nicolai

Votes for this answer: 1
 
Lars Larsen
Lars Larsen
Reply

Hi Nicolai

OK, I will go for another approach then. Thanks.

 

You must be logged in to post in the forum