convert ‘general/store_information/name’ into name of store in the middle of a string? 

Post By:user_61043 | Reply

 

So, I am looking for a function that hopefully exists.  I\\\’ve been searching through docs for a while to no avail.

Assuming my store name is STORE_NAME

And that my input string\\\’s current value is :

$input = \\\’XYZ_\\\’ . {{config path=\\\"general/store_information/name\\\"}} . \\\’_123\\\’;

$output = CanYouHelpMeWithThisFunction($input);

// DESIRED value of $output would be \\\’XYZ_STORE_NAME_123\\\’

Any advice would be appreciated

user_61043Mon, 19 May 2014

 

Found it.  Maybe this will help someone one day.

$output Mage::helper('cms')->getPageTemplateProcessor()->filter($input);

`Reply Or Comment!
Please LogIn to Reply!