File tree Expand file tree Collapse file tree 13 files changed +45
-71
lines changed
Bundle/view/frontend/templates/sales/order
Sales/view/frontend/templates
Shipping/view/frontend/templates Expand file tree Collapse file tree 13 files changed +45
-71
lines changed Original file line number Diff line number Diff line change 12
12
13
13
<?php $ items = $ block ->getChildren ($ parentItem ) ?>
14
14
<?php $ _order = $ block ->getItem ()->getOrderItem ()->getOrder () ?>
15
- <?php $ _count = count ($ items ) ?>
16
15
<?php $ _index = 0 ?>
17
16
18
17
<?php $ _prevOptionId = '' ?>
Original file line number Diff line number Diff line change 12
12
<?php $ _order = $ block ->getItem ()->getOrderItem ()->getOrder () ?>
13
13
14
14
<?php $ items = $ block ->getChildren ($ parentItem ) ?>
15
- <?php $ _count = count ($ items ) ?>
16
15
<?php $ _index = 0 ?>
17
16
18
17
<?php $ _prevOptionId = '' ?>
Original file line number Diff line number Diff line change 10
10
?>
11
11
<?php $ parentItem = $ block ->getItem () ?>
12
12
<?php $ items = array_merge ([$ parentItem ], $ parentItem ->getChildrenItems ()); ?>
13
- <?php $ _count = count ($ items ) ?>
14
13
<?php $ _index = 0 ?>
15
14
16
15
<?php $ _prevOptionId = '' ?>
Original file line number Diff line number Diff line change 12
12
<?php $ parentItem = $ block ->getItem () ?>
13
13
<?php $ items = array_merge ([$ parentItem ->getOrderItem ()], $ parentItem ->getOrderItem ()->getChildrenItems ()) ?>
14
14
<?php $ shipItems = $ block ->getChildren ($ parentItem ) ?>
15
- <?php $ _count = count ($ items ) ?>
16
15
<?php $ _index = 0 ?>
17
16
18
17
<?php $ _prevOptionId = '' ?>
Original file line number Diff line number Diff line change 25
25
</tr>
26
26
</thead>
27
27
<?php foreach ($ _creditmemo ->getAllItems () as $ _item ): ?>
28
- <?php
29
- if ($ _item ->getOrderItem ()->getParentItem ()) {
30
- continue ;
31
- }
32
- ?>
33
- <tbody>
34
- <?= $ block ->getItemHtml ($ _item ) ?>
35
- </tbody>
28
+ <?php if (!$ _item ->getOrderItem ()->getParentItem ()) : ?>
29
+ <tbody>
30
+ <?= $ block ->getItemHtml ($ _item ) ?>
31
+ </tbody>
32
+ <?php endif ; ?>
36
33
<?php endforeach ; ?>
37
34
<tfoot class="order-totals">
38
35
<?= $ block ->getChildHtml ('creditmemo_totals ' ) ?>
Original file line number Diff line number Diff line change 25
25
</tr>
26
26
</thead>
27
27
<?php foreach ($ _invoice ->getAllItems () as $ _item ): ?>
28
- <?php
29
- if ($ _item ->getOrderItem ()->getParentItem ()) {
30
- continue ;
31
- }
32
- ?>
33
- <tbody>
34
- <?= $ block ->getItemHtml ($ _item ) ?>
35
- </tbody>
28
+ <?php if (!$ _item ->getOrderItem ()->getParentItem ()) : ?>
29
+ <tbody>
30
+ <?= $ block ->getItemHtml ($ _item ) ?>
31
+ </tbody>
32
+ <?php endif ; ?>
36
33
<?php endforeach ; ?>
37
34
<tfoot class="order-totals">
38
35
<?= $ block ->getChildHtml ('invoice_totals ' ) ?>
Original file line number Diff line number Diff line change 25
25
</tr>
26
26
</thead>
27
27
<?php foreach ($ _items as $ _item ): ?>
28
- <?php
29
- if ($ _item ->getParentItem ()) {
30
- continue ;
31
- }
32
- ?>
33
- <tbody>
34
- <?= $ block ->getItemHtml ($ _item ) ?>
35
- </tbody>
28
+ <?php if (!$ _item ->getParentItem ()) : ?>
29
+ <tbody>
30
+ <?= $ block ->getItemHtml ($ _item ) ?>
31
+ </tbody>
32
+ <?php endif ; ?>
36
33
<?php endforeach ; ?>
37
34
<tfoot class="order-totals">
38
35
<?= $ block ->getChildHtml ('order_totals ' ) ?>
Original file line number Diff line number Diff line change 22
22
</tr>
23
23
</thead>
24
24
<?php foreach ($ _shipment ->getAllItems () as $ _item ): ?>
25
- <?php
26
- if ($ _item ->getOrderItem ()->getParentItem ()) {
27
- continue ;
28
- }
29
- ?>
30
- <tbody>
31
- <?= $ block ->getItemHtml ($ _item ) ?>
32
- </tbody>
25
+ <?php if (!$ _item ->getOrderItem ()->getParentItem ()) : ?>
26
+ <tbody>
27
+ <?= $ block ->getItemHtml ($ _item ) ?>
28
+ </tbody>
29
+ <?php endif ; ?>
33
30
<?php endforeach ; ?>
34
31
</table>
35
32
<?php endif ; ?>
Original file line number Diff line number Diff line change 40
40
</tr>
41
41
</thead>
42
42
<?php $ _items = $ _creditmemo ->getAllItems (); ?>
43
- <?php $ _count = count ($ _items ) ?>
44
43
<?php foreach ($ _items as $ _item ): ?>
45
- <?php if ($ _item ->getOrderItem ()->getParentItem ()) {
46
- continue ;
47
- } ?>
48
- <tbody>
49
- <?= $ block ->getItemHtml ($ _item ) ?>
50
- </tbody>
44
+ <?php if (!$ _item ->getOrderItem ()->getParentItem ()): ?>
45
+ <tbody>
46
+ <?= $ block ->getItemHtml ($ _item ) ?>
47
+ </tbody>
48
+ <?php endif ; ?>
51
49
<?php endforeach ; ?>
52
50
<tfoot>
53
51
<?= $ block ->getTotalsHtml ($ _creditmemo ) ?>
Original file line number Diff line number Diff line change 37
37
</tr>
38
38
</thead>
39
39
<?php $ _items = $ _invoice ->getAllItems (); ?>
40
- <?php $ _count = count ($ _items ) ?>
41
40
<?php foreach ($ _items as $ _item ): ?>
42
- <?php if ($ _item ->getOrderItem ()->getParentItem ()) {
43
- continue ;
44
- } ?>
45
- <tbody>
46
- <?= $ block ->getItemHtml ($ _item ) ?>
47
- </tbody>
41
+ <?php if (!$ _item ->getOrderItem ()->getParentItem ()) : ?>
42
+ <tbody>
43
+ <?= $ block ->getItemHtml ($ _item ) ?>
44
+ </tbody>
45
+ <?php endif ; ?>
48
46
<?php endforeach ; ?>
49
47
<tfoot>
50
48
<?= $ block ->getInvoiceTotalsHtml ($ _invoice ) ?>
You can’t perform that action at this time.
0 commit comments