Resolve #3551881 "Add grid based rate"
Summary
This merge request introduces a grid-based rate system in the Colissimo shipping method, allowing administrators to define multiple price tiers based on shipment weight. It also adds an option to offer free shipping when the total order weight is 0 kg.
Details
- Adds a dynamic pricing grid (min weight, max weight, price).
- Adds a “Free if weight = 0 kg” configuration option.
- Stores configuration per shipping method under
commerce_shipping_colissimo.pricing.<id>. - Includes full form UI with AJAX row management and validation.
- Preserves backward compatibility with existing flat-rate setups.
Testing
- Create or edit a Colissimo shipping method.
- Add several pricing rows and test with different shipment weights.
- Verify that 0 kg shipments are correctly set to free when the option is enabled.