-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
Intelipost shipping methods are not shown when a delivery option contains a delivery_note. The module creates a carrier-level RateError before checking the delivery_risk_areas configuration, causing Magento to hide all Intelipost methods—even though the Intelipost API returns valid delivery options. This occurs regardless of whether risk-area handling is enabled or disabled.
Steps to Reproduce
- Configure the Intelipost module normally.
- Enter a destination postal code that triggers a delivery_note in the Intelipost API response
- Proceed to checkout and attempt to retrieve shipping methods.
Expected Behavior
- Shipping methods that Intelipost returns as valid should appear in the checkout.
- A delivery_note should not cause the entire carrier to error out.
- Risk-area behavior should respect the delivery_risk_areas configuration:
- If disabled: skip only the affected method.
- If enabled: show the method normally, optionally log or annotate it.
Actual Behavior
- When a delivery_note is present, the module immediately creates a RateError.
- The carrier RateResult is marked as error = true before the configuration is evaluated.
- Magento filters out all Intelipost shipping methods.
Additional Context
The issue is caused by the placement of setError(true) and append($error) before the delivery_risk_areas check. Any delivery_note, even when Intelipost still returns multiple valid delivery options, triggers a full carrier failure.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working