ROES System - New "weight" capability.

ROES Support Knowledgebase

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.

Product: ROES Web / ROES Desktop Category: Shipping / Template Weight Audience: Lab / Support Article ID: 72
Common need
A lab wants to calculate template weight from dimensions, then disable one or more shipping methods when the summed order weight reaches a defined value.

Overview

The weight attribute now supports expressions using macros. Current supported macros are [width] and [height]. For example:

[width]*[height]

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:

disabled="[weight]>=100"

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

1

Select templates

Select a template or range of templates. Click, then use Shift or Cmd/Ctrl click to select a range.

Select a range of templates in Template Tool
Select a template or range of templates before distributing the weight attribute.
If this image does not display, open it directly: Select_Range.png
2

Open Distribute Attribute

Right-click one of the selected or highlighted items, then select Distribute Attribute from the menu.

Distribute Attribute menu in Template Tool
Right-click one of the selected items and choose Distribute Attribute.
If this image does not display, open it directly: Distribute_Attribute.png
3

Enter the attribute and value

In the dialog, enter weight for the attribute and [width]*[height] for the value.

weight = [width]*[height]
Distribute Attribute dialog with weight value
Enter weight as the attribute and the desired expression as 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:

[weight]>=100

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.

Shipping method disabled attribute example
Add disabled to a shipping method with an expression such as [weight]>=100.
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).

if ([width] > 40 || [length] > 60) { return 1000000; } else if ([width] > 30 || [length] > 45) { return 10000; } else if ([width] > 11 || [length] > 14) { return 100; } else { return 1; }

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.
Suggested keywords: weight, disabled shipping, shipping method, Template Tool, Distribute Attribute, ROES Web, ROES Desktop, [width], [height], expression, disabled attribute

Article Details

Article ID:
72
Category:
Views:
1,181