Created
June 4, 2020 02:51
-
-
Save rajeshsingh520/1258b1ff54939cbb7bf89ebb13d20190 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| say $order_id has the order or then you can get the detail using the below code | |
| if you have WC_order object in say $order varaible you can get order id like this | |
| $order_id = $order->get_id() | |
| */ | |
| $type = get_post_meta( $order_id, 'pi_delivery_type', true ); // delivery type 'delivery' or 'pickup' | |
| $date = get_post_meta( $order_id, 'pi_system_delivery_date', true ); // date in yyyy/mm/dd format | |
| $time = get_post_meta( $order_id, 'pi_delivery_time', true ); // delivery time | |
| $location = get_post_meta( $order_id, 'pickup_location', true ); // pickup location |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment