Created a variable. On the CMS pages displayed without a problem, but in categories and subcategories does not want to completely. How to display a variable in categories?

    1 answer 1

    These variables are specifically designed to dynamically add data to static pages, blocks, and letter templates.

    To work with such variables anywhere else you need:

    Suppose we have some text "bla bla {{custVar}}"

    $cutVar = array('custVar' => 'текст катомной переменной'); $text = "бла бла {{custVar}}" $formater = new Varien_Filter_Template(); $formater->setVariables($cutVar); var_dump($formater->filter($text)); 

    This will return the "blah blah text of the catom variable"