A small item can travel as a parcel, a large one needs a pallet, and a mixed order should not show an arbitrary rate. Magento 2 shipping rules need to reflect actual logistics: method availability, price, restrictions and extra handling. Problems often emerge when several policies meet in one cart. Accept the configuration against a set of scenarios rather than one successful order.
A useful shipping test checks the whole outcome: available methods, the reason for a restriction, the final fee and its transfer into sales documents. A method appearing in a list does not prove that the entire process is correct.
Separate four different decisions
Write the business policy before opening a rule form. Which orders can a parcel carrier handle? When is a pallet necessary? Does a postcode exclude a service or merely change its price? Is extra packing included in the rate or charged separately?
Kowal Shipping Rules separates custom methods and rates, restrictions and Extra Fee. Conditions can reference address, cart value, weight and quantity. Keeping those responsibilities distinct makes the final result easier to explain.
For example, not serving a region is different from charging more there. Hiding a method is also different from keeping it visible with an error message. Choose the behavior that matches the agreed order-handling process.
Mixed carts need an explicit policy
Suppose a customer buys a small component and a product requiring pallet transport. This is a design example, not a universal delivery policy. Decide whether they travel together, separately or require an individual quote before configuring a rule.
The kowal_shipping_type attribute distinguishes product shipping types. Rate combination can then follow a configured approach such as the highest rate, sum or lowest rate. Select the option that matches how transport is actually charged, not simply the easiest setting.
Test later additions too. A method valid for one parcel may stop being appropriate after an oversized product is added. Cart changes matter as much as the initial cart.
Priority and stopping further processing
Several individually correct rules can produce an unexpected combined outcome. One allows a method in a region, another restricts it for a product type and a third adds a fee. Without a defined order, the cause of the final amount is unclear.
Rules have priority and an option to stop further processing. List cases that need a specific rule and cases that should continue to a general rule. Record the expected reason for the calculation, not just the amount.
During diagnosis, change one thing at a time. Adjusting the rate, address and priority together can hide the real cause and make the result difficult to reproduce.
An eight-case acceptance matrix
This table defines test coverage. Fill in zones, thresholds and expected amounts according to your policy. It is a verification template, not a completed test report or a carrier’s price list.
| Case | Cart or stage | What to confirm |
|---|---|---|
| 1 | Parcel item only, supported address | Correct method and base rate |
| 2 | Pallet item only, same address | Pallet delivery availability |
| 3 | Parcel and pallet together | Agreed rate-combination policy |
| 4 | Unsupported postcode | Hidden method or appropriate message |
| 5 | Value or weight just below a threshold | Lower boundary condition |
| 6 | Value or weight exactly at the threshold | Agreed threshold definition |
| 7 | Value or weight just above the threshold | Upper boundary and no duplicate fee |
| 8 | Order, invoice and credit memo | Consistent amounts and settlement behavior |
Repeat relevant cases for customer groups and store views. Also remove a product that caused a restriction: the cart should not retain an outcome based on its previous contents.
Extra Fee: check the basis and charge count
The module supports fixed fees and percentages of subtotal, with charging modes once per cart, per item and per matching item. These express different cost policies. Handling an entire order is not the same as charging for a particular product.
Write expected outcomes for one matching item, several matching items and a cart containing nonmatching items. Check the selected mode, quantities and percentage basis. Do not infer the full calculation from a form label; compare final values against the agreed policy.
Fee tax depends on configuration, including tax_mode and tax_class_id. Verification should cover amounts shown to the customer and stored in sales documents. Use the store’s applicable tax setup rather than copying an example class from another implementation.
Checkout is part of acceptance
Kowal Shipping Rules adds the kowal_shipping_fee totals segment to standard checkout. Hyvä Checkout or a custom summary needs its presentation connected and final amounts checked. Server-side calculation alone does not prove that the customer sees a clear total.
Walk through method selection, address changes, returning to the cart and order placement. Compare the pre-order amount with the saved order and later documents. Presentation changes belong to cart and checkout customization.
Clear delivery policies also reduce uncertainty during shopping. The article about abandoned carts provides the broader customer context, but a general conversion review does not replace rule-level diagnosis.
Diagnostics before launch
The module’s inspection command does not modify data:
bin/magento kowal:shippingrules:stabilization:check
Its dedicated log is var/log/kowal_shipping_rules.log. The check and log support investigation but do not replace address and cart tests. Separate switches for restrictions and fees help plan rollout and isolate parts of the configuration.
If migrating rules from another solution, treat migration as a separate stage with a report and outcome comparison. Copying definitions does not establish behavioral equivalence between old and new checkout implementations.
Frequently asked questions
Should I hide a method or show an error?
That depends on the process. Hiding removes an unavailable choice; a message can explain the restriction. Agree on the behavior for the address and cart, then test it.
Can a fee apply only to matching products?
Yes, that mode is supported. Compare different quantities and cart combinations against the agreed charging policy before deployment.
Does Hyvä Checkout need a separate test?
Yes. Verify fee presentation and final totals in the actual checkout, not only the rule’s configuration in the admin.
Turn logistics policy into test cases
Prepare addresses, carts and expected totals, then discuss a Kowal Shipping Rules implementation. Use the same matrix for acceptance that was agreed before configuration. This keeps the discussion focused on results rather than a list of enabled rules.
Related stages of the process
Compare rate creation with filtering existing methods and check overlapping restrictions. See Payment and Shipping Restrictions for Magento 2 and the guide Magento 2: testing shipping restrictions and cash on delivery.
Shipping price and estimated date are separate results; check date messaging independently. See Estimated Delivery Date for Magento 2 and the guide Magento 2 Estimated Delivery Date: testing dates, cut-off times and calendars.
Free-delivery thresholds, country and pallet exceptions can change final rates; test their interaction. See Free Shipping Module for Magento 2 and the guide Magento 2 Free Shipping: testing thresholds, pallets and customer messages.
Check features and configuration in the offering for Kowal Shipping Rules - Magento 2 extension for shipping methods, delivery restrictions, and additional fees..
