DPDBeNeLux / magento-DPD_Shipping

Let op: er zijn nieuwe DPD plugins (BETA versie) beschikbaar met belangrijke nieuwe functionaliteiten. De oude plugins zullen na Brexit niet meer goed functioneren, download daarom de nieuwe versie op Github/DPDconnect.
11 stars 10 forks source link

Question about merging 2 mass actions #33

Closed robinero closed 8 years ago

robinero commented 9 years ago

Hey mvgucht,

Back yet again with a question.

Is it possible to merge the mass actions "Generate label and Complete" and "Download all undownloaded"? And if it is, are there any downsides to it?

Thanks!

Kind regards, Robin

mvgucht commented 8 years ago

Hey Robin,

you could try and add the download action at the end of the generate label action in the controller:

https://github.com/DPDBeNeLux/magento-DPD_Shipping/blob/8216ce0bd1f6358f39dffca40595cd4af4506aaa/app/code/community/DPD/Shipping/controllers/Adminhtml/DpdorderController.php#L161

$this->_redirect('*/*/index');

becomes

//$this->_redirect('*/*/index');
dowloadAllUndownloadedAction()

should work :)