|
@@ -51,7 +51,7 @@ class Bulk_Actions_Manager {
|
|
|
UtilsLog::log('Setting status Order #' . $post_id . ' to "to-print"');
|
|
UtilsLog::log('Setting status Order #' . $post_id . ' to "to-print"');
|
|
|
$order = wc_get_order($post_id);
|
|
$order = wc_get_order($post_id);
|
|
|
if ($order) {
|
|
if ($order) {
|
|
|
- $order->update_status('to-print');
|
|
|
|
|
|
|
+ $order->update_status('wc-to-print');
|
|
|
update_post_meta($post_id, 'to-print-date', current_time('mysql'));
|
|
update_post_meta($post_id, 'to-print-date', current_time('mysql'));
|
|
|
UtilsLog::log('Order #' . $post_id . ' marked as "to-print"');
|
|
UtilsLog::log('Order #' . $post_id . ' marked as "to-print"');
|
|
|
}
|
|
}
|
|
@@ -67,7 +67,7 @@ class Bulk_Actions_Manager {
|
|
|
foreach ($post_ids as $post_id) {
|
|
foreach ($post_ids as $post_id) {
|
|
|
$order = wc_get_order($post_id);
|
|
$order = wc_get_order($post_id);
|
|
|
if ($order) {
|
|
if ($order) {
|
|
|
- $order->update_status('in-print');
|
|
|
|
|
|
|
+ $order->update_status('wc-in-print');
|
|
|
update_post_meta($post_id, 'in-print-date', current_time('mysql'));
|
|
update_post_meta($post_id, 'in-print-date', current_time('mysql'));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|