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 lines
578B

  1. <?php
  2. use common\logic\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);
  9. if($index == $shoppingCartLabelsPerColumn) {
  10. $index = 0;
  11. }
  12. if(!$isSpecificFormat && $index == 0 && $key !== array_key_last($ordersArray)) {
  13. echo '<columnbreak />';
  14. }
  15. }
  16. ?>