Magento CMS Page/Static Blocks - How to display st

2019-08-12 04:20发布

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.

2条回答
手持菜刀,她持情操
2楼-- · 2019-08-12 04:45

Try {{config path="general/store_information/name"}}.

查看更多
Animai°情兽
3楼-- · 2019-08-12 04:46

you can use any method on store object:

{{var store.getFrontendName()}}

search your codebase for further reference:

grep '{{store' app/locale/ -rsn
查看更多
登录 后发表回答