This means you should send an array of configs and an array of data to the qz.print(...) API.
How you provide this is up to you. If you're controlling it from PHP, it would be the same as any other PHP->JavaScript variables.
Normally, qz.print(...) is called with two parameters:
- config (print options)
- data[] (array of content to print)
... however QZ Tray 2.1 supports:
- config[] (array of configs)
- data[][] (array of arrays of content to print)
This means you can specify copies in an array the same size as the data[][] and QZ will handle them in the order they are received.
If you don't want to use this, you can use the Promise ".then()" chaining method from my previous email, but this may prove harder to control.
Note, we generally don't help with PHP->JavaScript on this mailing list as it's out of scope. QZ Tray is just a JavaScript API so we try to focus on that and not any nuances caused by the back-end language. I hope you understand.