Question

I have eight static block list. Client want to change some part of string in these static block according the current month. I can achieve this though the code, but client have access only of backend, so is there any way to change the content in all static block from the single place without editing the code?

Was it helpful?

Solution

Please find Below answer help to you.

Goto System->Custom Variables then Create New Variable like this https://prnt.sc/hnv598 then Goto CMS Block write {{customVar code=Test}} or insert variables.

Thanks

OTHER TIPS

As I understand your question, your client want to add dynamic date somewhere in static block. It is not possible out of the box, you should create some kind of reusable widget which your client might use to achieve his goals and which will wrap your logic in reusable element.

Edit: It is not mentioned in description but in the title that you want to get system config value in block; if that is really the case then you can do:

{{config path="system/config/path"}}

For example: {{config path="general/store_information/country_id"}}

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top