Magento: How to display backend configuration settings on external CMS pages (or static blocks)?

I have many prices in the backend for delivery. They can change, and I would like to reflect these changes on the interface page, which can be edited by the client, that is, the CMS page or the static block.

Is there any way {{}} to copy configuration variables from the backend?

+6
source share
2 answers

Use

{{config path="some/config/path"}} 

Where path is the same value that you can use when calling Mage::getStoreConfig() .


NB: This will not calculate the actual delivery, as this must be done on individual orders.

+11
source

Go to Admin-> System-> Permission-> Variables and first add your configuration path to access it in a static block. Because after SUPEE 6788 there are restrictions on the use of all configuration paths. Once you have added it, you can use

{{config path = "some / config / path"}}

+3
source

Source: https://habr.com/ru/post/903579/


All Articles