cancel
Showing results for 
Search instead for 
Did you mean: 

How to over ride the functionality of CreateReturnRequestAction in ordermanagementbackoffice?

Former Member
0 Kudos

Hi experts,

I need to override the functionality of CreateReturnRequestAction from ordermanagementbackoffice. I can override the functionality just by extending it. After overriding the functionality how to attach/inject my custom action in place of OOTB action. I could see some definition.xml, *backoffice-widget.xml and *backoffice-config.xml etc.,.It would be great help, If some body can provide proper way to customize the OOTB backoffice functionality.

Thanks, Srini

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Srini,

The mapping between the action class and the action id is defined in definition.xml. customersupportbackoffice/backoffice/resources/widgets/actions/returns/createreturnrequest/definition.xml (If you don't have access to the sources, then this definition.xml would be wrapped inside customersupportbackoffice/resources/backoffice/customersupportbackoffice_bof.jar)

You would need to put the mapping( of your action class and the action id) in your action's definition.xml

Former Member
0 Kudos
 <context component="cseditorareaactions" type="Order" merge-by="type">        <y:actions xmlns:y="http://www.hybris.com/cockpit/config/hybris">
             <y:group qualifier="common">
                 <y:label>actiongroup.common</y:label>
                 <y:action action-id="de.hybris.ordermanagementbackoffice.actions.returns.createreturnrequestaction" property="currentObject"  **merge-node="remove"**/>
                 <y:action action-id="YOUR ACTION ID" property="currentObject" />
             </y:group>
         </y:actions>
     </context>

Former Member
0 Kudos

you can update the above config in your custom backoffice extension to remove the default action and add your action

Former Member
0 Kudos

Hi Sahil,

for this actionId "de.hybris.ordermanagementbackoffice.actions.returns.createreturnrequestaction" respective java class present in here "de.hybris.platform.omsbackoffice.actions.returns.CreateReturnRequestAction".

where can i see the mapping between these two? b'coz i would need make the similar mapping for my class "myCreateReturnRequest".

could you please provide some pointer.

Thanks, Srini

Former Member
0 Kudos

Hi Srini ,

were you able to achieve this ?if yes please share the solution

Thanks,

Former Member
0 Kudos

Hi I am trying to override the cancel order action. I tried by using similar config as above you mentioned. Now I can see both ootb and custom action. How can I get rid of ootb one? Thanks in advance