Skip to content
  • There are no suggestions because the search field is empty.

Min/Max Quantity

This document outlines how to configure the Min/Max Quantity feature and how it behaves.

Setup

This feature supports both Product and Variant metafields. You will need to create two metafields in Shopify Admin:

  • A Minimum Quantity metafield
  • A Maximum Quantity metafield

Step 1: Create and assign metafields in Shopify Admin

After creating the metafields, assign them to the relevant products or variants.

To assign Product metafields:

  1. Navigate to the desired product in Shopify Admin.
  2. Scroll to the Metafields section.
  3. Locate the minimum and maximum metafields you created.
  4. Enter the desired values.

You do not need to set both values. You can set only a minimum or only a maximum if needed.

To assign Variant metafields:

  1. Navigate to the desired product and select a variant.
  2. Scroll to the Metafields section.
  3. Locate the variant metafields you created.
  4. Enter the desired values.

Again, both values are optional. You can configure only one if desired.

Step 2: Expose the metafields in Reactiv Dashboard

  1. In the Reactiv Dashboard, go to App Settings > Metafields.
  2. Locate the minimum and maximum metafields you created.
  3. Toggle them on to expose them to the app.

Step 3: Configure Product Quantity Limits

  1. Navigate to App Settings > Product.

     2. Find the Product quantity limits section.

     3. Enable the toggle if it is not already enabled. This will expose the following fields:

  • Metafield Type
  • Minimum quantity limit
  • Maximum quantity limit 

     4. Select the metafield type you created (Product or Variant).
     5. Select the corresponding minimum and maximum metafields from the dropdowns.

     6. Save and publish your configuration.

How It Works

The quantity stepper enforces limits based on metafield values and available inventory.

General behavior

  • If a minimum value is set, the quantity stepper will not allow the user to go below that value.
  • If a maximum value is set, the stepper will compare:
    • The variant’s available inventory, and
    • The maximum metafield value

The lower of these two values will be used as the effective maximum.

  • If no minimum value is set, the default minimum will be 1.
  • If no maximum value is set, the maximum will default to the available inventory.

Product metafield behavior

If the metafield type is set to Product, the configured minimum and maximum values will apply to all variants of that product.

Variant metafield behavior

If the metafield type is set to Variant, the minimum and maximum values will be applied individually to each variant, based on that variant’s metafield values.