Change extra fields names
-
Hello,
I am trying to figure out a way to change the names of “Additional Order Fields”.
I have something like xvbrd_ord_tim and i would like to make it humanly redable like Order time.
I found this code that works in changing the additional order fields:
global $wpdb;
$querystr = $wpdb->prepare( “UPDATE $wpdb->postmeta SET meta_key = ‘%s’ WHERE meta_key = ‘%s'”,’new’,’old’);
$result = $wpdb->get_results ( $querystr );but it does not work if the order gets autoprinted because my guess is that it fires before that snippet even runs. It displays the default strings.
Now if we go inside the order page and press the newly added print order button then it works as intended and prints the new (changed) fields.Is there a way to change the strings to something that a employee wont think the printer is broken?
Regards
- The topic ‘Change extra fields names’ is closed to new replies.