Jump to content

Put HTML code to variable


Recommended Posts

Hi!

I add new field to my store.tpl, i can add some text in this, but i need to add some html code, just like "<a href="sdfdfd">blabla</a>".

Its work If i add this code in my database, but in admin panel i have only "blabla" after save.

Link to comment
Share on other sites

you need to use Configuration object with additional parameter:

take a look on update value function:

public static function updateValue($key, $values, $html = false, $id_shop_group = null, $id_shop = null)

 

 

example:
 
Configuration::updateValue("myvariable","<strong>value of my variable</strong>",true);

hope that this is what you're looking for

Link to comment
Share on other sites

×
×
  • Create New...