Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
downloadable.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php ?>
11 <?php $_item = $block->getItem() ?>
12 <?php $_order = $block->getItem()->getOrder() ?>
13 <tr>
14  <td class="item-info has-extra">
15  <p class="product-name"><?= $block->escapeHtml($_item->getName()) ?></p>
16  <p class="sku"><?= /* @escapeNotVerified */ __('SKU') ?>: <?= $block->escapeHtml($block->getSku($_item)) ?></p>
17  <?php if ($block->getItemOptions()): ?>
18  <dl>
19  <?php foreach ($block->getItemOptions() as $option): ?>
20  <dt><strong><em><?= /* @escapeNotVerified */ $option['label'] ?></em></strong></dt>
21  <dd><?= /* @escapeNotVerified */ $option['value'] ?></dd>
22  <?php endforeach; ?>
23  </dl>
24  <?php endif; ?>
25  <?php if ($links = $block->getLinks()->getPurchasedItems()): ?>
26  <dl>
27  <dt><strong><em><?= /* @escapeNotVerified */ $block->getLinksTitle() ?></em></strong></dt>
28  <?php foreach ($links as $link): ?>
29  <dd>
30  <?= $block->escapeHtml($link->getLinkTitle()) ?>&nbsp;
31  (<a href="<?= /* @escapeNotVerified */ $block->getPurchasedLinkUrl($link) ?>"><?= /* @escapeNotVerified */ __('download') ?></a>)
32  </dd>
33  <?php endforeach; ?>
34  </dl>
35  <?php endif; ?>
36  <?= $block->escapeHtml($_item->getDescription()) ?>
37  </td>
38  <td class="item-qty"><?= /* @escapeNotVerified */ $_item->getQty() * 1 ?></td>
39  <td class="item-price">
40  <?= /* @escapeNotVerified */ $block->getItemPrice($_item) ?>
41  </td>
42 </tr>
$_item $_order
__()
Definition: __.php:13
endforeach
$block
Definition: block.php:8
$_count $_index $_prevOptionId if($block->getOrderOptions()|| $_item->getDescription()) foreach( $items as $_item)( $_item) ?><?php $attributes if( $_item->getOrderItem() ->getParentItem())($_prevOptionId !=$attributes['option_id'])</td >< td > & nbsp
Definition: renderer.phtml:33
$_item
Definition: default.phtml:11
if( $_isRequired) echo ' required _required' ?>"> <label classforeach($_links as $_link) ($_linksPurchasedSeparately) ( $_isRequired) endif