I have added the Custom Variable from Admin > System > Other settings > Custom Variables > Add New Variable, it is possible to add both the Variable HTML Value as well as Variable Plain Value as in the screen shot below

enter image description here

When using the directive {{CustomVar code="CUSTOM_VAR_CODE"}} in Content > Static > Blocks it always retrieves the Variable HTML Value, but there is no way or documentation on how to retrieve the Plain Value using directive {{CustomVar code="CUSTOM_VAR_CODE"}} ?

Please share thoughts

  • 1
    Have you seen the answers here magento.stackexchange.com/questions/124576/… Nov 8, 2019 at 23:57
  • @DominicXigen the solution / answer shared in magento.stackexchange.com/questions/124576/… seems to translate the string, I did tried the solution but it didnot work as expected. In my case I am adding the HTML value as well as Plain value in the fields as in the screen shot in my original question while creating the custom variable, I am looking a way to get the Plain value as by default the directive {{CustomVar code="CUSTOM_VAR_CODE"}} gives HTML value only.... Nov 11, 2019 at 16:43


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.