Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

20 linhas
586B

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