Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
items.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php if ($block->getQuote()->hasVirtualItems()): ?>
11 <div class="block block-other">
12  <div class="block-title">
13  <strong><?= /* @escapeNotVerified */ __('Other items in your order') ?></strong>
14  <a href="<?= /* @escapeNotVerified */ $block->getVirtualProductEditUrl() ?>" class="action edit"><span><?= /* @escapeNotVerified */ __('Edit Items') ?></span></a>
15  </div>
16  <div class="block-content">
17  <p><?= /* @escapeNotVerified */ __('Shipping is not applicable.') ?></p>
18  <div class="table-wrapper">
19  <table class="items data table" id="unavailable-shipping-table">
20  <caption class="table-caption"><?= /* @escapeNotVerified */ __('Other items in your order') ?></caption>
21  <thead>
22  <tr>
23  <th class="col item" scope="col"><?= /* @escapeNotVerified */ __('Product Name') ?></th>
24  <th class="col qty" scope="col"><?= /* @escapeNotVerified */ __('Qty') ?></th>
25  </tr>
26  </thead>
27  <tbody>
28  <?php foreach ($block->getVirtualQuoteItems() as $_item): ?>
29  <tr>
30  <td class="col item" data-th="<?= $block->escapeHtml(__('Product Name')) ?>"><?= $block->getItemHtml($_item) ?></td>
31  <td class="col qty" data-th="<?= $block->escapeHtml(__('Qty')) ?>"><?= /* @escapeNotVerified */ $_item->getQty() ?></td>
32  </tr>
33  <?php endforeach; ?>
34  </tbody>
35  </table>
36  </div>
37  </div>
38 </div>
39 <?php endif; ?>
if( $block->getQuote() ->hasVirtualItems())( 'Other items in your order') ?></strong >< a hrefforeach( $block->getVirtualQuoteItems() as $_item)(__( 'Product Name')) ?>"><? endforeach
Definition: items.phtml:31
__()
Definition: __.php:13
$block
Definition: block.php:8
$_item
Definition: default.phtml:11
if( $type=='related' &&$canItemsAddToCart)( 'Check items to add to the cart or') ?>< button type endif
Definition: items.phtml:169