×

Special Instructions: Supporting Tracking Numbers With WooCommerce

WooCommerce does not handle tracking numbers out of the box, so we create an order header field on the WooCommerce side with the name of bd_tracking_info that holds a json array of tracking objects with shipper, tracking number, and shipping date in the following format:

[
  {
    "shipper": "UPS",
    "shippingMethod": "Ground",
    "trackingNo": "1Z9999999999999999",
    "shipDate": "4/5/2021",
    "trackingURL": "http://wwwapps.ups.com/WebTracking/processInputRequest?HTMLVersion=5.0&sort_by=status&term_warn=yes&Requester=UPSHome&tracknums_displayed=5&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=1Z9999999999999999&InquiryNumber2=&InquiryNumber3=&InquiryNumber4=&InquiryNumber5=&AgreeToTermsAndConditions=yes&track.x=24&track.y=11"
  },
  {
    "shipper": "UPS",
    "shippingMethod": "Three Day",
    "trackingNo": "1Z9999999999999991",
    "shipDate": "4/5/2021",
    "trackingURL": "http://wwwapps.ups.com/WebTracking/processInputRequest?HTMLVersion=5.0&sort_by=status&term_warn=yes&Requester=UPSHome&tracknums_displayed=5&TypeOfInquiryNumber=T&loc=en_US&InquiryNumber1=1Z9999999999999991&InquiryNumber2=&InquiryNumber3=&InquiryNumber4=&InquiryNumber5=&AgreeToTermsAndConditions=yes&track.x=24&track.y=11"
  }
]