Magento CMS 页面/静态块 - 如何显示商店名称?
我有许多 Magento CMS 页面和静态块,它们使用变量 {{store url=""}} 在某些文本中显示商店 url 地址,具体取决于正在查看的商店。
我还想显示商店名称。是否有可以显示商店名称的等效项,例如 {{store name=""}}? (顺便说一句,{{store name=""}} 不起作用)
我无权访问 .php 文件,因此想知道在没有访问权限的情况下是否可以这样做。如果没有,那么我可以请求对 .php 进行更改,我只需要知道要请求什么。
I have number of Magento CMS pages and static blocks which use the variable {{store url=""}} to display the store url address in some text depending which store is being viewed.
I would like to also display the store name. Is there an equivalent which would display the store name, something like {{store name=""}}? ({{store name=""}} doesn't work btw)
I don't have access to the .php files so would like to know if this is possible without access. If not, then I can request changes to the .php, I just need to know what to request.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以在商店对象上使用任何方法:
搜索您的代码库以获取进一步参考:
you can use any method on store object:
search your codebase for further reference:
尝试
{{config path="general/store_information/name"}}
。Try
{{config path="general/store_information/name"}}
.