Skip to main content
added 36 characters in body
Source Link
Fra
  • 7k
  • 12
  • 65
  • 99

The first line in pdfinvoices is:

$orderIds = $this->getRequest()->getPost('order_ids');

Thus it is expecting an array list of order ids to work on.

Make sure your mass action variable is called order_ids. If you then forward to the pdfinvoice action, it will use the same order ids you just worked on.

If, for some reason you need to eliminate any ids from the list, (could not process shipping as an example), build a new array of allowed order ids.

Then just before you _forward, inject the order ids you want to process into the post variable.

 $this->getRequest()->setPost('order_ids',$orderIds);
 $this->_forward('pdfinvoices');

The first line in pdfinvoices is:

$orderIds = $this->getRequest()->getPost('order_ids');

Thus it is expecting an array list of order ids to work on.

Make sure your mass action variable is called order_ids. If you then forward to the pdfinvoice action, it will use the same order ids you just worked on.

If, for some reason you need to eliminate any ids from the list, (could not process shipping as an example), build a new array of allowed order ids.

Then just before you _forward, inject the order ids you want to process into the post variable.

 $this->getRequest()->setPost('order_ids',$orderIds);

The first line in pdfinvoices is:

$orderIds = $this->getRequest()->getPost('order_ids');

Thus it is expecting an array list of order ids to work on.

Make sure your mass action variable is called order_ids. If you then forward to the pdfinvoice action, it will use the same order ids you just worked on.

If, for some reason you need to eliminate any ids from the list, (could not process shipping as an example), build a new array of allowed order ids.

Then just before you _forward, inject the order ids you want to process into the post variable.

 $this->getRequest()->setPost('order_ids',$orderIds);
 $this->_forward('pdfinvoices');
formatted appearance
Source Link
Rajeev K Tomy
  • 17.3k
  • 6
  • 63
  • 103

The first line in pdfinvoicespdfinvoices is:

$orderIds = $this->getRequest()->getPost('order_ids');

$orderIds = $this->getRequest()->getPost('order_ids');

thusThus it is expecting an array list of order ids to work on.

Make sure your mass action variable is called 'order_ids' Iforder_ids. If you then forward to the pdfinvoicepdfinvoice action, it will use the same order ids you just worked on.

If, for some reason you need to eliminate any ids from the list, (could not process shipping as an example), build a new array of allowed order ids.

Then just before you _forward_forward, inject the order ids you want to process into the post variable.

$this->getRequest()->setPost('order_ids',$orderIds);

 $this->getRequest()->setPost('order_ids',$orderIds);

The first line in pdfinvoices is:

$orderIds = $this->getRequest()->getPost('order_ids');

thus it is expecting an array list of order ids to work on.

Make sure your mass action variable is called 'order_ids' If you then forward to the pdfinvoice action, it will use the same order ids you just worked on.

If, for some reason you need to eliminate any ids from the list, (could not process shipping as an example), build a new array of allowed order ids.

Then just before you _forward, inject the order ids you want to process into the post variable.

$this->getRequest()->setPost('order_ids',$orderIds);

The first line in pdfinvoices is:

$orderIds = $this->getRequest()->getPost('order_ids');

Thus it is expecting an array list of order ids to work on.

Make sure your mass action variable is called order_ids. If you then forward to the pdfinvoice action, it will use the same order ids you just worked on.

If, for some reason you need to eliminate any ids from the list, (could not process shipping as an example), build a new array of allowed order ids.

Then just before you _forward, inject the order ids you want to process into the post variable.

 $this->getRequest()->setPost('order_ids',$orderIds);
Source Link
ProxiBlue
  • 9.9k
  • 3
  • 34
  • 60

The first line in pdfinvoices is:

$orderIds = $this->getRequest()->getPost('order_ids');

thus it is expecting an array list of order ids to work on.

Make sure your mass action variable is called 'order_ids' If you then forward to the pdfinvoice action, it will use the same order ids you just worked on.

If, for some reason you need to eliminate any ids from the list, (could not process shipping as an example), build a new array of allowed order ids.

Then just before you _forward, inject the order ids you want to process into the post variable.

$this->getRequest()->setPost('order_ids',$orderIds);