wpsc_user_log_after_order_status

Located in: wpsc-user_log_functions.php

Functions that call this hook: wpsc_user_details()
Arguments Accepted: $purchase
Version Introduced: 3.8

Description: This hook is triggered right after the order status text on the my account page (but before the order details) You could use this hook to output any other information you have collected about the purchase that is currently not displayed.

Code in context:
[php firstline=”448″ highlight=”460″]
echo "</tr>nr";
echo "<tr>nr";
echo " <td colspan=’$col_count’ class=’details’>nr";
echo " <div id=’status_box_" . $purchase[‘id’] . "’ class=’order_status’ style="$status_style">nr";
echo " <div>nr";

//order status code lies here
//check what $purchase[‘processed’] reflects in the $wpsc_purchlog_statuses array
$status_name = wpsc_find_purchlog_status_name( $purchase[‘processed’] );
echo " <strong class=’form_group’>" . __( ‘Order Status’, ‘wpsc’ ) . ":</strong>nr";
echo $status_name . "<br /><br />";

do_action( ‘wpsc_user_log_after_order_status’, $purchase );

//written by allen
$usps_id = get_option( ‘usps_user_id’ );
if ( $usps_id != null ) {
$XML1 = "<TrackFieldRequest USERID="$usps_id"><TrackID ID="" . $purchase[‘track_id’] . ""></TrackID></TrackFieldRequest>";
$ch = curl_init();
curl_setopt( $ch, CURLOPT_URL, "http://secure.shippingapis.com/ShippingAPITest.dll?" );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $ch, CURLOPT_POST, 1 );
curl_setopt( $ch, CURLOPT_HEADER, 0 );
$postdata = "API=TrackV2&XML=" . $XML1;
curl_setopt( $ch, CURLOPT_POSTFIELDS, $postdata );
[/php]