# Rules

### <mark style="color:blue;">Quick Setup</mark>

Once you have installed the app into your Shopify store, you will be redirected to the **Homepage** of the app, where you will find the **quick setup** option.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FDo2S382rwvq5FmpfGAbk%2Flimiter%20quick%20setup.png?alt=media&#x26;token=09cfcb4b-4744-42a5-830d-76a7040a6b3e" alt=""><figcaption></figcaption></figure>

Select the **Enable** button to activate the app. After selecting the enable button, you will be redirected to your theme backend, where you activate the app for your Shopify store.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FyqelM5iweNDRa4EBP8IJ%2Fenable%20limiter%20app%20theme%20backend.png?alt=media&#x26;token=77e6238b-7aa2-402c-bd5e-48809714cce5" alt=""><figcaption></figcaption></figure>

Once you activate this app for your Shopify store, your set rules and conditions apply to your customers.

### <mark style="color:blue;">Add Rule</mark>

By setting rules and applying rules to product quantities, businesses can prevent over-ordering, curb bulk purchases, and ensure fair access to inventory for all customers.&#x20;

These rules help streamline operations, avoid stockouts, and align customer purchases with business goals, ultimately enhancing customer satisfaction and fostering a more sustainable shopping experience.

To add rules for the product quantity, follow these steps.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FcDLM4ZEN8jwpTtfbcbY2%2FLimiter%20rule%20limit%20qty.png?alt=media&#x26;token=31b9d660-a4f2-415a-86bd-89d7dc435d3b" alt=""><figcaption></figcaption></figure>

Select the Add rule button, where you will be given multiple options, like on which of the following you want to apply the limits.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FEziSHsqbXlitMtV4pdkr%2Frule%20limit%20qty%20options.png?alt=media&#x26;token=93b5b098-aed9-456e-b046-5368e4f7e266" alt="LIMITER - rule limit qty options"><figcaption></figcaption></figure>

Here, you are allowed to add the limits on:

* Cart limit
* Variant limit
* Each product limit
* Specific product limit
* Specific collection limit
* Price based qty limit

After selecting your desired option, you can configure the fields as per your business needs.

* **Applied to -** This is the field where you can select the option to where you want to apply the limits.
* **Minimum -** Set the minimum purchase quantity.
* **Maximum -** Set the maximum purchase quantity.
* **Message -** Set an error message for customers to notify them that the rules are not fulfilled.

In the **Applied to the** field, you are given different options to which you want to apply the rules.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FIKAUPMXDO2IzRio8GhZO%2FApplied%20to%20options.png?alt=media&#x26;token=4c65946c-05f2-4856-9ebf-a24b2b438cab" alt="LIMITER Order Limits - applied to options"><figcaption></figcaption></figure>

* If you select the **Cart as a whole** the limits will be applied to the entire shopping cart of the customer.
* If you select **any SKU in cart**, the limits will be applied to the products in your cart that have an SKU.
* If you select **any product in cart,** the limits will be applied to at least one product in your cart.
* If you select **all belonging to the following group,** the limits will be applied to the product groups you assign.

When you select the **all belonging to the following group** option, a field will be added named **Group by.**

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FBgWPOtgN5kHJeoPDhB4L%2Fgroup%20by%20options.png?alt=media&#x26;token=273491fc-7cb7-4d9c-a7ee-8296f21c4200" alt=""><figcaption></figcaption></figure>

Here, you are provided with multiple options to which you want to apply the limit rules. You can select whichever option suits your business requirements.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FLRpFu4K0fJ0xwABjfMdu%2F_is_%20options.png?alt=media&#x26;token=370dd313-3adf-4931-ac6e-6efc6cb3398d" alt=""><figcaption></figcaption></figure>

* In this field, if you select the **is** option, the limits will be applied to the group you have selected to apply the limit rules.
* The **is not** option is totally opposite of the **is** option, in which the limits will not apply to the group you have selected.
* The **is one of** option describes that the limits will be applied **any one** product of your selected collection.
* Once again, the **not one of** is the complete opposite of the **is one of** option. This means, the limits will be applied to the products **not included** in this group.

In the last field, you must enter the exact name of the product or collection you are planning to add the limit rules on.

If the rules are not met, customers will get this alert notification on frontend.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FZZsRoSJKmHOT0BIkBYdo%2Ferror%20message.png?alt=media&#x26;token=9211b11c-3893-4651-b0a4-e3f62c02e1ed" alt=""><figcaption></figcaption></figure>

### <mark style="color:blue;">Add Condition</mark>

Setting conditions for customers is crucial in managing inventory effectively and maintaining business efficiency.

These conditions also align customer purchases with business policies, helping maintain a balanced stock level, reduce wastage, and enhance customer satisfaction by ensuring products are accessible to a broader audience.

For this, you just need to select the **Add Condition** button and the condition field will be added.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FyHGRyx4vZ3iEC635bQEY%2Frule%20in%20condition.png?alt=media&#x26;token=8aad87d1-214d-4f06-bec7-825e2fd0810f" alt=""><figcaption></figcaption></figure>

* **When -** Select whether you want your customers to **meet all your conditions or are not met**.
* **If -** Select the options, whether you want to apply the limits on the products that your cart contains or does not contain, customer tags, or their cart's subtotal.
* **Filter by -** Select the option to which you want to apply the limits. (For this, you can refer to the explanation of **Group by** field)

The steps of adding rules to the conditions are the same.

You can also drag and drop the rules and put them under the conditions.&#x20;

The rules will be applied if the conditions are met as per their settings.
