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.
- Log in to your WordPress admin panel
- Go to WooCommerce Settings
- Open the Shipping tab
- Click Edit next to an existing shipping zone, for example Latvia, or click Add Zone to create one
- Add a shipping method with a name, a price, and an optional short description
- 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
- Log in to your Swotzy account at app.swotzy.com
- Go to Integrations Stores
- Click Manage on your WooCommerce store
- In the Rules section, click Add order import rule under Order Import
- Select Set carrier + service from the action list. Use the search field to find it
- Select the carrier in the Carrier field
- Select the service in the Service field
- Click Add Condition
- Select Shipping method in the first dropdown
- Select is in the second dropdown
- Paste the exact shipping method name from your checkout into the third field
- Enter a name in Rule name (optional) to identify the rule in your list
- Leave Status set to Active
- 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:
- How to Automatically Calculate Package Weight from Shipment Items
- How to Automatically Set a Package Size
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:
- The order is imported into Shipment Overview within 15 minutes
- The rule assigns the carrier and service
- 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.