{"id":2062,"date":"2021-05-18T14:57:40","date_gmt":"2021-05-18T14:57:40","guid":{"rendered":"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/?p=2062"},"modified":"2025-10-22T10:36:31","modified_gmt":"2025-10-22T10:36:31","slug":"setup-free-gift-if-users-buy-from-specific-categories","status":"publish","type":"post","link":"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/setup-free-gift-if-users-buy-from-specific-categories\/","title":{"rendered":"How to set up free gifts if users buy from specific categories?"},"content":{"rendered":"\n<p>Offering free gifts when customers buy from specific categories is very popular. Store managers choose this method to increase the sale of one or more categories on their website. It is obvious that when customers know that a free gift is waiting for them by buying products from one or more specific categories, they will pay more attention to those categories and may place an unplanned purchase to receive the gift.<\/p>\n\n\n\n<p>To set up free gift if user buy from specific categories, you can consider different rule methods which depends on your strategy for offering the promotion. In this tutorial of <a href=\"https:\/\/ithemelandco.com\/plugins\/free-gifts-for-woocommerce\/\" target=\"_blank\" rel=\"noreferrer noopener\">GIFTiT &#8211; Free Gifts for WooCommerce plugin<\/a>, we will help you to setup a free gift if users buy from specific categories according to \u201c<strong>buy x get y\u201d<\/strong> method.<\/p>\n\n\n\n<p>The aim of offering this free gift is:<\/p>\n\n\n\n<p><strong>If customers buy any products from &#8220;iCat&#8221; category, they will receive two free gifts from &#8220;music&#8221; category<\/strong><\/p>\n\n\n\n<p>Let&#8217;s set up this free gift in our plug-in by following four simple steps:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-1-add-a-new-rule-and-choose-the-right-method\"><strong>Step 1: Add a new rule and choose the right method<\/strong><\/h2>\n\n\n\n<p>Adding a new rule in our plug-in is simply possible through the <strong>WordPress dashboard<\/strong>.<\/p>\n\n\n\n<p>By clicking on \u201c<strong>iThemeland &gt; GIFTiT<\/strong> &gt; <strong>Rules l setting<\/strong>\u201d from your admin panel of WordPress after installation of our plug-in, the <strong>Rule<\/strong> page will be opened and you are able to add new rule by clicking on their related button.<\/p>\n\n\n\n<p>By pressing \u201c<strong>add rule<\/strong>\u201d button, you can see the rule form containing the below sections:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-method\"><strong>Method<\/strong><\/h3>\n\n\n\n<p>As we mentioned above, you need to choose the right method to set up your free gift on our plug-in. All of the possible methods using for offering a free gift are listed in a combo box.<\/p>\n\n\n\n<p>As the gift we want to offer to the customers is not from the same category that they are buying products, we have to choose \u201c<strong>buy x get y<\/strong>\u201d method.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-content\/uploads\/sites\/9\/2021\/05\/18-choose-custom-method.jpg\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1411\" height=\"753\" src=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-content\/uploads\/sites\/9\/2021\/05\/18-choose-custom-method.jpg\" alt=\"choose a method Buy X get Y in WooCommerce product gift plugin\" class=\"wp-image-2064\" style=\"width:1411px\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-rule-name\"><strong>Rule name<\/strong><\/h3>\n\n\n\n<p>To set up a free gift in our plug-in, you need to assign a name to your rule. For example, we typed gift for a specific category under the \u201c<strong>Rule name<\/strong>\u201d field.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-description\"><strong>Description<\/strong><\/h3>\n\n\n\n<p>Filling this field is optional in our plug-in. you can add a brief description about your free gift here if you want.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-content\/uploads\/sites\/9\/2021\/05\/18-add-description.jpg\"><img decoding=\"async\" width=\"1408\" height=\"752\" src=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-content\/uploads\/sites\/9\/2021\/05\/18-add-description.jpg\" alt=\"add description to new gift rule in woocommerce free gift plugin\" class=\"wp-image-2065\" style=\"width:1408px\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-2-set-the-amount-for-buy-x-get-y-method\"><strong>Step 2: set the amount for buy x get y method<\/strong><\/h2>\n\n\n\n<p>In the \u201c<strong>quantities and settings<\/strong>\u201d section, you have to specify <strong>x<\/strong> and <strong>y<\/strong> under <strong>Buy<\/strong> and <strong>Get<\/strong> fields, respectively. According to our strategy, if customers by 3 products from &#8220;iCat&#8221; category they will get 2 free gifts from &#8220;music&#8221; category, so, we typed <strong>3<\/strong> and <strong>2<\/strong> under <strong>buy<\/strong> and <strong>get<\/strong> Fields, respectively<\/p>\n\n\n\n<p>There is also other setting that you need to set them according to your strategy. In this tutorial, we marked \u201c<strong>same gift<\/strong>\u201d but keep \u201c<strong>auto add gift to cart<\/strong>\u201d unmarked.<\/p>\n\n\n\n<p>In this way, customers can choose their preferred free gift from the list of products offered to them related to the &#8220;music&#8221; category.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-content\/uploads\/sites\/9\/2021\/05\/18-set-the-amount-for-buy-x-get-y-method.jpg\"><img decoding=\"async\" width=\"1392\" height=\"752\" src=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-content\/uploads\/sites\/9\/2021\/05\/18-set-the-amount-for-buy-x-get-y-method.jpg\" alt=\"set custom amounts of buy X get Y method\" class=\"wp-image-2066\" style=\"width:1392px\"\/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-3-choose-the-specific-categories-in-the-buy-section\"><strong>Step 3: Choose the specific categories in the buy section&nbsp;<\/strong><\/h2>\n\n\n\n<p>To set up a free gift if users buy from specific categories, you need to add those categories under the \u201c<strong>Products- buy<\/strong>\u201d section by following the below instructions<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Press \u201c<strong>Add product\u201d<\/strong> button<\/li>\n\n\n\n<li>Open the first combobox and find \u201c<strong>product<\/strong>\u201d item<\/li>\n\n\n\n<li>Choose \u201c<strong>product category<\/strong>\u201d under this item<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-content\/uploads\/sites\/9\/2021\/05\/18-add-product-button.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1404\" height=\"756\" src=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-content\/uploads\/sites\/9\/2021\/05\/18-add-product-button.jpg\" alt=\"set get products to free gift if users buy from specific categories\" class=\"wp-image-2068\" style=\"width:1404px\"\/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Select \u201c<strong>in list<\/strong>\u201d from the 2nd combobox<\/li>\n\n\n\n<li>Type \u201c<strong>a<\/strong>\u201d to see the product categories<\/li>\n\n\n\n<li>Choose \u201c<strong>iCat<\/strong>\u201d from the list<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-content\/uploads\/sites\/9\/2021\/05\/18-choose-categories-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1408\" height=\"753\" src=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-content\/uploads\/sites\/9\/2021\/05\/18-choose-categories-1.jpg\" alt=\"choose categories for free gift if users buy from specific categories in WooCommerce product gift plugin\" class=\"wp-image-2069\" style=\"width:1408px\"\/><\/a><\/figure>\n\n\n\n<p><em>Note: there is no limitation for adding product categories under \u201c<\/em><strong><em>product buy<\/em><\/strong><em>\u201d section which means you can add as many product categories as you want to let customers receive the free gift by purchasing any product from them.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-step-4-specify-the-free-gift\"><strong>Step 4: Specify the free gift<\/strong><\/h2>\n\n\n\n<p>In this section, you can instruct a plug-in to offer free gift from one or more categories to your customers. To do this, you need to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Type a letter like \u201c<strong>m<\/strong>\u201d in the \u201c<strong>include category \/tag\/ taxonomy<\/strong>\u201d field<\/li>\n\n\n\n<li>Choose \u201c<strong>music<\/strong>\u201d from the list of categories<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-content\/uploads\/sites\/9\/2021\/05\/18-Specify-the-free-gift.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1402\" height=\"753\" src=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-content\/uploads\/sites\/9\/2021\/05\/18-Specify-the-free-gift.jpg\" alt=\"Specify the free gift in woocommerce free gift plugin\" class=\"wp-image-2070\" style=\"width:1402px\"\/><\/a><\/figure>\n\n\n\n<p><em>Note: in this section you can add as many products or categories as you want to be offered as a free gift to your customers. You can also exclude some products or categories from the list of free gifts.<\/em><\/p>\n\n\n\n<p>By pressing \u201c<strong>Save changes<\/strong>\u201d, this promotion will be activated on your online store, successfully.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-customer-view\"><strong>Customer view<\/strong><\/h2>\n\n\n\n<p>Now, let&#8217;s see how customer can receive this free gift after purchasing from your online shop.<\/p>\n\n\n\n<p>As you can see in the below picture when a customer buy some products with the total quantity more than 3 from &#8220;iCat&#8221; category, a combo box will be appeared under the cart page and ask them to \u201c<strong>Select their gift<\/strong>\u201d from a list which is obviously related to the &#8220;music&#8221; category.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-content\/uploads\/sites\/9\/2021\/05\/18-customer-view.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1405\" height=\"756\" src=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-content\/uploads\/sites\/9\/2021\/05\/18-customer-view.jpg\" alt=\"customer view for select gift in WooCommerce product gift plugin \" class=\"wp-image-2071\" style=\"width:1405px\"\/><\/a><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Offering free gifts when customers buy from specific categories is very popular. Store managers choose this method to increase the sale of one or more categories on their website. It is obvious that when customers know that a free gift is waiting for them by buying products from one or more specific categories, they will [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2062","post","type-post","status-publish","format-standard","hentry","category-plugin-usage"],"_links":{"self":[{"href":"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-json\/wp\/v2\/posts\/2062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-json\/wp\/v2\/comments?post=2062"}],"version-history":[{"count":2,"href":"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-json\/wp\/v2\/posts\/2062\/revisions"}],"predecessor-version":[{"id":3354,"href":"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-json\/wp\/v2\/posts\/2062\/revisions\/3354"}],"wp:attachment":[{"href":"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-json\/wp\/v2\/media?parent=2062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-json\/wp\/v2\/categories?post=2062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/wp-json\/wp\/v2\/tags?post=2062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}