开发者

Magento CMS Page/Static Blocks - How to display store name?

开发者 https://www.devze.com 2023-04-08 19:07 出处:网络
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 whic开发者_Python百科h store is being viewed.

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 whic开发者_Python百科h 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.


you can use any method on store object:

{{var store.getFrontendName()}}

search your codebase for further reference:

grep '{{store' app/locale/ -rsn


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号