RuffRuff Order Limits

(Use Case) Restrict Purchases to a Weight Range of 100g–1kg

An example that limits the total weight of the same variant to 100g or more and 1kg or less per order.

An example that limits the total weight of the same variant to 100g or more and 1kg or less per order. Use this when you want to restrict both orders that are too light and orders that are too heavy.

Prerequisite: The initial setup for weight limits must be complete. If you haven't done this yet, see "Initial Setup (Weight Limits)".

When you enable the weight rule, it evaluates the total weight of the same variant in the cart. The total weight is calculated by multiplying the variant's weight registered in Shopify by its quantity.

  • Total weight of the same variant is less than 100g: purchase is not allowed.

  • Total weight of the same variant is 100g or more and 1,000g or less: purchase is allowed.

  • Total weight of the same variant is more than 1,000g: purchase is not allowed.

Note: Variants without a weight set are not included in the total and are not subject to the limit.

(1) Create a weight rule

Open the app admin → "Weight limits" → "Weight rules" → "Create rule".

(2) Enter the settings

Configure the following.

Field

Value

Title

Any internal title

Minimum weight

100

Maximum weight

1000

Weight unit

Grams (g)

When product weight unit differs

Convert and include in calculation

Applicability

Variant

Eligible items

Products or variants to limit by weight

Product message

Enter if needed

Display timing

Cart updated and checkout

Message for minimum weight

Enter if needed

Message for maximum weight

Enter if needed

(3) Save and enable the weight rule

After saving the settings, select "Enable." Saving alone does not apply the weight limit.

(4) Check the behavior

Add the eligible variants to the cart in a quantity that reaches the weight above, and check the result when the cart is updated and at checkout.

  • Even if you want the maximum weight to be 1kg, enter 1000 for a rule with the weight unit set to "Grams (g)."

  • You can use {{minWeight}}, {{maxWeight}}, and {{currentWeight}} in the alert messages. They are replaced with the value including its unit, such as "100g," and the current total weight, respectively.

  • If you set "When product weight unit differs" to "Convert and include in calculation," the evaluation converts weights to the rule's unit even when g, kg, oz, and lb are mixed. If you set it to "Exclude from calculation," variants with a different unit than the rule are not included in the total.