File tree Expand file tree Collapse file tree 10 files changed +21
-21
lines changed
app/code/Magento/Sales/view/frontend/templates
creditmemo/items/renderer Expand file tree Collapse file tree 10 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 16
16
<?php foreach ($ block ->getItemOptions () as $ option ) : ?>
17
17
<dt><strong><em><?= $ block ->escapeHtml ($ option ['label ' ]) ?> </em></strong></dt>
18
18
<dd>
19
- <?= /* @noEscape */ nl2br ($ option ['value ' ]) ?>
19
+ <?= /* @noEscape */ nl2br ($ block -> escapeHtml ( $ option ['value ' ]) ) ?>
20
20
</dd>
21
21
<?php endforeach ; ?>
22
22
</dl>
27
27
<?php endif ; ?>
28
28
<?= $ block ->escapeHtml ($ _item ->getDescription ()) ?>
29
29
</td>
30
- <td class="item-qty"><?= (int ) $ _item ->getQty () * 1 ?> </td>
30
+ <td class="item-qty"><?= (int ) $ _item ->getQty () ?> </td>
31
31
<td class="item-price">
32
32
<?= /* @noEscape */ $ block ->getItemPrice ($ _item ) ?>
33
33
</td>
Original file line number Diff line number Diff line change 15
15
<?php foreach ($ block ->getItemOptions () as $ option ) : ?>
16
16
<dt><strong><em><?= $ block ->escapeHtml ($ option ['label ' ]) ?> </em></strong></dt>
17
17
<dd>
18
- <?= /* @noEscape */ nl2br ($ option ['value ' ]) ?>
18
+ <?= /* @noEscape */ nl2br ($ block -> escapeHtml ( $ option ['value ' ]) ) ?>
19
19
</dd>
20
20
<?php endforeach ; ?>
21
21
</dl>
26
26
<?php endif ; ?>
27
27
<?= $ block ->escapeHtml ($ _item ->getDescription ()) ?>
28
28
</td>
29
- <td class="item-qty"><?= (int ) $ _item ->getQty () * 1 ?> </td>
29
+ <td class="item-qty"><?= (int ) $ _item ->getQty () ?> </td>
30
30
<td class="item-price">
31
31
<?= /* @noEscape */ $ block ->getItemPrice ($ _item ->getOrderItem ()) ?>
32
32
</td>
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ $_order = $_item->getOrder();
21
21
<?php foreach ($ block ->getItemOptions () as $ option ) : ?>
22
22
<dt><strong><em><?= $ block ->escapeHtml ($ option ['label ' ]) ?> </em></strong></dt>
23
23
<dd>
24
- <?= /* @noEscape */ nl2br ($ option ['value ' ]) ?>
24
+ <?= /* @noEscape */ nl2br ($ block -> escapeHtml ( $ option ['value ' ]) ) ?>
25
25
</dd>
26
26
<?php endforeach ; ?>
27
27
</dl>
@@ -32,7 +32,7 @@ $_order = $_item->getOrder();
32
32
<?php endif ; ?>
33
33
<?= $ block ->escapeHtml ($ _item ->getDescription ()) ?>
34
34
</td>
35
- <td class="item-qty"><?= (int ) $ _item ->getQtyOrdered () * 1 ?> </td>
35
+ <td class="item-qty"><?= (int ) $ _item ->getQtyOrdered () ?> </td>
36
36
<td class="item-price">
37
37
<?= /* @noEscape */ $ block ->getItemPrice ($ _item ) ?>
38
38
</td>
Original file line number Diff line number Diff line change @@ -26,5 +26,5 @@ $_item = $block->getItem() ?>
26
26
<?php endif ; ?>
27
27
<?= $ block ->escapeHtml ($ _item ->getDescription ()) ?>
28
28
</td>
29
- <td class="item-qty"><?= (int ) $ _item ->getQty () * 1 ?> </td>
29
+ <td class="item-qty"><?= (int ) $ _item ->getQty () ?> </td>
30
30
</tr>
Original file line number Diff line number Diff line change 6
6
7
7
?>
8
8
<?php $ _shipment = $ block ->getShipment () ?>
9
- <?php $ _order = $ block ->getOrder () ?>
9
+ <?php
10
+ /* @var \Magento\Sales\Model\Order $_order */
11
+ $ _order = $ block ->getOrder () ?>
10
12
<?php if ($ _shipment && $ _order ) : ?>
11
13
<?php $ trackCollection = $ _order ->getTracksCollection ($ _shipment ->getId ()) ?>
12
14
<?php if ($ trackCollection ) : ?>
Original file line number Diff line number Diff line change 29
29
</dd>
30
30
<?php else : ?>
31
31
<dd>
32
- <?= $ block ->escapeHtml (
33
- (isset ($ _option ['print_value ' ]) ? $ _option ['print_value ' ] : $ _option ['value ' ])
34
- ) ?>
32
+ <?= $ block ->escapeHtml ($ _option ['print_value ' ] ?? $ _option ['value ' ]) ?>
35
33
</dd>
36
34
<?php endif ; ?>
37
35
<?php endforeach ; ?>
59
57
<td class="col price" data-th="<?= $ block ->escapeHtml (__ ('Price ' )) ?> ">
60
58
<?= $ block ->getItemPriceHtml () ?>
61
59
</td>
62
- <td class="col qty" data-th="<?= $ block ->escapeHtml (__ ('Qty ' )) ?> "><?= (int ) $ _item ->getQty () * 1 ?> </td>
60
+ <td class="col qty" data-th="<?= $ block ->escapeHtml (__ ('Qty ' )) ?> "><?= (int ) $ _item ->getQty () ?> </td>
63
61
<td class="col subtotal" data-th="<?= $ block ->escapeHtml (__ ('Subtotal ' )) ?> ">
64
62
<?= $ block ->getItemRowTotalHtml () ?>
65
63
</td>
Original file line number Diff line number Diff line change 10
10
?>
11
11
<?php $ _orders = $ block ->getOrders (); ?>
12
12
<?= $ block ->getChildHtml ('info ' ) ?>
13
- <?php if ($ _orders && ! empty ($ _orders )) : ?>
13
+ <?php if ($ _orders && count ($ _orders )) : ?>
14
14
<div class="table-wrapper orders-history">
15
15
<table class="data table table-order-items history" id="my-orders-table">
16
16
<caption class="table-caption"><?= $ block ->escapeHtml (__ ('Orders ' )) ?> </caption>
Original file line number Diff line number Diff line change 28
28
<?php endif ; ?>
29
29
</dd>
30
30
<?php else : ?>
31
- <dd><?= $ block ->escapeHtml (( isset ( $ _option ['print_value ' ]) ? $ _option ['print_value ' ] : $ _option [ ' value ' ]) ) ?> </dd>
31
+ <dd><?= $ block ->escapeHtml ($ _option ['print_value ' ] ?? $ _option ['value ' ]) ?> </dd>
32
32
<?php endif ; ?>
33
33
<?php endforeach ; ?>
34
34
</dl>
44
44
<?= $ block ->getItemPriceHtml () ?>
45
45
</td>
46
46
<td class="col qty" data-th="<?= $ block ->escapeHtml (__ ('Qty Invoiced ' )) ?> ">
47
- <span class="qty summary"><?= (int ) $ _item ->getQty ()* 1 ?> </span>
47
+ <span class="qty summary"><?= (int ) $ _item ->getQty () ?> </span>
48
48
</td>
49
49
<td class="col subtotal" data-th="<?= $ block ->escapeHtml (__ ('Subtotal ' )) ?> ">
50
50
<?= $ block ->getItemRowTotalHtml () ?>
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ $_item = $block->getItem();
25
25
</dd>
26
26
<?php else : ?>
27
27
<dd>
28
- <?= /* @noEscape */ nl2br ($ block ->escapeHtml (( isset ( $ _option ['print_value ' ]) ? $ _option ['print_value ' ] : $ _option [ ' value ' ]) )) ?>
28
+ <?= /* @noEscape */ nl2br ($ block ->escapeHtml ($ _option ['print_value ' ] ?? $ _option ['value ' ])) ?>
29
29
</dd>
30
30
<?php endif ; ?>
31
31
<?php endforeach ; ?>
@@ -46,25 +46,25 @@ $_item = $block->getItem();
46
46
<?php if ($ block ->getItem ()->getQtyOrdered () > 0 ) : ?>
47
47
<li class="item">
48
48
<span class="title"><?= $ block ->escapeHtml (__ ('Ordered ' )) ?> </span>
49
- <span class="content"><?= (int ) $ block ->getItem ()->getQtyOrdered ()* 1 ?> </span>
49
+ <span class="content"><?= (int ) $ block ->getItem ()->getQtyOrdered () ?> </span>
50
50
</li>
51
51
<?php endif ; ?>
52
52
<?php if ($ block ->getItem ()->getQtyShipped () > 0 ) : ?>
53
53
<li class="item">
54
54
<span class="title"><?= $ block ->escapeHtml (__ ('Shipped ' )) ?> </span>
55
- <span class="content"><?= (int ) $ block ->getItem ()->getQtyShipped ()* 1 ?> </span>
55
+ <span class="content"><?= (int ) $ block ->getItem ()->getQtyShipped () ?> </span>
56
56
</li>
57
57
<?php endif ; ?>
58
58
<?php if ($ block ->getItem ()->getQtyCanceled () > 0 ) : ?>
59
59
<li class="item">
60
60
<span class="title"><?= $ block ->escapeHtml (__ ('Canceled ' )) ?> </span>
61
- <span class="content"><?= (int ) $ block ->getItem ()->getQtyCanceled ()* 1 ?> </span>
61
+ <span class="content"><?= (int ) $ block ->getItem ()->getQtyCanceled () ?> </span>
62
62
</li>
63
63
<?php endif ; ?>
64
64
<?php if ($ block ->getItem ()->getQtyRefunded () > 0 ) : ?>
65
65
<li class="item">
66
66
<span class="title"><?= $ block ->escapeHtml (__ ('Refunded ' )) ?> </span>
67
- <span class="content"><?= (int ) $ block ->getItem ()->getQtyRefunded ()* 1 ?> </span>
67
+ <span class="content"><?= (int ) $ block ->getItem ()->getQtyRefunded () ?> </span>
68
68
</li>
69
69
<?php endif ; ?>
70
70
</ul>
Original file line number Diff line number Diff line change 39
39
<?= $ block ->escapeHtml ($ _item ->getDescription ()) ?>
40
40
</td>
41
41
<td class="col sku" data-th="<?= $ block ->escapeHtml (__ ('SKU ' )) ?> "><?= /* @noEscape */ $ block ->prepareSku ($ block ->getSku ()) ?> </td>
42
- <td class="col qty" data-th="<?= $ block ->escapeHtml (__ ('Qty Shipped ' )) ?> "><?= (int ) $ _item ->getQty ()* 1 ?> </td>
42
+ <td class="col qty" data-th="<?= $ block ->escapeHtml (__ ('Qty Shipped ' )) ?> "><?= (int ) $ _item ->getQty () ?> </td>
43
43
</tr>
You can’t perform that action at this time.
0 commit comments