ID; $courier = get_post_meta( $order_id, '_tabblin_courier_name', true ); $tracking = get_post_meta( $order_id, '_tabblin_tracking_number', true ); $link = get_post_meta( $order_id, '_tabblin_tracking_link', true ); wp_nonce_field( 'tabblin_save_tracking', 'tabblin_tracking_nonce' ); ?>




get_billing_email() ) !== strtolower( $order_email ) ) { $error = "We couldn't find an order matching that order number and email. Please double-check and try again."; } else { $status = wc_get_order_status_name( $order->get_status() ); $date_created = $order->get_date_created() ? $order->get_date_created()->date( 'd M Y' ) : ''; $total = $order->get_formatted_order_total(); $courier = get_post_meta( $order->get_id(), '_tabblin_courier_name', true ); $tracking_no = get_post_meta( $order->get_id(), '_tabblin_tracking_number', true ); $tracking_url = get_post_meta( $order->get_id(), '_tabblin_tracking_link', true ); $items_html = ''; foreach ( $order->get_items() as $item ) { $items_html .= '
  • ' . esc_html( $item->get_name() ) . ' × ' . esc_html( $item->get_quantity() ) . '
  • '; } $result_html .= '
    '; $result_html .= '' . esc_html( $status ) . ''; $result_html .= '

    Order #' . esc_html( $order->get_order_number() ) . '

    '; $result_html .= '

    Placed on ' . esc_html( $date_created ) . ' · Total: ' . $total . '

    '; $result_html .= '
      ' . $items_html . '
    '; if ( $tracking_no ) { $result_html .= '
    '; $result_html .= 'COURIER

    ' . esc_html( $courier ?: 'N/A' ) . '

    '; $result_html .= 'TRACKING NUMBER

    ' . esc_html( $tracking_no ) . '

    '; if ( $tracking_url ) { $result_html .= 'Track Shipment'; } $result_html .= '
    '; } else { $result_html .= '

    Your order is being prepared. Tracking details will appear here once it ships.

    '; } $result_html .= '
    '; } } ?>

    Track Your Order

    Enter your order number and the email used at checkout.

    Scroll to Top