init
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
?>
|
||||
<?php
|
||||
/**
|
||||
* @var $block \Magento\Sales\Block\Adminhtml\Items\Column\Name
|
||||
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php
|
||||
/** @var \Magento\Catalog\Helper\Data $catalogHelper */
|
||||
$catalogHelper = $block->getData('catalogHelper');
|
||||
?>
|
||||
<?php if ($_item = $block->getItem()): ?>
|
||||
<div id="order_item_<?= (int) $_item->getId() ?>_title"
|
||||
class="product-title">
|
||||
<?= $block->escapeHtml($_item->getProductOptionByCode('simple_name')?? $_item->getName()) ?>
|
||||
</div>
|
||||
|
||||
|
||||
<?php if ($block->getOrderOptions()): ?>
|
||||
<dl class="item-options">
|
||||
<?php foreach ($block->getOrderOptions() as $_option): ?>
|
||||
<dt><?= $block->escapeHtml($_option['label']) ?>:</dt>
|
||||
<dd>
|
||||
<?php if (isset($_option['custom_view']) && $_option['custom_view']): ?>
|
||||
<?= /* @noEscape */ $block->getCustomizedOptionValue($_option) ?>
|
||||
<?php else: ?>
|
||||
<?php $_option = $block->getFormattedOption($_option['value']); ?>
|
||||
<?php $dots = 'dots' . uniqid(); ?>
|
||||
<?php $id = 'id' . uniqid(); ?>
|
||||
<?= $block->escapeHtml($_option['value'], ['a', 'br']) ?>
|
||||
<?php if (isset($_option['remainder']) && $_option['remainder']): ?>
|
||||
<span id="<?= /* @noEscape */ $dots; ?>"> ...</span>
|
||||
<span id="<?= /* @noEscape */ $id; ?>">
|
||||
<?= $block->escapeHtml($_option['remainder'], ['a']) ?>
|
||||
</span>
|
||||
<?php $scriptString = <<<script
|
||||
require(['prototype'], function() {
|
||||
|
||||
script;
|
||||
$scriptString .= "$('" . /* @noEscape */ $id . "').hide();" . PHP_EOL;
|
||||
$scriptString .= "$('" . /* @noEscape */ $id .
|
||||
"').up().observe('mouseover', function(){ $('" . /* @noEscape */ $id . "').show();});" .
|
||||
PHP_EOL;
|
||||
$scriptString .= "$('" . /* @noEscape */ $id .
|
||||
"').up().observe('mouseover', function(){ $('" . /* @noEscape */ $dots .
|
||||
"').hide();});" . PHP_EOL;
|
||||
$scriptString .= "$('" . /* @noEscape */ $id .
|
||||
"').up().observe('mouseout', function(){ $('" . /* @noEscape */ $id .
|
||||
"').hide();});" . PHP_EOL;
|
||||
$scriptString .= "$('" . /* @noEscape */ $id .
|
||||
"').up().observe('mouseout', function(){ $('" . /* @noEscape */ $dots .
|
||||
"').show();});" . PHP_EOL . "});" . PHP_EOL;
|
||||
?>
|
||||
<?= /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false) ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</dd>
|
||||
<?php endforeach; ?>
|
||||
</dl>
|
||||
<?php endif; ?>
|
||||
<?= $block->escapeHtml($_item->getDescription()) ?>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
?>
|
||||
<?php if ($item = $block->getItem()) : ?>
|
||||
<table class="qty-table">
|
||||
<tr>
|
||||
<th></th>
|
||||
<td><?= (float) $item->getQtyOrdered() ?></td>
|
||||
</tr>
|
||||
|
||||
<?php if ((float)$item->getQtyInvoiced()) : ?>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td><?= (float) $item->getQtyInvoiced() ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ((float)$item->getQtyShipped()) : ?>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td><?= (float) $item->getQtyShipped() ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ((float)$item->getQtyRefunded()) : ?>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td><?= (float) $item->getQtyRefunded() ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ((float)$item->getQtyCanceled()) : ?>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td><?= (float) $item->getQtyCanceled() ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
/** @var \Magento\Sales\Block\Adminhtml\Items\Column\DefaultColumn $block */
|
||||
$_item = $block->getItem();
|
||||
?>
|
||||
<div class="price-excl-tax">
|
||||
<?= /* @noEscape */ $block->displayPrices($_item->getBaseRowTotal(), $_item->getRowTotal()) ?>
|
||||
</div>
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
/** @var \Magento\Sales\Block\Adminhtml\Items\Column\DefaultColumn $block */
|
||||
$_item = $block->getItem();
|
||||
?>
|
||||
<?= /* @noEscape */ $block->displayPrices($block->getBaseTotalAmount($_item), $block->getTotalAmount($_item)) ?>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
?>
|
||||
<?php
|
||||
/** @var \Magento\Sales\Block\Adminhtml\Items\Column\DefaultColumn $block */
|
||||
$_item = $block->getItem();
|
||||
?>
|
||||
<div class="price-excl-tax">
|
||||
<?= /* @noEscape */ $block->displayPrices($_item->getBasePrice(), $_item->getPrice()) ?>
|
||||
</div>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
|
||||
// phpcs:disable Magento2.Templates.ThisInTemplate
|
||||
?>
|
||||
<?= $block->escapeHtml($block->getItem()->getName()) ?>
|
||||
<div><strong><?= $block->escapeHtml(__('SKU')) ?>:</strong> <?= /* @noEscape */ implode('<br />', $this->helper(\Magento\Catalog\Helper\Data::class)->splitSku($block->escapeHtml($block->getItem()->getSku()))) ?></div>
|
||||
<?php if ($block->getOrderOptions()) : ?>
|
||||
<ul class="item-options">
|
||||
<?php foreach ($block->getOrderOptions() as $option) : ?>
|
||||
<li><strong><?= $block->escapeHtml($option['label']) ?>:</strong><br />
|
||||
<?php if (is_array($option['value'])) : ?>
|
||||
<?php foreach ($option['value'] as $item) : ?>
|
||||
<?= $block->getValueHtml($item) ?><br />
|
||||
<?php endforeach; ?>
|
||||
<?php else : ?>
|
||||
<?= $block->escapeHtml($option['value']) ?>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<?= $block->escapeHtml($block->getItem()->getDescription()) ?>
|
||||
Reference in New Issue
Block a user