Order Tracking
Scottsdale Mint customers can track their orders using the [suma_order_tracking] shortcode provided by the suma-woo-order-tracking plugin. This creates a branded, self-service tracking page that avoids the need to call customer service.
Plugin Referenceโ
Full implementation details: suma-woo-order-tracking Plugin
Customer Tracking Pageโ
The tracking page is a WordPress page with the [suma_order_tracking] shortcode โ typically at /track-your-order/ or /order-tracking/.
Lookup Formโ
Customers can look up their order using:
- Order Number + Email (registered and guest customers)
- Tracking Number (FedEx tracking number)
Tracking Result Displaysโ
After a successful lookup, customers see:
- Order Summary: order number, date, items, total amount
- Payment Status: paid / pending / etc.
- Order Status: current WooCommerce order status (human-readable label)
- Estimated Ship Date (from ACO date meta or scheduled ship date)
- Tracking Number: linked to FedEx tracking page
- Shipment Status: from the last tracking webhook event stored on the order
- Timeline: visual progression of order stages
Tracking Number Storageโ
Tracking numbers from ShipStation are stored on WooCommerce order meta:
| Meta Key | Value |
|---|---|
_tracking_number | FedEx tracking number (string) |
_tracking_provider | fedex (carrier identifier) |
_date_shipped | Unix timestamp of ship date |
Tracking data arrives via the ShipStation webhook:
POST /wp-json/suma/v1/shipstation-webhook
FedEx Integrationโ
When a tracking number is stored, the tracking page can optionally fetch live FedEx tracking status. The \Suma\OrderTracking\Fedex class:
- Calls the FedEx Tracking API with the tracking number
- Returns shipment status, last scan location, and estimated delivery date
- Caches the result in Redis for 15 minutes to avoid excessive API calls
FedEx tracking data is fetch-on-demand (customer visits their tracking page) โ it is not proactively fetched or stored.
Admin: Adding Tracking Numbers Manuallyโ
Admin users can add or update tracking numbers directly from the WooCommerce order screen:
- Open WooCommerce โ Orders โ [Order]
- Scroll to the Order Tracking metabox
- Enter FedEx tracking number
- Click Save Tracking
- The customer's tracking confirmation email is re-sent (optional checkbox)
Email Notificationsโ
When a tracking number is added (via ShipStation webhook or admin manual entry), the \Suma\Emails\ShippingConfirmation email is automatically sent:
- FedEx tracking number (linked)
- Estimated delivery date
- Items in the shipment
- Link to the order tracking page
My Account Integrationโ
Logged-in customers can also find tracking information in My Account โ Orders โ [View Order], where:
- Full tracking history is displayed
- The FedEx tracking link is visible
- Current order status is shown with the full custom status label
ShipStation Webhookโ
ShipStation sends tracking updates to:
POST /wp-json/suma/v1/shipstation-webhook
Payload includes:
- Order number
- Tracking number
- Carrier (FedEx)
- Ship date
The endpoint is secured with a shared secret webhook token.