File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Catalog/view/base/templates/product/price
Sales/view/adminhtml/templates/order/view Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 11
11
<?php
12
12
/** @var \Magento\Catalog\Pricing\Render\FinalPriceBox $block */
13
13
14
- $ productId = $ block ->getSaleableItem ()->getId ();
15
-
16
14
/** ex: \Magento\Catalog\Pricing\Price\RegularPrice */
17
15
/** @var \Magento\Framework\Pricing\Price\PriceInterface $priceModel */
18
16
$ priceModel = $ block ->getPriceType ('regular_price ' );
Original file line number Diff line number Diff line change 11
11
<?php
12
12
/** @var \Magento\Catalog\Pricing\Render\FinalPriceBox $block */
13
13
14
- $ productId = $ block ->getSaleableItem ()->getId ();
15
-
16
14
/** ex: \Magento\Catalog\Pricing\Price\RegularPrice */
17
15
/** @var \Magento\Framework\Pricing\Price\PriceInterface $priceModel */
18
16
$ priceModel = $ block ->getPriceType ('regular_price ' );
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ $orderStoreDate = $block->formatDate(
24
24
true ,
25
25
$ block ->getTimezoneForStore ($ order ->getStore ())
26
26
);
27
+
28
+ $ customerUrl = $ block ->getCustomerViewUrl ();
27
29
?>
28
30
29
31
<section class="admin__page-section order-view-account-information">
@@ -114,8 +116,8 @@ $orderStoreDate = $block->formatDate(
114
116
<div class="admin__page-section-item-title">
115
117
<span class="title"><?= $ block ->escapeHtml (__ ('Account Information ' )) ?> </span>
116
118
<div class="actions">
117
- <?php if ($ customerUrl = $ block -> getCustomerViewUrl () ) : ?>
118
- <a href="<?= /* @noEscape */ $ block -> getCustomerViewUrl () ?> " target="_blank">
119
+ <?php if ($ customerUrl ) : ?>
120
+ <a href="<?= /* @noEscape */ $ customerUrl ?> " target="_blank">
119
121
<?= $ block ->escapeHtml (__ ('Edit Customer ' )) ?>
120
122
</a>
121
123
<?php endif ; ?>
@@ -126,7 +128,7 @@ $orderStoreDate = $block->formatDate(
126
128
<tr>
127
129
<th><?= $ block ->escapeHtml (__ ('Customer Name ' )) ?> </th>
128
130
<td>
129
- <?php if ($ customerUrl = $ block -> getCustomerViewUrl () ): ?>
131
+ <?php if ($ customerUrl ): ?>
130
132
<a href="<?= $ block ->escapeUrl ($ customerUrl ) ?> " target="_blank">
131
133
<span><?= $ block ->escapeHtml ($ order ->getCustomerName ()) ?> </span>
132
134
</a>
You can’t perform that action at this time.
0 commit comments