Using disabled on Shipping Methods to enable/disable as needed

ROES Support Knowledgebase

Disable Shipping Methods by Template Weight

Use this article to enable or disable ROES Web and ROES Desktop shipping methods based on template weight.

Product: ROES Web / ROES Desktop Category: Shipping Methods Audience: Lab / Support Article ID: 100
Common need
A lab wants very large or special products to offer only certain delivery choices, such as lab pickup or local delivery, while disabling standard mail or carrier shipping.

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

1

Set weight on templates

Assign the appropriate weight attribute to templates that should affect shipping availability.

2

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.

disabled="weight>=100"
Disabled shipping method configuration using weight attribute
Shipping Method disabled attribute example using a weight condition.
If this image does not display, open it directly: disabled-shipping2.PNG
3

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.

Mail and UPS disabled when order template weight equals or exceeds 100
Example: Mail and UPS are disabled when the order’s total template weight is 100 or higher.
If this image does not display, open it directly: disabled-shipping-exam2.PNG
4

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.

Local Delivery enabled when other shipping methods are disabled
Example: Local Delivery is enabled when standard shipping methods are disabled by the weight condition.
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.
Suggested keywords: ROES Web, ROES Desktop, shipping methods, disabled attribute, template weight, weight attribute, local delivery, lab pickup, Mail, UPS, FedEx, oversized products

Article Details

Article ID:
100
Category:
Views:
1,808