How to Set Maximum Lengths for Custom Rate Methods
Set custom shipping method restrictions based on maximum package lengths
Table of Contents
Overview
Many carriers have a maximum length they can ship. For example, UPS non-freight can ship up to 108 inches. Live rate carriers automatically restrict methods if dimensions are exceeded, but our dimensional packing feature does not apply to custom carriers. This guide details how to achieve the same length restrictions with custom rate carriers.
Scenario
We have three custom rates to configure:
- Standard Delivery: Maximum length of 108 inches. We'll need to hide this method if an item in the cart exceeds 108 inches.
- Next Day: Maximum length of 50 inches. We'll need to hide this method if an item in the cart exceeds 50 inches.
- Freight:No maximum length.
Shipping Group Setup
We'll use a shipping group to represent each segment of lengths, under 50 inches, between 50 inches and 108 inches, and over 108 inches.
- OVER108: Assign products over 108 inches.
- OVER50: Assign products over 50 inches but not exceeding 108 inches.
- UNDER50: Assign products under 50 inches.



As a result, expect these options:
If the cart contains products assigned to these shipping groups: UNDER50
Display these methods: Standard, Next Day and Freight
If the cart contains products assigned to these shipping groups: OVER50
Display these methods: Standard and Freight
If the cart contains products assigned to these shipping groups: OVER108
Display these methods: Freight
If the cart contains products assigned to these shipping groups: OVER50 and OVER108
Display these methods: Freight
If the cart contains products assigned to these shipping groups: UNDER50 and OVER50
Display these methods: Standard and Freight
The shipping group restrictions will ensure that an item will only display shipping rates that correspond with the largest designated length in the cart.