How do I add CMS codes to my Magento themes?

wordpress5
6 Posts
wordpress5 posted this 02 February 2016

So I have just recently started using Themler for creating Magento themes for my customers.
And I wish to use the store information already available in Magento through CMS codes. Normally I would add something like the following:

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

But it is only showing up in the footer as plain text. How can I use such CMS codes without adding directly to the theme files after publishing?

I have also tried adding something like this without any results:

<?php echo="" mage::getstoreconfig('general/store_information/phone');=""?>

So I have just recently started using Themler for creating Magento themes for my customers. And I wish to use the store information already available in Magento through CMS codes. Normally I would add something like the following: {{config path="general/store_information/phone"}} But it is only showing up in the footer as plain text. How can I use such CMS codes without adding directly to the theme files after publishing? I have also tried adding something like this without any results: <?php echo="" mage::getstoreconfig('general/store_information/phone');=""?>
Vote to pay developers attention to this features or issue.
7 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 02 February 2016

Hello,

The CMS Code can be added with the help of the CMS Code control to a certain template.
1. Open a template the information should be output on. Insert the CMS Code control to any place on page: Insert >> Controls >> More >> CMS Code.
2. Open CMS Code tab, click Edit CMS CODE and enter the code there in php format.

Sincerely,
Nettie,
BillionDigital Team

Hello, The CMS Code can be added with the help of the CMS Code control to a certain template. 1. Open a template the information should be output on. Insert the CMS Code control to any place on page: Insert >> Controls >> More >> CMS Code. 2. Open CMS Code tab, click Edit CMS CODE and enter the code there in php format. Sincerely, Nettie, BillionDigital Team
wordpress5
6 Posts
wordpress5 posted this 02 February 2016

This sadly does not seem to work, do you have an example so I can see what I am doing wrong?
As previously mentioned I have tried both a regular CMS code and the propper PHP way (although it seems to have been malformed by the code tag in this form).

I have added some screenshots of what I have tried to add in the CMS Code control.

This sadly does not seem to work, do you have an example so I can see what I am doing wrong? As previously mentioned I have tried both a regular CMS code and the propper PHP way (although it seems to have been malformed by the code tag in this form). I have added some screenshots of what I have tried to add in the CMS Code control.
wordpress5
6 Posts
wordpress5 posted this 02 February 2016

Hi,

Nevermind, I seem to have had a typo. It works now.

Hi, Nevermind, I seem to have had a typo. It works now.
Support Team
Support Team posted this 02 February 2016

Bjørn, you are welcome. Please feel free to contact us in any other case.

Sincerely,
Nettie,
BillionDigital Team

Bjørn, you are welcome. Please feel free to contact us in any other case. Sincerely, Nettie, BillionDigital Team
ntmduyen
2 Posts
ntmduyen posted this 2 weeks ago

Hi ,
I have the same problem, could you tell me how to fix it step by step

thanks
Duyen

Hi , I have the same problem, could you tell me how to fix it step by step thanks Duyen
ntmduyen
2 Posts
ntmduyen posted this 2 weeks ago

I have create the CMS code but it does not show in the front end, please help me how to show it in the front end

Thanks

I have create the CMS code but it does not show in the front end, please help me how to show it in the front end Thanks
Support Team
Support Team posted this 2 weeks ago

ntmduyen,

Could you please create a new private topic and provide more details about your custom code (what exactly code you're using, what it should do and where it should be added in default magento theme).

Thank you,
Olivia

ntmduyen, Could you please create a new private topic and provide more details about your custom code (what exactly code you're using, what it should do and where it should be added in default magento theme). Thank you, Olivia
You must log in or register to leave comments