File tree Expand file tree Collapse file tree 5 files changed +25
-15
lines changed
Checkout/view/frontend/templates
Sales/view/frontend/templates/order
Shipping/view/frontend/templates Expand file tree Collapse file tree 5 files changed +25
-15
lines changed Original file line number Diff line number Diff line change 7
7
<?php /** @var $block \Magento\Checkout\Block\Onepage\Success */ ?>
8
8
9
9
<?php if ($ block ->getCanViewOrder () && $ block ->getCanPrintOrder ()) :?>
10
- <a href="<?= $ block ->escapeUrl ($ block ->getPrintUrl ()) ?> " target="_blank" class="print">
10
+ <a href="<?= $ block ->escapeUrl ($ block ->getPrintUrl ()) ?> "
11
+ class="action print"
12
+ target="_blank"
13
+ rel="noopener">
11
14
<?= $ block ->escapeHtml (__ ('Print receipt ' )) ?>
12
15
</a>
13
16
<?= $ block ->getChildHtml () ?>
Original file line number Diff line number Diff line change 7
7
<?php $ _order = $ block ->getOrder () ?>
8
8
<div class="actions-toolbar">
9
9
<a href="<?= $ block ->escapeUrl ($ block ->getPrintAllCreditmemosUrl ($ _order )) ?> "
10
- onclick="this.target='_blank'"
11
- class="action print">
10
+ class="action print"
11
+ target="_blank"
12
+ rel="noopener">
12
13
<span><?= $ block ->escapeHtml (__ ('Print All Refunds ' )) ?> </span>
13
14
</a>
14
15
</div>
15
16
<?php foreach ($ _order ->getCreditmemosCollection () as $ _creditmemo ) : ?>
16
17
<div class="order-title">
17
18
<strong><?= $ block ->escapeHtml (__ ('Refund # ' )) ?> <?= $ block ->escapeHtml ($ _creditmemo ->getIncrementId ()) ?> </strong>
18
19
<a href="<?= $ block ->escapeUrl ($ block ->getPrintCreditmemoUrl ($ _creditmemo )) ?> "
19
- onclick="this.target='_blank'"
20
- class="action print">
20
+ class="action print"
21
+ target="_blank"
22
+ rel="noopener">
21
23
<span><?= $ block ->escapeHtml (__ ('Print Refund ' )) ?> </span>
22
24
</a>
23
25
</div>
Original file line number Diff line number Diff line change 16
16
<span><?= $ block ->escapeHtml (__ ('Reorder ' )) ?> </span>
17
17
</a>
18
18
<?php endif ?>
19
- <a class="action print"
20
- href="<?= $ block ->escapeUrl ($ block ->getPrintUrl ($ _order )) ?> "
21
- onclick="this.target='_blank';">
19
+ <a href="<?= $ block ->escapeUrl ($ block ->getPrintUrl ($ _order )) ?> "
20
+ class="action print"
21
+ target="_blank"
22
+ rel="noopener">
22
23
<span><?= $ block ->escapeHtml (__ ('Print Order ' )) ?> </span>
23
24
</a>
24
25
<?= $ block ->getChildHtml () ?>
Original file line number Diff line number Diff line change 7
7
<?php $ _order = $ block ->getOrder () ?>
8
8
<div class="actions-toolbar">
9
9
<a href="<?= $ block ->escapeUrl ($ block ->getPrintAllInvoicesUrl ($ _order )) ?> "
10
+ class="action print"
10
11
target="_blank"
11
- class="action print ">
12
+ rel="noopener ">
12
13
<span><?= $ block ->escapeHtml (__ ('Print All Invoices ' )) ?> </span>
13
14
</a>
14
15
</div>
15
16
<?php foreach ($ _order ->getInvoiceCollection () as $ _invoice ) : ?>
16
17
<div class="order-title">
17
18
<strong><?= $ block ->escapeHtml (__ ('Invoice # ' )) ?> <?= $ block ->escapeHtml ($ _invoice ->getIncrementId ()) ?> </strong>
18
19
<a href="<?= $ block ->escapeUrl ($ block ->getPrintInvoiceUrl ($ _invoice )) ?> "
19
- onclick="this.target='_blank'"
20
- class="action print">
20
+ class="action print"
21
+ target="_blank"
22
+ rel="noopener">
21
23
<span><?= $ block ->escapeHtml (__ ('Print Invoice ' )) ?> </span>
22
24
</a>
23
25
</div>
Original file line number Diff line number Diff line change 15
15
<?= $ block ->getChildHtml ('track-all-link ' ) ?>
16
16
<?php endif ; ?>
17
17
<a href="<?= $ block ->escapeUrl ($ block ->getPrintAllShipmentsUrl ($ _order )) ?> "
18
- onclick="this.target='_blank'"
19
- class="action print">
18
+ class="action print"
19
+ target="_blank"
20
+ rel="noopener">
20
21
<span><?= $ block ->escapeHtml (__ ('Print All Shipments ' )) ?> </span>
21
22
</a>
22
23
</div>
23
24
<?php foreach ($ _order ->getShipmentsCollection () as $ _shipment ) : ?>
24
25
<div class="order-title">
25
26
<strong><?= $ block ->escapeHtml (__ ('Shipment # ' )) ?> <?= $ block ->escapeHtml ($ _shipment ->getIncrementId ()) ?> </strong>
26
27
<a href="<?= $ block ->escapeUrl ($ block ->getPrintShipmentUrl ($ _shipment )) ?> "
27
- onclick="this.target='_blank'"
28
- class="action print">
28
+ class="action print"
29
+ target="_blank"
30
+ rel="noopener">
29
31
<span><?= $ block ->escapeHtml (__ ('Print Shipment ' )) ?> </span>
30
32
</a>
31
33
<a href="#"
You can’t perform that action at this time.
0 commit comments