Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
order_comments.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php ?>
11 
12 <?php $_history = $block->getOrder()->getVisibleStatusHistory() ?>
13 <?php if (count($_history)): ?>
14  <div class="block block-order-details-comments">
15  <div class="block-title"><strong><?= /* @escapeNotVerified */ __('About Your Order') ?></strong></div>
16  <div class="block-content">
17  <dl class="order-comments">
18  <?php foreach ($_history as $_historyItem): ?>
19  <dt class="comment-date"><?= /* @escapeNotVerified */ $block->formatDate($_historyItem->getCreatedAt(), \IntlDateFormatter::MEDIUM, true) ?></dt>
20  <dd class="comment-content"><?= $block->escapeHtml($_historyItem->getComment()) ?></dd>
21  <?php endforeach; ?>
22  </dl>
23 
24  </div>
25  </div>
26 <?php endif; ?>
__()
Definition: __.php:13
$block
Definition: block.php:8
$_historyif(count( $_history))( 'About Your Order') ?></strong ></div >< div class endforeach