What you'll build
A pickup point shipping method that shows parcel lockers and service points for normal orders, but automatically removes parcel lockers when the cart weighs more than 30 kg. Heavy orders still get service point pickup — only the lockers disappear.
Before you start
- You have a pickup point shipping method configured that returns both parcel lockers and service points.
- You know your parcel locker weight limit. This example uses 30 kg, the standard maximum for most Nordic locker networks.
A note on weight units
The cart_weight condition uses the weight unit configured in your store settings. In most setups this is kilograms. Confirm your store's weight unit before setting the threshold value — entering 30000 when your unit is kilograms sets a 30,000 kg threshold, not 30 kg.
Step 1: Open your pickup point shipping method
Navigate to your pickup point option. If you have separate methods for lockers and service points, see the alternative approach at the end of this guide.
Step 2: Add a rule to filter locker types for heavy orders
Add a new rule to the pickup point method:
| Rule field | Value |
|---|---|
| Rule name | Remove lockers for orders over 30 kg |
| Context | PickupPoint |
| Condition: field | cart_weight |
| Condition: operator | greaterThan |
| Condition: value | 30 |
| Action 1 | hide_parcel_locker |
| Action 2 | hide_outdoor_parcel_locker |
| Conditions match | All |
The two hide actions work together: hide_parcel_locker removes indoor lockers and hide_outdoor_parcel_locker removes outdoor 24/7 lockers. Service point locations are unaffected. The rule runs once per pickup point as each location is assessed — only locations matching a hidden type are excluded from the map.
Step 3: Verify light orders are unaffected
The rule's condition only fires when cart_weight is greater than 30. For carts at or under 30 kg, no action is taken and all pickup point types remain visible. No additional rule is needed.
Alternative approach: two separate pickup methods
Option A — Parcel Lockers only:
- Default visibility: Visible
- Rule: Hide if
cart_weight>30
Option B — Service Points only:
- Default visibility: Visible
- No weight rule needed
This gives customers two clearly labelled options for light orders and removes the locker option for heavy ones. The trade-off is slightly more configuration to maintain.
How it works
When a customer opens the pickup point map, Shipit evaluates PickupPoint context rules for each location. If the cart weight exceeds 30, the rule fires and both hide_parcel_locker and hide_outdoor_parcel_locker actions suppress those location types. Only service points appear on the map. For lighter orders the rule does not fire and all location types are shown.
Testing it
- Open the Checkout tester and set cart weight to 5 kg. Confirm both lockers and service points appear.
- Set cart weight to 31 kg. Confirm locker-type locations disappear and only service points remain.
- Set cart weight to exactly 30 kg. Confirm lockers are still visible — the threshold is "greater than", not "greater than or equal to."
