> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.omegatheme.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Real-time Inventory Sync

This **Real-time Inventory Sync** template allows you to automatically adjust purchase limits based on your current stock levels.

This helps you prevent overselling and better control how many items customers can purchase as inventory changes.

###### How it works

You can set:
* A default limit rule (applies when no inventory conditions is matched)
* Multiple inventory-based tiers that adjust limits dynamically based on stock levels
When inventory changes, the app will automatically apply the correct rule

###### How to set up

1. Select the template
Go to Create rule -> Choose Real-time Inventory Sync template 

![The Create rule screen with the "Real-time Inventory Sync" template card selected from the list of available templates.](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/anh-man-hinh-2026-04-17-luc-08_1nji8jw.png)
2. Set default limit rule
In the **Limit rules** section, configure: Min (quantity), Max (quantity), Multiple. This is the default rule, applied when no inventory condition below is matched

3. Set inventory-based tiers
In the **Inventory sync** section, you can define rules based on stock levels. For each tier:
* **When stock below**: Set the inventory threshold
* **Min / Max / Multiple**: Define the limit rule for that stock level
Click **Add tier** to create more conditions.

![The Inventory sync section showing two example tiers, each with a "When stock below" threshold field and Min, Max, Multiple limit inputs, plus an "Add tier" button at the bottom.](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/anh-man-hinh-2026-04-17-luc-08_l7wion.png)
Important notes:
* If inventory does not match any tier, the default rule will be applied
* If a product is not tracking inventory, the app will apply the default rule
* This feature works automatically and updates limits in real time based on your product inventory

4. Select product 
Choose from 5 options to apply the limit rules:
* **All products**: Apply the limit rules to all products in your store
* **Specific collections**: Apply the limit rules to the selected collections
* **Group products**: Apply the limit rules to products that match specific conditions (e.g., tags, titles, or vendors)
* **Specific products**: Apply the limit rules to the selected individual products
* **Specific product variants**: Apply the limit rules to the selected product variants

![The Select product step showing five scope options: All products, Specific collections, Group products, Specific products, and Specific product variants, each with a selection field.](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/anh-man-hinh-2026-04-17-luc-08_6i4d4c.png)
5. Apply to markets
* Allows merchants to set personalized limit rules for each market or country, tailoring restrictions to regional needs.
* Search and choose the countries/regions where you want the rule to apply.

6. Target customer
Please follow [this guide ](https://help.omegatheme.com/en/article/apply-limit-to-customer-ync2i6/)to set up your target customer

7. Schedule
You can set start and end times for limit rules, and the system will automatically follow the schedule, saving management time

8. Display settings
Allows you to set the message shown when a discount has reached its usage limit

9. Action After Block
Please follow [this guide ](https://help.omegatheme.com/en/article/action-after-block-118jak0/)to set up more your action

