Magento Questions Answered By Magento Experts

 

Welcome Guest. Sign in or Signup

0 Answers

Redirect in observer sales_order_save_before

Asked by: 656 views , ,
Questions

Hello, faced with the problem of redirecting to another page in the event handler (sales_order_save_before).

In the handler, pointed out the need to go to the page / module / controller / action /

The controller:

$ this-> loadLayout (); 
$ block = $ this-> getLayout () -> createBlock (’Package_Module_Block_Custom’, ‘custom_block’); 
$ layout = $ this-> getLayout () -> getBlock (’content’) -> append ($ block); 
$ this-> renderLayout ();

Most interesting is that when viewed in the debugger shows – everything is OK. In the end I generated the necessary html and output through outputBody ($ html);

But the page remains the same, the problem can not understand. Can anyone help?

Answer Question