RuffRuff Order Limits

(Use Case) Limit Cart Total Quantity to 5

This is a configuration example that limits the total quantity of eligible items across the entire cart.

This is a configuration example that limits the total quantity of eligible items to 5 across the entire cart. Quantities are combined and evaluated together even across different products and variants.

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

You can check the behavior after setup in [Demo] Canned Juice – Limit of 5 Total.

  • Total quantity of eligible items in the cart is 5 or less: purchase is allowed.

  • Total quantity of eligible items in the cart is 6 or more: purchase is not allowed.

For example, if you add 2 units of eligible Product A and 3 units of eligible Product B, the total is 5, so the purchase is allowed. If you add 1 more eligible item, the total becomes 6, and the purchase is not allowed. Items that are not eligible are not included in the total.

(1) Create a quantity rule

Open the app admin → "Quantity rules" and create a new rule.

(2) Configure the restriction details

Set the minimum quantity to 1, the maximum quantity to 5, and Applicability to "Cart." Leave Increment unset.

(3) Configure the eligible items and messages

Select the products to restrict, and configure the product message and alert message as needed.

Field

Example setting

Title

Eligible items are limited to 5 total

Minimum quantity

1

Maximum quantity

5

Increment

Not set

Applicability

Cart

Eligible items

Products to restrict

Display timing

Cart updated and checkout

Message for maximum order quantity

You can purchase up to {{maxQuantity}} of the eligible items in total

(4) Save and enable

After saving the rule, select "Enable."

Tip: {{maxQuantity}} is replaced with the maximum quantity you set.