VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Coding Central => Topic started by: Uke on November 11, 2013, 18:30:30 PM

Title: Remove strip_html when saving order status description
Post by: Uke on November 11, 2013, 18:30:30 PM
Virtuemart 2.0.24 - Joomla! 2.5.14

Hello!

I want to use the "order status description" in emails when status changed. The problem is that i want to use html for the order status description, but when it is saved all html will be stript away.

Where i can change this?

I searched many files but i could not find it. Thanks for help.  :-\
Title: Re: Remove strip_html when saving order status description
Post by: GJC Web Design on November 11, 2013, 19:58:15 PM
hmm-
searched every file in VM for order_status_description, virtuemart_orderstates, orderstatus etc but can't find where the html is stripped either

it is posted from the editor but doesn't survive the save..

Notice if you write html directly in the DB it does display.. perhaps that helps..

UPDATE  `gjcwebde_vm2t8`.`jos_virtuemart_orderstates` SET `order_status_description` =  'hello <b>hello</b>' WHERE `jos_virtuemart_orderstates`.`virtuemart_orderstate_id` =6;
Title: Re: Remove strip_html when saving order status description
Post by: Uke on November 12, 2013, 00:58:19 AM
Thank you, i insert the html text with phpmyadmin.

This strip_html after save is not very nice. I cant see why this is necessary.  ::)

But i have now the html text in the db. Thanks!