Shipping Rules
Composer kowal/module-shipping-rules · Version 1.0.25
Product page
Description
Create shipping methods, match rates to the address and cart, and apply delivery restrictions and additional fees.
For whom
For stores where delivery price or availability depends on postcode, weight or cart value.
Features
- Match rates by country, region, postcode, weight, quantity and subtotal.
- Hide a method or return an unavailable-method message.
- Carry additional fees from the cart into the order and sales documents.
Installation
From the Magento root, with Composer access to the Kowal package, run
composer require kowal/module-shipping-rules
bin/magento module:enable Kowal_ShippingRules
bin/magento setup:upgrade
bin/magento cache:clean
Configuration
- Enable the carrier under Stores → Configuration → Sales → Delivery Methods → Shipping Methods & Rules and set the title shown at checkout.
- Under Sales → Shipping Methods & Rules → Shipping Methods, create a method and configure a rate for the intended destination and cart range.
- If you need a restriction or surcharge, define it under Shipping Restrictions or Extra Fees and enable that feature under Stores → Configuration → Sales → Shipping Methods & Rules.
Requirements / notes
The module requires PHP 8.1 or later. The carrier, restrictions and fees have separate settings. Check each feature your store uses.
FAQ
How can I find out why an expected rate does not match?
Compare the destination, weight and subtotal with the rate conditions. Temporarily enable Enable Debug Logging and inspect the decisions in var/log/kowal_shipping_rules.log.
Verify the installation
bin/magento module:status Kowal_ShippingRules
Use two addresses on opposite sides of your configured rule boundary. For the same cart, compare available methods, rates and fees. Place a test order for the eligible address and check the recorded amounts.