Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<?php
/** @var \Magento\Catalog\Pricing\Render\FinalPriceBox $block */

$productId = $block->getSaleableItem()->getId();

/** ex: \Magento\Catalog\Pricing\Price\RegularPrice */
/** @var \Magento\Framework\Pricing\Price\PriceInterface $priceModel */
$priceModel = $block->getPriceType('regular_price');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
<?php
/** @var \Magento\Catalog\Pricing\Render\FinalPriceBox $block */

$productId = $block->getSaleableItem()->getId();

/** ex: \Magento\Catalog\Pricing\Price\RegularPrice */
/** @var \Magento\Framework\Pricing\Price\PriceInterface $priceModel */
$priceModel = $block->getPriceType('regular_price');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ $orderStoreDate = $block->formatDate(
true,
$block->getTimezoneForStore($order->getStore())
);

$customerUrl = $block->getCustomerViewUrl();
?>

<section class="admin__page-section order-view-account-information">
Expand Down Expand Up @@ -114,8 +116,8 @@ $orderStoreDate = $block->formatDate(
<div class="admin__page-section-item-title">
<span class="title"><?= $block->escapeHtml(__('Account Information')) ?></span>
<div class="actions">
<?php if ($customerUrl = $block->getCustomerViewUrl()) : ?>
<a href="<?= /* @noEscape */ $block->getCustomerViewUrl() ?>" target="_blank">
<?php if ($customerUrl) : ?>
<a href="<?= /* @noEscape */ $customerUrl ?>" target="_blank">
<?= $block->escapeHtml(__('Edit Customer')) ?>
</a>
<?php endif; ?>
Expand All @@ -126,7 +128,7 @@ $orderStoreDate = $block->formatDate(
<tr>
<th><?= $block->escapeHtml(__('Customer Name')) ?></th>
<td>
<?php if ($customerUrl = $block->getCustomerViewUrl()): ?>
<?php if ($customerUrl): ?>
<a href="<?= $block->escapeUrl($customerUrl) ?>" target="_blank">
<span><?= $block->escapeHtml($order->getCustomerName()) ?></span>
</a>
Expand Down