Magento CMS页面/静态块 - 如何显示商店名称? [英] Magento CMS Page/Static Blocks - How to display store name?
问题描述
我有多个Magento CMS网页和静态块,使用变量{{store url =}}根据正在查看哪个商店在某些文本中显示商店网址。
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.
我也想显示商店名称。是否有一个等价的,将显示商店名称,像{{store name =}}? ({{store name =}}无效btw)
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)
我无法访问.php文件想知道这是否可能没有访问。如果没有,那么我可以请求更改.php,我只需要知道要请求。
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.
推荐答案
对store对象的任何方法:
you can use any method on store object:
{{var store.getFrontendName()}}
搜索您的代码库以进一步参考:
search your codebase for further reference:
grep '{{store' app/locale/ -rsn
这篇关于Magento CMS页面/静态块 - 如何显示商店名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!