' . __( 'Please enter a valid order ID', 'woocommerce' ) . '
'; } elseif ( ! $order_email ) { echo '' . __( 'Please enter a valid order email', 'woocommerce' ) . '
'; } else { $order = new WC_Order( apply_filters( 'woocommerce_shortcode_order_tracking_order_id', $order_id ) ); if ( $order->id && $order_email ) { if ( strtolower( $order->billing_email ) == strtolower( $order_email ) ) { do_action( 'woocommerce_track_order', $order->id ); wc_get_template( 'order/tracking.php', array( 'order' => $order ) ); return; } } else { echo '' . sprintf( __( 'Sorry, we could not find that order id in our database.', 'woocommerce' ), get_permalink($post->ID ) ) . '
'; } } } wc_get_template( 'order/form-tracking.php' ); } }