# Manage Rules

From the admin sidebar, go to **MageComp -> Manage Rules** and **Add New Rule**.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FhczjSsTg4GeCUxs5681l%2FRule%201.png?alt=media&#x26;token=7841f539-677d-4f6a-89e6-6d50fc15bb68" alt=""><figcaption></figcaption></figure>

* **Status -** Enable/Disable gift rule from here.
* **Store View -** Select the store view to offer free gift.
* **Active From -** Set the start date for free gift option.
* **Active To -** Set the end date for free gift option.&#x20;
* **Priority -** Set the priority of the free gift rule.
* **Customer Group -** Select customer groups who will be eligible for free gift.
* **Rule Name -** Set the rule name here.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FojtBuubxnYU3EeXcjw9z%2FRule%202.png?alt=media&#x26;token=b075f1c6-4ea7-400f-b7e9-aba1713a1bc2" alt=""><figcaption></figcaption></figure>

* **Rule Type -** Set the rule type - Adds N Products, Reaches X Sub Total, or Adds N quantity.
* **Enter N Product -** Set the product count to be eligible for free gift.
* **Enter Sub Total Amount -** Set the subtotal amount for free gift eligibility.
* **Enter N Quantity -**  Set the quantity count to be eligible for free gift.
* **N Product Color -** Set the color for the number of products in the notification bar to reach free gift.&#x20;
* **Sub Total Amount Color -** Set the color for the cart total amount in the notification bar to reach free gift.&#x20;
* **N Quantity Color -** Set the color for the number of quantities in the notification bar to reach free gift.&#x20;
* **Select Gift Products -** Select the products to be claimed as a free gift by customers.

**Note -** The products which is set as Free Gift from the product edit page will be displayed in this multiselect list. Only simple products can be added as free gift.

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FdktrcJ22YlhxHl7lkC3P%2FProduct%20Free%20Gift.png?alt=media&#x26;token=ebf853e8-9491-4576-b178-2ebe78226732" alt=""><figcaption></figcaption></figure>

* **Gift Type -** Select whether you want to offer a single product or multiple products as free gift.
* **Enter Product Quantity for Free Gift -** Enter the number of products to be claimed as a free gift by customers. (if the gift type is set to multiple products)

<figure><img src="https://807210804-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8wMgNeFnYjVGQmgdxMv4%2Fuploads%2FzGUbjGEBg05ouTwDLV0e%2FRule%203.png?alt=media&#x26;token=e7f15194-14ee-4da4-95a6-929139002837" alt=""><figcaption></figcaption></figure>

* **Notification Message -** Set the text message for the notification bar. You can use variables like {{nquantity}}, {{nproduct}}, or {{subtotal}} to display the Free Gift notification message. Max 80 characters allowed.
* **Notification Background Color -** Set the background color of the notification bar.
* **Notification Text Color -** Set the text color of the notification bar.
* **Notification Text Size -** Set the text size between 10 to 20 in the notification bar.
