Skip to content

Order fulfillment and tracking

The Order fulfillment statuses module in Polski PRO adds Packed, Shipped and Delivered order statuses to WooCommerce, a carrier and tracking number field on each order, and a customer email each time an order enters one of those statuses. It is off by default; enable it under Polski > Modules. Live carrier status needs that carrier's integration configured.

Once the module is enabled, orders can move through the following statuses:

Pending > Processing > Packed > Shipped > Delivered > Completed
Status Slug Badge color Text shown to the customer
Packed wc-packed Blue Your order is packed and waiting for handover to the carrier.
Shipped wc-shipped Yellow Your parcel is on the way. Use the tracking link below for the latest updates.
Delivered wc-delivered Green The shipment has been marked as delivered.

The statuses are inserted right after "Processing" in the WooCommerce status list. A Packed order still counts as payable, so the customer can pay for it from My Account (for example a cash on delivery order).

  1. Go to Polski > Modules
  2. Enable the Order fulfillment statuses module (group Checkout and Orders)

The module has no settings of its own. The statuses, tracking field and emails work as soon as it is on.

In the order editor, below the shipping address, a Shipment Tracking section appears:

Field Order meta key Description
Carrier _polski_shipping_carrier InPost, DPD, DHL, Poczta Polska or Other
Tracking number _polski_tracking_number Waybill number
Tracking URL _polski_tracking_url Generated from carrier and number if left empty

When you save the order, a URL you typed yourself is kept as is. If the URL field is empty, the module builds one from the carrier and tracking number. The "Other" carrier has no URL pattern, so enter the link by hand.

Carrier URL format
InPost https://inpost.pl/sledzenie-przesylek?number={number}
DPD https://tracktrace.dpd.com.pl/findPackage?q={number}&typ=PARCEL_REFERENCE_NUMBER
DHL https://www.dhl.com/pl-pl/home/sledzenie-przesylek.html?tracking-id={number}
Poczta Polska https://emonitoring.poczta-polska.pl/?numer={number}

For InPost, DPD, DHL and Poczta Polska the module asks the carrier for the current parcel status when that carrier's Polski PRO integration is available (for InPost: enabled with an API token saved, see InPost shipping). An answer with a status or events is cached for 10 minutes; an empty or failed answer is not cached, so the next render asks again. The order editor shows a "Live preview" with a Refresh live tracking button that clears the cache and asks again. When the carrier returns events, up to 8 of them appear as "Shipment history" with date and location.

Place What is shown
Orders list (admin) A "Tracking" column after the status: carrier, tracking number, live status and a "Track" link
My Account, Orders A "Track shipment" button when a tracking URL exists
Order details page A "Shipment Tracking" box with status, carrier, number, link and shipment history
Customer WooCommerce emails The same box after the order table (not added to admin emails)

The box shows only when the order has a tracking number or a tracking URL.

When an order enters Packed, Shipped or Delivered, the module sends a plain text email to the billing email address with wp_mail():

Status Subject
Packed Your order has been packed
Shipped Your order has been shipped
Delivered Your order has been delivered

The message contains the order number, the new status and a link to the order in My Account. Carrier, tracking number and tracking link are added only when a tracking number is set. No email goes out if the order has no billing email.

The orders list provides bulk actions:

  • Change status to Packed
  • Change status to Shipped
  • Change status to Delivered

Select multiple orders and choose an action from the dropdown menu.

The module registers its column and bulk actions for both WooCommerce HPOS (Custom Order Tables) and classic post-based orders. Live tracking uses the Polski PRO carrier integrations for InPost, DPD, DHL and Poczta Polska.

Can I edit the Packed, Shipped and Delivered emails in WooCommerce > Settings > Emails?

Section titled "Can I edit the Packed, Shipped and Delivered emails in WooCommerce > Settings > Emails?"

No. They are sent directly with wp_mail() as fixed plain text, so they are not in the WooCommerce email list. The tracking box added to standard customer emails uses your WooCommerce email template.

Section titled "Why does the order show only the link and no carrier status?"

Live status needs the matching Polski PRO carrier integration enabled with its credentials. Without it, or with the "Other" carrier, the module shows the tracking number and link only.

Do I have to fill in the tracking URL?

Section titled "Do I have to fill in the tracking URL?"

No. Pick InPost, DPD, DHL or Poczta Polska and enter the number; the URL is built on save. Fill it in only for "Other" or to replace the generated link.

Is there a filter to change the tracking URL patterns?

Section titled "Is there a filter to change the tracking URL patterns?"

No. The patterns are fixed in the module. To use a different link, type it into the Tracking URL field or write the _polski_tracking_url order meta from your own code.