- <?php
-
- use domain\Distribution\Distribution\Export\DistributionShoppingCartLabelsPdfGenerator;
-
- $distributionShoppingCartLabelsPdfGenerator = DistributionShoppingCartLabelsPdfGenerator::getInstance();
- $index = 0;
- $i = 0;
- foreach($ordersArray as $key => $order) {
- $index ++;
-
- echo $distributionShoppingCartLabelsPdfGenerator->getShoppingCartLabelAsHtml($order, $index, $isSpecificFormat);
-
- if($index == $shoppingCartLabelsPerColumn) {
- $index = 0;
- }
- if(!$isSpecificFormat && $index == 0 && $key !== array_key_last($ordersArray)) {
- echo '<columnbreak />';
- }
- }
- ?>
|