Skip to main content
added 2 characters in body; edited tags
Source Link

I have created an observer that hooks into the controller_action_predispatch_adminhtml_sales_order_view event. In this observer I want to set the order's hasForcedCanCreditmemohasForcedCanCreditmemo to TRUE.

I am unsure how to retrieve the order, though - I can't see anywhere that the order ID is being passed through.

Does anyone have any ideas as to how I would get the order?

Thanks!

I have created an observer that hooks into the controller_action_predispatch_adminhtml_sales_order_view event. In this observer I want to set the order's hasForcedCanCreditmemo to TRUE.

I am unsure how to retrieve the order, though - I can't see anywhere that the order ID is being passed through.

Does anyone have any ideas as to how I would get the order?

Thanks!

I have created an observer that hooks into the controller_action_predispatch_adminhtml_sales_order_view event. In this observer I want to set the order's hasForcedCanCreditmemo to TRUE.

I am unsure how to retrieve the order, though - I can't see anywhere that the order ID is being passed through.

Does anyone have any ideas as to how I would get the order?

Thanks!

Source Link
Skytiger
  • 511
  • 4
  • 18

Retrieve Order in Observer

I have created an observer that hooks into the controller_action_predispatch_adminhtml_sales_order_view event. In this observer I want to set the order's hasForcedCanCreditmemo to TRUE.

I am unsure how to retrieve the order, though - I can't see anywhere that the order ID is being passed through.

Does anyone have any ideas as to how I would get the order?

Thanks!