Magento CMS Page/Static Blocks - How to display store name?
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"}}
.
精彩评论