1

Is it possible to output the store name using double curly brace syntax?

For example, I know I can output the contact page's URL using:

<a href="{{store url="contact"}}">Contact Luma</a>

Is there a way I can do something like this:

<p>Hi, welcome to {{store name}}! We hope you like it here.</p>
3

We can get store name like this:

In Phtml:

$storeName = Mage::app()->getStore()->getName();

In Cms Page:

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

Don't forget to configure your store name from below Configuration path:

admin->system->configuration, general->store information select the store in top left corner and set the name of your store that you want to show.

Hope this helps.

| improve this answer | |
  • Thanks so much for the explanation. I hadn't set the store name, that's why I was getting a blank. I had to go to Dashboard, Stores, Settings, Configuration, General, Store Information, Store Name, enter the store's name, Save Config. – GTS Joe Oct 26 '18 at 15:08
0

Did you try this?

{{config path="general/store_information/name"}}
| improve this answer | |
  • Yes, I tried that and it didn't work. I'm trying to add the text in a CMS page (not a PHP template). – GTS Joe Oct 25 '18 at 23:40
  • your other changes are applying to CMS page ? because @Rafael answer should work. – Pawan Oct 26 '18 at 2:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.