Redireccionamiento de Magento después del problema _prepareDownloadResponse

>       return $this->_prepareDownloadResponse(
>           'invoice'.Mage::getSingleton('core/date')->date('Y-m-d_H-i-s').'.pdf',
> $pdf->render(),           'application/pdf'

Is it still possible to force page redirect or refresh after _prepareDownloadResponse?

preguntado el 30 de enero de 12 a las 19:01

I'm not sure if this will work or not; remove return and add this line underneath $this->_prepareDownloadResponse .......... return $this->_redirect('*/*/'); -

I tried this before I think. The problem lies in the end of connection and response code for a download (already) generated by _prepareDownloadResponse -

Confirm. Not working, any other good ideas??? -

try to redirect or refresh the page using javascript on click event or whatever event want to apply it on. Fire 2 methods: one for download action followed by redirect action. -

I will try something this weekend. Problem is that it actually triggers a whole massaction and the download is the last step. But this definately is a good step to start with. Thanks -

1 Respuestas

This doesn't seem possible currently.

Respondido el 24 de enero de 14 a las 01:01

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.