如何更改Magento演示商店公告的文本

Magento的“演示商店通知”的默认文本为:

This is a demo store. Any orders placed through this store will not be honored or fulfilled.

要更改Magento演示商店通知的文本,您将必须手动编辑主题文件之一中的文本。 包含文本的文件的路径可能会因主题而异,但是对于默认主题,路径为:

#app/design/frontend/base/default/template/page/html/notices.phtml
/Users/ysq/work/chuwu/ma_sinrato_test/vendor/magento/module-theme/view/frontend/templates/html/notices.phtml

这意味着您需要使用喜欢的文本编辑器来编辑notices.phtml文件

notices.phtml 路径

您需要使用要用作演示商店通知的新文本来更改粗体文本。 例如,如果要将文本更改为“Demo store, no orders will be processed.”,则不会处理任何订单。 例如,您需要将以上行更改为:

<?php echo $this->__(‘Demo store, no orders will be processed.‘) ?>