Welcome, Guest. Please login or register.
Login with username, password and session length


It's a release candidate! VirtueMart 2.0 RC - the next generation VirtueMart - is available! Read more....

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: [1]   Go Down
Print
Author Topic: SOLUTION: To allow HTML in "Order Status Description"  (Read 2828 times)
ThestraL
Newbie
*
Posts: 10


« on: September 05, 2009, 17:42:22 PM »

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..
« Last Edit: September 05, 2009, 17:50:56 PM by ThestraL » Logged
ThestraL
Newbie
*
Posts: 10


« Reply #1 on: September 05, 2009, 18:30:24 PM »

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. Sad Any help will be appreciated. Btw, I'm sorry that I've posted my topic as a successful hack Sad
Logged
ThestraL
Newbie
*
Posts: 10


« Reply #2 on: September 09, 2009, 10:55:27 AM »

Any help? Sad
Logged
_fD_
Quality&Testing Team
Full Member
*
Posts: 113


WWW
« Reply #3 on: August 18, 2010, 10:44:02 AM »

Hello ThestraL

Did you found a solution for this topic?

Please give me a short answer on it.

Best regards, Urs
Logged

My Virtuemart Hacks (Hacks from hacks normally :-) ):

VM 1.1.x
:: Show lowest Stocks in product.product_inventory.php hacked the version from Toivo Talikka
http://forum.virtuemart.net/index.php?topic=51229 ::

:: Order Email with Order Status Text and Comment ;-)
http://forum.virtuemart.net/index.php?topic=39703.msg124851#msg124851 ::
gtech
Newbie
*
Posts: 37


WWW
« Reply #4 on: June 15, 2011, 08:25:22 AM »

I would love to see that working too. Please update.
Logged

I love what I do  - I do www
Suknie Slubne Suknie Wieczorowe
Pages: [1]   Go Up
Print
Jump to: