Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
name.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php
14 ?>
15 
16 <?php if ($_item = $block->getItem()): ?>
17  <div id="order_item_<?= $block->escapeHtml($_item->getId()) ?>_title"
18  class="product-title">
19  <?= $block->escapeHtml($_item->getName()) ?>
20  </div>
21  <div class="product-sku-block">
22  <span><?= $block->escapeHtml(__('SKU'))?>:</span> <?= implode('<br />', $this->helper('Magento\Catalog\Helper\Data')->splitSku($block->escapeHtml($block->getSku()))) ?>
23  </div>
24 
25  <?php if ($block->getOrderOptions()): ?>
26  <dl class="item-options">
27  <?php foreach ($block->getOrderOptions() as $_option): ?>
28  <dt><?= $block->escapeHtml($_option['label']) ?>:</dt>
29  <dd>
30  <?php if (isset($_option['custom_view']) && $_option['custom_view']): ?>
31  <?= /* @escapeNotVerified */ $block->getCustomizedOptionValue($_option) ?>
32  <?php else: ?>
33  <?php $_option = $block->getFormattedOption($_option['value']); ?>
34  <?php $dots = 'dots' . uniqid(); ?>
35  <?= $block->escapeHtml($_option['value']) ?><?php if (isset($_option['remainder']) && $_option['remainder']): ?> <span id="<?= /* @noEscape */ $dots; ?>"> ...</span>
36  <?php $id = 'id' . uniqid(); ?>
37  <span id="<?= /* @noEscape */ $id; ?>"><?= $block->escapeHtml($_option['remainder']) ?></span>
38  <script>
39  require(['prototype'], function() {
40  $('<?= /* @noEscape */ $id; ?>').hide();
41  $('<?= /* @noEscape */ $id; ?>').up().observe('mouseover', function(){$('<?= /* @noEscape */ $id; ?>').show();});
42  $('<?= /* @noEscape */ $id; ?>').up().observe('mouseover', function(){$('<?= /* @noEscape */ $dots; ?>').hide();});
43  $('<?= /* @noEscape */ $id; ?>').up().observe('mouseout', function(){$('<?= /* @noEscape */ $id; ?>').hide();});
44  $('<?= /* @noEscape */ $id; ?>').up().observe('mouseout', function(){$('<?= /* @noEscape */ $dots; ?>').show();});
45  });
46  </script>
47  <?php endif; ?>
48  <?php endif; ?>
49  </dd>
50  <?php endforeach; ?>
51  </dl>
52  <?php endif; ?>
53  <?= $block->escapeHtml($_item->getDescription()) ?>
54 <?php endif; ?>
$_option
Definition: checkbox.phtml:11
$dots
Definition: name.phtml:34
__()
Definition: __.php:13
$block
Definition: block.php:8
$_item
Definition: default.phtml:11
if(( $prefix||$middle||$suffix) &&! $block->getNoWrap())( $block->getContainerClassName()) ?>"> <label for endif
Definition: name.phtml:29
if(isset($_option['remainder']) && $_option['remainder']) $id
Definition: name.phtml:36
endforeach
Definition: name.phtml:54