You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 line
675B

  1. <?php
  2. use domain\Distribution\Distribution\Export\DistributionShoppingCartLabelsPdfGenerator;
  3. $distributionShoppingCartLabelsPdfGenerator = DistributionShoppingCartLabelsPdfGenerator::getInstance();
  4. $index = 0;
  5. $i = 0;
  6. foreach($ordersArray as $key => $order) {
  7. $index ++;
  8. echo $distributionShoppingCartLabelsPdfGenerator->getShoppingCartLabelAsHtml($order, $index, $isSpecificFormat, $specificFormatWidth, $specificFormatHeight, $pdfInCartLabelSpecificFormat);
  9. if($index == $shoppingCartLabelsPerColumn) {
  10. $index = 0;
  11. }
  12. if(!$isSpecificFormat && $index == 0 && $key !== array_key_last($ordersArray)) {
  13. echo '<columnbreak />';
  14. }
  15. }
  16. ?>