In case you want to offer free products for one or more categories of your shop, first of all, you need to create a new Gift Products rule and give it a name, for example, “Gift products by category”, so you can easily find it whenever you want to edit it.
We want to allow users to choose 2 products as a gift when they purchase two items from the category “Clothing”. To do it, we need to select Include a list of categories in the field Apply to. In the option Total items in cart, we must select is equal to and set the value to 2.
We want our users to choose two items from Cap, Album, and Beanie with Logo. So we add these products in the field Gift Products and set to 2 the value that defines the number of items users can select in Gift products allowed.
Finally, we will add a note to Notes shown on “Apply to” products” to show a message on the category page to inform our users of the possibility to get two free products.
When the user will add 2 products belonging to the Clothing category to cart, a popup with the 3 free products will open on the Cart page.
After selecting the 2 free products, these will be added to the cart as shown below.