The bug with sortable admin column (Delivery Details)
-
Hello. Thanks for this nice plugin.
I noticed that a problem with sortable “Delivery Details” column on Orders page at the admin panel. After administrator updates the delivery/pickup date manually on edit order page, it doesn’t make any change when sort the orders by Delivery Details.
Because the sorting function depends on “delivery_details_timestamp” meta values of orders. And when order dates been changed manually by admin, this meta value is not been updated.
I’ve fixed this problem with adding these following to the class-coderockz-woo-delivery-admin.php file. And thought that maybe you want to know this and update your plugin.
after line 5909 and again after 5937:
update_post_meta( $order_id, 'delivery_details_timestamp', strtotime($en_date) );
after line 5912 and again after 5940:
delete_post_meta($order_id, 'delivery_details_timestamp');
Finally, now when sort the orders by delivery details, it sorts them correctly.
- The topic ‘The bug with sortable admin column (Delivery Details)’ is closed to new replies.