ROES System - New "weight" capability.
Disable Shipping Methods by Template Weight
Use this article to assign template weight values using expressions and disable shipping methods when an order reaches a configured weight threshold.
Overview
The weight attribute now supports expressions using macros. Current supported macros are [width] and [height]. For example:
This applies to templates only. An option can still contain a weight attribute, but its value is limited to a numeric value such as 10.
Disable Shipping by Weight
A shipping method can have a disabled attribute with an expression as its value. For example:
With this expression, the shipping method containing it will be disabled, or grayed out, when the summed weight of the order is greater than or equal to 100.
Assign the Weight Attribute Using Distribute Attribute
Select templates
Select a template or range of templates. Click, then use Shift or Cmd/Ctrl click to select a range.
If this image does not display, open it directly: Select_Range.png
Open Distribute Attribute
Right-click one of the selected or highlighted items, then select Distribute Attribute from the menu.
If this image does not display, open it directly: Distribute_Attribute.png
Enter the attribute and value
In the dialog, enter weight for the attribute and [width]*[height] for the value.
If this image does not display, open it directly: Distribute_Attribute1.png
Other acceptable values
- [height]*10
- ([width]*[height])*10
- [width]*10
- [width] or [height]
Modify the Shipping Method
Add the disabled attribute to the shipping method with an expression such as:
With this example, when the total weight of the order is equal to or greater than 100, the shipping method will be disabled or grayed out.
If this image does not display, open it directly: Shipping_Disabled.png
Advanced Expression — ROES Web Only
ROES Web supports advanced expressions for weight value calculations (See example below).
Expression Behavior
| Expression | Behavior |
|---|---|
| [width]*[height] | The total weight value used for disabling a shipping method is width multiplied by height for each template in the order, summed across the order. |
| ([width]*[height])*10 | Multiply width by height, then multiply that result by 10. |
| [width] | Weight equals width. |
| [height] | Weight equals height. |
Expected Result
Templates should carry a calculated weight value, and any shipping method using a matching disabled expression should become unavailable when the order’s summed weight reaches the configured threshold.
Escalation Notes
- Confirm the weight expression is assigned to templates, not only options.
- Confirm the expression uses supported macros such as [width] and [height].
- Confirm the shipping method includes a disabled attribute with the intended expression.
- Confirm the order’s summed weight is expected to meet or exceed the threshold.
- For advanced expressions, confirm the use case is ROES Web.