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 
11 <?php if ($_item = $block->getItem()): ?>
12  <div class="product-title"><?= /* @escapeNotVerified */ $_item->getName() ?></div>
13  <div class="product-sku-block">
14  <span><?= /* @escapeNotVerified */ __('SKU') ?>:</span>
15  <?= implode('<br />', $this->helper('Magento\Catalog\Helper\Data')->splitSku($block->escapeHtml($block->getSku()))) ?>
16  </div>
17  <?php if ($block->getOrderOptions()): ?>
18  <dl class="item-options">
19  <?php foreach ($block->getOrderOptions() as $_option): ?>
20  <dt><?= $block->escapeHtml($_option['label']) ?>:</dt>
21  <dd>
22  <?php if (isset($_option['custom_view']) && $_option['custom_view']): ?>
23  <?= /* @escapeNotVerified */ $_option['value'] ?>
24  <?php else: ?>
25  <?= $block->truncateString($_option['value'], 55, '', $_remainder) ?>
26  <?php if ($_remainder):?>
27  ... <span id="<?= /* @escapeNotVerified */ $_id = 'id' . uniqid() ?>"><?= /* @escapeNotVerified */ $_remainder ?></span>
28  <script>
29 require(['prototype'], function(){
30 
31  $('<?= /* @escapeNotVerified */ $_id ?>').hide();
32  $('<?= /* @escapeNotVerified */ $_id ?>').up().observe('mouseover', function(){$('<?= /* @escapeNotVerified */ $_id ?>').show();});
33  $('<?= /* @escapeNotVerified */ $_id ?>').up().observe('mouseout', function(){$('<?= /* @escapeNotVerified */ $_id ?>').hide();});
34 
35 });
36 </script>
37  <?php endif;?>
38  <?php endif;?>
39  </dd>
40  <?php endforeach; ?>
41  </dl>
42  <?php endif; ?>
43  <?php if ($block->getLinks()): ?>
44  <dl class="item-options">
45  <dt><?= $block->escapeHtml($block->getLinksTitle()) ?>:</dt>
46  <?php foreach ($block->getLinks()->getPurchasedItems() as $_link): ?>
47  <dd><?= $block->escapeHtml($_link->getLinkTitle()) ?> (<?= /* @escapeNotVerified */ $_link->getNumberOfDownloadsUsed() . ' / ' . ($_link->getNumberOfDownloadsBought() ? $_link->getNumberOfDownloadsBought() : __('U')) ?>)</dd>
48  <?php endforeach; ?>
49  </dl>
50  <?php endif; ?>
51  <?= $block->escapeHtml($_item->getDescription()) ?>
52 <?php endif; ?>
$_option
Definition: checkbox.phtml:11
__()
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
endforeach
Definition: name.phtml:54