How to Automatically Create Courier Labels for WooCommerce Orders

This article explains how to assign a courier service automatically to WooCommerce orders and generate their shipping labels.

 

When a customer selects a courier delivery method at checkout, a rule assigns the carrier and service you chose. If all required shipment data is available, Swotzy generates the label.

For how rules are structured and how rule priority works, see What Are Store Automation Rules?

Result

Once you've completed these steps:

  • Orders with your courier delivery method receive a carrier and service automatically
  • Shipping labels are generated automatically when all required data is available
  • The rule appears in your store's Rules list, where you can reorder, duplicate, deactivate, or delete it

Before You Start

Make sure that:

  • Your WooCommerce store is connected in Integrations Stores
  • All products in your WooCommerce admin panel have a weight
  • Products shipped internationally have an HS code
  • You have read What Are Store Automation Rules?

If your store is not connected yet, see How to integrate WooCommerce with Swotzy

Step 1 — Add a courier delivery method in WooCommerce

Skip this step if your checkout already offers courier delivery.

  1. Log in to your WordPress admin panel
  2. Go to WooCommerce Settings
  3. Open the Shipping tab
  4. Click Edit next to an existing shipping zone, for example Latvia, or click Add Zone to create one
  5. Add a shipping method with a name, a price, and an optional short description
  6. Click Done

The method name appears in your checkout. You need its exact name in the next step.

Step 2 — Create the courier rule in Swotzy

  1. Log in to your Swotzy account at app.swotzy.com
  2. Go to Integrations Stores
  3. Click Manage on your WooCommerce store
  4. In the Rules section, click Add order import rule under Order Import
  5. Select Set carrier + service from the action list. Use the search field to find it
  6. Select the carrier in the Carrier field
  7. Select the service in the Service field
  8. Click Add Condition
  9. Select Shipping method in the first dropdown
  10. Select is in the second dropdown
  11. Paste the exact shipping method name from your checkout into the third field
  12. Enter a name in Rule name (optional) to identify the rule in your list
  13. Leave Status set to Active
  14. Click Create Rule

To cover several courier methods with one rule, select the contains operator and enter a word that all the method names share.

Rules are evaluated from bottom to top, and the first matching rule wins per group. The rule at the bottom of the list has the highest priority. New rules are added at the bottom automatically. Place your most specific rules at the bottom and broader catch-all rules above them.

This rule always assigns the same carrier and service. To have Swotzy compare carriers and pick the cheapest or fastest service for each order, see How to Automatically Select a Carrier and Service

Step 3 — Complete the package data

A label is generated only when every shipment has a weight and dimensions. Set them automatically if needed:

For international shipments without an HS code in WooCommerce, see How to Automatically Set an HS Code

For a full list of the data a label needs, see How to Automate Shipment Creation

What Happens After Setup

When a customer selects your courier delivery method:

  1. The order is imported into Shipment Overview within 15 minutes
  2. The rule assigns the carrier and service
  3. If all required data is present, Swotzy generates the label and sets the status to Ready

If any data is missing, Swotzy doesn't generate a label. The shipment gets the status Action Needed and waits for you to fill in the rest.

Need Assistance?

If you experience any issues while setting up your rule, our support team is here to help.

Contact us at support@swotzy.com

Add comment

Please sign in to leave a comment.