Using disabled on Shipping Methods to enable/disable as needed
Disable Shipping Methods by Template Weight
Use this article to enable or disable ROES Web and ROES Desktop shipping methods based on template weight.
Overview
In both ROES Web and ROES Desktop, the disabled attribute can be set on a Shipping Method to enable or disable that shipping method based on the weight attribute set on templates. This is useful when large or special products should not be available through standard shipping methods such as US Mail, UPS, or FedEx.
When to Use This
- Large products should only offer lab pickup or local delivery.
- Standard shipping methods should be hidden or disabled when an order reaches a specific template-weight threshold.
- A local delivery method should only become available when the order contains qualifying large items.
- A lab needs shipping choices to respond automatically to the total weight of templates in the order.
Important Attribute Note
When the disabled attribute is added to a Shipping Method, its default condition is weight>=100. That condition can be edited to the opposite style, such as weight<=100, depending on whether the method should start enabled or start disabled.
Configuration
Set weight on templates
Assign the appropriate weight attribute to templates that should affect shipping availability.
Add the disabled attribute to shipping methods
Add or edit the disabled attribute on the Shipping Method that should respond to the total template weight in the order.
If this image does not display, open it directly: disabled-shipping2.PNG
Use weight>=100 to disable standard shipping at or above the threshold
The condition weight>=100 disables the Shipping Method when the total weight of the templates in the order equals or exceeds 100. In this example, Mail and UPS are disabled when the order reaches that threshold.
If this image does not display, open it directly: disabled-shipping-exam2.PNG
Use weight<=100 to start disabled and enable at the threshold
The condition weight<=100 disables the Shipping Method to start and only enables it once the weight of the templates in the order exceeds the configured threshold. This can be used for methods such as Local Delivery, where actual shipping is disabled and local delivery becomes available instead.
If this image does not display, open it directly: disabled-shipping-exam1.PNG
Condition Examples
| Condition | Behavior | Typical Use |
|---|---|---|
| weight>=100 | Disable the method when total template weight is 100 or higher. | Disable Mail, UPS, or FedEx for oversized items. |
| weight<=100 | Disable the method to start, then allow it above the threshold. | Enable Local Delivery only for qualifying large-item orders. |
Expected Result
Shipping methods should automatically enable or disable based on the total weight of templates in the order. Large-item orders can be limited to lab pickup or local delivery while standard shipping methods are hidden or disabled.
Escalation Notes
- Confirm which templates should carry weight values.
- Confirm the total-weight threshold for disabling or enabling each Shipping Method.
- Confirm whether each method should use weight>=100, weight<=100, or a different threshold value.
- Test with an order below the threshold and an order at or above the threshold.
- Confirm that the desired shipping methods appear or disappear in both ROES Web and ROES Desktop if both are in use.