문제

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?

도움이 되었습니까?

해결책

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

다른 팁

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"}}

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top