SOLUTION: To allow HTML in "Order Status Description"
(1/1)
ThestraL:
Hi,
Before start, I dont know if this was posted before. So, Im sorry if it was. I'm going to share a hack that I did on my store. As i mentioned in the title, its simply allowing users to save HTML data into their order status descriptions. Here is the code:
In ps_order_status.php in line 117 and 151, change the field array which includes order_status_description, for both "add" and "update" functions.
Original:
Code:
$fields = array('order_status_code' => vmGet($d, 'order_status_code' ),
'order_status_name' => vmGet($d, 'order_status_name' ),
'order_status_description' => vmGet($d, 'order_status_description'),
'list_order' => vmRequest::getInt('list_order' )
);
Change to this:
Code:
$fields = array('order_status_code' => vmGet($d, 'order_status_code' ),
'order_status_name' => vmGet($d, 'order_status_name' ),
'order_status_description' => vmGet($d, 'order_status_description' ,'',VMREQUEST_ALLOWRAW),
'list_order' => vmRequest::getInt('list_order' )
);
Hope this helps.
Ps: I'm using J! 1.5.14 + VM 1.1.3
Sorry for my English.
Khan..
ThestraL:
Update: I've found bug within my hack. It allows saving HTML data, but when sending notify e-mail to the customers the data is being decoded. I tried removing html_entity_decode() function inside ps_order.php, but no luck. :( Any help will be appreciated. Btw, I'm sorry that I've posted my topic as a successful hack :(
ThestraL:
Any help? :(
_fD_:
Hello ThestraL
Did you found a solution for this topic?
Please give me a short answer on it.
Best regards, Urs
gtech:
I would love to see that working too. Please update.
Navigation
[0] Message Index