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 2525 </tr>
2626 </thead>
2727 <?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 ; ?>
3633 <?php endforeach ; ?>
3734 <tfoot class="order-totals">
3835 <?= $ block ->getChildHtml ('creditmemo_totals ' ) ?>
Original file line number Diff line number Diff line change 2525 </tr>
2626 </thead>
2727 <?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 ; ?>
3633 <?php endforeach ; ?>
3734 <tfoot class="order-totals">
3835 <?= $ block ->getChildHtml ('invoice_totals ' ) ?>
Original file line number Diff line number Diff line change 2525 </tr>
2626 </thead>
2727 <?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 ; ?>
3633 <?php endforeach ; ?>
3734 <tfoot class="order-totals">
3835 <?= $ block ->getChildHtml ('order_totals ' ) ?>
Original file line number Diff line number Diff line change 2222 </tr>
2323 </thead>
2424 <?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 ; ?>
3330 <?php endforeach ; ?>
3431 </table>
3532<?php endif ; ?>
Original file line number Diff line number Diff line change 4141 </thead>
4242 <?php $ _items = $ _creditmemo ->getAllItems (); ?>
4343 <?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 ; ?>
5049 <?php endforeach ; ?>
5150 <tfoot>
5251 <?= $ block ->getTotalsHtml ($ _creditmemo ) ?>
Original file line number Diff line number Diff line change 3838 </thead>
3939 <?php $ _items = $ _invoice ->getAllItems (); ?>
4040 <?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 ; ?>
4746 <?php endforeach ; ?>
4847 <tfoot>
4948 <?= $ block ->getInvoiceTotalsHtml ($ _invoice ) ?>
Original file line number Diff line number Diff line change 3535 </thead>
3636 <?php $ _items = $ _creditmemo ->getAllItems (); ?>
3737 <?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 ; ?>
4443 <?php endforeach ; ?>
4544 <tfoot>
4645 <?= $ block ->getTotalsHtml ($ _creditmemo ) ?>
Original file line number Diff line number Diff line change 3333 </thead>
3434 <?php $ _items = $ _invoice ->getItemsCollection (); ?>
3535 <?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>
3840 <?php endif ; ?>
39- <tbody>
40- <?= $ block ->getItemHtml ($ _item ) ?>
41- </tbody>
4241 <?php endforeach ; ?>
4342 <tfoot>
4443 <?= $ block ->getInvoiceTotalsHtml ($ _invoice ) ?>
Original file line number Diff line number Diff line change 6767 </thead>
6868 <?php $ _items = $ _shipment ->getAllItems (); ?>
6969 <?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 ; ?>
7675 <?php endforeach ; ?>
7776 </table>
7877</div>
You can’t perform that action at this time.
0 commit comments