> For the complete documentation index, see [llms.txt](https://docs.magecomp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.magecomp.com/magento-2-free-gift-extension/manage-rules.md).

# Manage Rules

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

<figure><img src="/files/UCSx3vgjU6kS2BfX3vsS" 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="/files/5D7ILjxseWA86gETPoII" 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="/files/5pnvUMRczTlZN00bo9en" 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="/files/TSNvkzNdjAVOj3mb8pqv" 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.
