Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
price.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
10 ?>
11 <?php if ($_products = $block->getProducts()): ?>
12 <p><?= /* @escapeNotVerified */ __('Price change alert! We wanted you to know that prices have changed for these products:') ?></p>
13 <table>
14 <?php ?>
15 <?php foreach ($_products as $_product): ?>
16  <tr>
17  <td class="col photo">
18  <a href="<?= /* @escapeNotVerified */ $_product->getProductUrl() ?>" title="<?= $block->escapeHtml($_product->getName()) ?>" class="product photo">
19  <?= $block->getImage($_product, 'product_thumbnail_image', ['class' => 'photo image'])->toHtml() ?>
20  </a>
21  </td>
22  <td class="col item">
23  <p>
24  <strong class="product name">
25  <a href="<?= /* @escapeNotVerified */ $_product->getProductUrl() ?>"><?= $block->escapeHtml($_product->getName()) ?></a>
26  </strong>
27  </p>
28  <?php if ($shortDescription = $block->getFilteredContent($_product->getShortDescription())): ?>
29  <p><small><?= /* @escapeNotVerified */ $shortDescription ?></small></p>
30  <?php endif; ?>
31  <?= $block->getProductPriceHtml(
32  $_product,
33  \Magento\Catalog\Pricing\Price\FinalPrice::PRICE_CODE,
34  \Magento\Framework\Pricing\Render::ZONE_EMAIL,
35  [
36  'display_label' => __('Price:')
37  ]
38  );
39  ?>
40  <p><small><a href="<?= /* @escapeNotVerified */ $block->getProductUnsubscribeUrl($_product->getId()) ?>"><?= /* @escapeNotVerified */ __('Click here to stop alerts for this product.') ?></a></small></p>
41  </td>
42  </tr>
43 <?php endforeach; ?>
44 </table>
45 <p><a href="<?= /* @escapeNotVerified */ $block->getUnsubscribeUrl() ?>"><?= /* @escapeNotVerified */ __('Unsubscribe from all price alerts') ?></a></p>
46 <?php endif; ?>
endforeach
Definition: price.phtml:40
__()
Definition: __.php:13
$_product
Definition: summary.phtml:12
$block
Definition: block.php:8
endif
Definition: price.phtml:45