File tree Expand file tree Collapse file tree 9 files changed +44
-61
lines changed
Sales/view/frontend/templates
Shipping/view/frontend/templates Expand file tree Collapse file tree 9 files changed +44
-61
lines changed 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 41
41
</thead>
42
42
<?php $ _items = $ _creditmemo ->getAllItems (); ?>
43
43
<?php foreach ($ _items as $ _item ): ?>
44
- <?php if ($ _item ->getOrderItem ()->getParentItem ()) {
45
- continue ;
46
- } ?>
47
- <tbody>
48
- <?= $ block ->getItemHtml ($ _item ) ?>
49
- </tbody>
44
+ <?php if (!$ _item ->getOrderItem ()->getParentItem ()): ?>
45
+ <tbody>
46
+ <?= $ block ->getItemHtml ($ _item ) ?>
47
+ </tbody>
48
+ <?php endif ; ?>
50
49
<?php endforeach ; ?>
51
50
<tfoot>
52
51
<?= $ block ->getTotalsHtml ($ _creditmemo ) ?>
Original file line number Diff line number Diff line change 38
38
</thead>
39
39
<?php $ _items = $ _invoice ->getAllItems (); ?>
40
40
<?php foreach ($ _items as $ _item ): ?>
41
- <?php if ($ _item ->getOrderItem ()->getParentItem ()) {
42
- continue ;
43
- } ?>
44
- <tbody>
45
- <?= $ block ->getItemHtml ($ _item ) ?>
46
- </tbody>
41
+ <?php if (!$ _item ->getOrderItem ()->getParentItem ()) : ?>
42
+ <tbody>
43
+ <?= $ block ->getItemHtml ($ _item ) ?>
44
+ </tbody>
45
+ <?php endif ; ?>
47
46
<?php endforeach ; ?>
48
47
<tfoot>
49
48
<?= $ block ->getInvoiceTotalsHtml ($ _invoice ) ?>
Original file line number Diff line number Diff line change 35
35
</thead>
36
36
<?php $ _items = $ _creditmemo ->getAllItems (); ?>
37
37
<?php foreach ($ _items as $ _item ): ?>
38
- <?php if ($ _item ->getOrderItem ()->getParentItem ()): ?>
39
- continue;
40
- <?php endif ; ?>
41
- <tbody>
42
- <?= $ block ->getItemHtml ($ _item ) ?>
43
- </tbody>
38
+ <?php if (!$ _item ->getOrderItem ()->getParentItem ()): ?>
39
+ <tbody>
40
+ <?= $ block ->getItemHtml ($ _item ) ?>
41
+ </tbody>
42
+ <?php endif ; ?>
44
43
<?php endforeach ; ?>
45
44
<tfoot>
46
45
<?= $ block ->getTotalsHtml ($ _creditmemo ) ?>
Original file line number Diff line number Diff line change 33
33
</thead>
34
34
<?php $ _items = $ _invoice ->getItemsCollection (); ?>
35
35
<?php foreach ($ _items as $ _item ): ?>
36
- <?php if ($ _item ->getOrderItem ()->getParentItem ()): ?>
37
- continue;
36
+ <?php if (!$ _item ->getOrderItem ()->getParentItem ()): ?>
37
+ <tbody>
38
+ <?= $ block ->getItemHtml ($ _item ) ?>
39
+ </tbody>
38
40
<?php endif ; ?>
39
- <tbody>
40
- <?= $ block ->getItemHtml ($ _item ) ?>
41
- </tbody>
42
41
<?php endforeach ; ?>
43
42
<tfoot>
44
43
<?= $ block ->getInvoiceTotalsHtml ($ _invoice ) ?>
Original file line number Diff line number Diff line change 67
67
</thead>
68
68
<?php $ _items = $ _shipment ->getAllItems (); ?>
69
69
<?php foreach ($ _items as $ _item ): ?>
70
- <?php if ($ _item ->getOrderItem ()->getParentItem ()) {
71
- continue ;
72
- } ?>
73
- <tbody>
74
- <?= $ block ->getItemHtml ($ _item ) ?>
75
- </tbody>
70
+ <?php if (!$ _item ->getOrderItem ()->getParentItem ()) : ?>
71
+ <tbody>
72
+ <?= $ block ->getItemHtml ($ _item ) ?>
73
+ </tbody>
74
+ <?php endif ; ?>
76
75
<?php endforeach ; ?>
77
76
</table>
78
77
</div>
You can’t perform that action at this time.
0 commit comments