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()
188
188
{
189
189
return $ this ->getUrl ('customer/account/ ' );
190
190
}
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
+ }
191
201
}
Original file line number Diff line number Diff line change 59
59
<div class="order-products-toolbar toolbar bottom"><?= $ block ->getPagerHtml () ?> </div>
60
60
<?php endif ?>
61
61
<?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>
63
63
<?php endif ?>
You can’t perform that action at this time.
0 commit comments