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 /* @var \Magento\Wishlist\Block\Share\Email\Items $block */
10 ?>
11 <?php $l = $block->getWishlistItemsCount() ?>
12 <div>
13  <table>
14  <tr>
15  <?php $i = 0;
16  foreach ($block->getWishlistItems() as $item): $i++ ?>
17  <?php /* @var $item \Magento\Wishlist\Model\Item */ ?>
18  <?php /* @var $_product \Magento\Catalog\Model\Product */ ?>
19  <?php $_product = $item->getProduct(); ?>
20  <td class="col product">
21  <p>
22  <a href="<?= $block->escapeUrl($block->getProductUrl($_product)) ?>">
23  <?= /* @noEscape */ $block->getImage($_product, 'product_small_image')->toHtml() ?>
24  </a>
25  </p>
26 
27  <p>
28  <a href="<?= $block->escapeUrl($block->getProductUrl($_product)) ?>">
29  <strong><?= $block->escapeHtml($_product->getName()) ?></strong>
30  </a>
31  </p>
32  <?php if ($block->hasDescription($item)): ?>
33  <p>
34  <strong><?= $block->escapeHtml(__('Comment')) ?>:</strong>
35  <br/><?= /* @noEscape */ $block->getEscapedDescription($item) ?>
36  </p>
37  <?php endif; ?>
38  <p>
39  <a href="<?= $block->escapeUrl($block->getProductUrl($_product)) ?>">
40  <?= $block->escapeHtml(__('View Product')) ?>
41  </a>
42  </p>
43  </td>
44  <?php if ($i % 3 != 0): ?>
45  <td></td>
46  <?php else: ?>
47  </tr>
48  <tr>
49  <td colspan="5">&nbsp;</td>
50  </tr>
51  <?php if ($i < $l): ?>
52  <tr>
53  <?php endif ?>
54  <?php endif ?>
55  <?php endforeach ?>
56  </table>
57 </div>
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
$_product
Definition: summary.phtml:12
$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
if( $type=='related' &&$canItemsAddToCart)( 'Check items to add to the cart or') ?>< button type endif
Definition: items.phtml:169
$i
Definition: items.phtml:46
if(isset($opts->o)) if(! $usingStdout) $l