cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Can we override SAVE functionality in Backoffice for one model only i.e Orders ?

former_member726857
Discoverer
0 Kudos
553

scenario:

When order is placed, backoffice team changes order status to "approved" after checks and all. My requirement is on changing orderstatus when we click on SAVE. I need to show a popup for further actions like calling an API .

can u please help me with this.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

could you elaborate please on how to send a message via virtual socket? Thanks

former_member625836
Active Contributor
0 Kudos

Hi ,

There is an interface com.hybris.cockpitng.widgets.baseeditorarea.EditorAreaLogicHandler that is responsible for handling Save event (among others). There is also a default implementation of this interface com.hybris.cockpitng.widgets.baseeditorarea.DefaultEditorAreaLogicHandler that is used ootb. You may write your own implementation (most probably by extending a default one and overriding #performSave method). I would suggest sending there a message via virtual socket that you define and connecting this socket to some widget marked as template. This should do the work.

Cheers, Jacek