File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
view/frontend/templates/order Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -188,4 +188,14 @@ public function getBackUrl()
188188 {
189189 return $ this ->getUrl ('customer/account/ ' );
190190 }
191+
192+ /**
193+ * Get message for no orders.
194+ *
195+ * @return \Magento\Framework\Phrase
196+ */
197+ public function getEmptyOrdersMessage ()
198+ {
199+ return __ ('You have placed no orders. ' );
200+ }
191201}
Original file line number Diff line number Diff line change 5959 <div class="order-products-toolbar toolbar bottom"><?= $ block ->getPagerHtml () ?> </div>
6060 <?php endif ?>
6161<?php else : ?>
62- <div class="message info empty"><span><?= $ block ->escapeHtml (__ ( ' You have placed no orders. ' )) ?> </span></div>
62+ <div class="message info empty"><span><?= $ block ->escapeHtml ($ block -> getEmptyOrdersMessage ( )) ?> </span></div>
6363<?php endif ?>
You can’t perform that action at this time.
0 commit comments