{"id":29012,"date":"2024-06-03T07:56:01","date_gmt":"2024-06-03T07:56:01","guid":{"rendered":"https:\/\/ithemelandco.com\/?p=29012"},"modified":"2025-10-16T10:58:53","modified_gmt":"2025-10-16T10:58:53","slug":"woocommerce-cheapest-cart-item-as-gift","status":"publish","type":"post","link":"https:\/\/ithemelandco.com\/blog\/woocommerce-cheapest-cart-item-as-gift\/","title":{"rendered":"How to offer cheapest item in the cart as free gift in WooCommerce? (2 method)"},"content":{"rendered":"\n<p>WooCommerce cheapest cart item in the cart as free gift is one of the most popular <a href=\"https:\/\/www.markuptrend.com\/5-unique-ways-to-promote-woocommerce-products-and-increase-sales\/\" target=\"_blank\" rel=\"noreferrer noopener\">marketing strategies online stores offer<\/a> to boost their sales.<\/p>\n\n\n\n<p>The customers adore the offer as they can receive a product for free when purchasing from your shop. The store owners can also benefit from it to attract more customers to the store.<\/p>\n\n\n\n<p>In this post, we will explain how to set up a WooCommerce cheapest product as gift offer which means the cheapest item in the customer cart is added for free if the conditions are met.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Method #1: Get the cheapest product in the cart for free gift in WooCommerce by coding<\/h2>\n\n\n\n<p>One of the quickest methods for offering WooCommerce cheapest cart item as a free gift is adding a code snippet to the <strong>functions.php<\/strong> file of the WordPress theme. Although this method is simple to use, we recommend you consider below notices before going through it:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Back up your WordPress data to restore the site in case of any problems after running the code.<\/li>\n\n\n\n<li>Create a <span style=\"text-decoration: underline\"><a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">child theme<\/a><\/span> to insert the code in the <strong>functions.php<\/strong> file.<\/li>\n\n\n\n<li>Don\u2019t use this method if you have no experience in coding, you can ask an expert to do this task.<\/li>\n\n\n\n<li>Try a site-specific plugin like&nbsp;<span style=\"text-decoration: underline\"><a href=\"https:\/\/wordpress.org\/plugins\/code-snippets\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Code Snippets<\/a><\/span> to add this code to WordPress.<\/li>\n<\/ul>\n\n\n\n<p>Here, you can find the code snippet for giving WooCommerce cheapest item in the cart as gift:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_action( 'woocommerce_before_calculate_totals', 'it_cheapest_cart_item_half_off', 9999 );\nfunction it_cheapest_cart_item_half_off( $cart ) {\n&nbsp; &nbsp; if ( is_admin() &amp;&amp; ! defined( 'DOING_AJAX' ) ) return;\n&nbsp; &nbsp; if ( did_action( 'woocommerce_before_calculate_totals' ) &gt;= 2 ) return;\n&nbsp; &nbsp; if ( count( $cart-&gt;get_cart() ) &lt; 2 ) return; \/\/ AT LEAST 2 PRODUCTS IN THE CART\n&nbsp; &nbsp; $min = PHP_FLOAT_MAX;\n&nbsp; &nbsp; \/\/ LOOP THROUGH THE CART TO FIND THE CHEAPEST ITEM\n&nbsp; &nbsp; foreach ( $cart-&gt;get_cart() as $cart_item_key =&gt; $cart_item ) {\n&nbsp; &nbsp; &nbsp; if ( $cart_item&#091;'data']-&gt;get_price() &lt;= $min ) {\n&nbsp; &nbsp; &nbsp; &nbsp; $min = $cart_item&#091;'data']-&gt;get_price();\n&nbsp; &nbsp; &nbsp; &nbsp; $cheapest = $cart_item_key;\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; }\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\/\/ LOOP THROUGH CART TO REDUCE CHEAPEST ITEM PRICE BY 50%\n&nbsp; &nbsp; foreach ( $cart-&gt;get_cart() as $cart_item_key =&gt; $cart_item ) {\n&nbsp; &nbsp; &nbsp; if ( $cheapest == $cart_item_key ) {\n&nbsp; &nbsp; &nbsp; &nbsp; $price = $cart_item&#091;'data']-&gt;get_price() \/ 2;\n&nbsp; &nbsp; &nbsp; &nbsp; $cart_item&#091;'data']-&gt;set_price( $price );\n&nbsp; &nbsp; &nbsp; &nbsp; $cart_item&#091;'data']-&gt;set_sale_price( $price );\n&nbsp; &nbsp; &nbsp; }\n&nbsp; &nbsp; }\n}<\/code><\/pre>\n\n\n\n<p>As illustrated in the below screenshot, after running the code, if customers buy some products from your store, the cheapest item in their cart will be offered to them for free.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/cheapest-item-result.jpg\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1085\" height=\"578\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/cheapest-item-result.jpg\" alt=\"Cheapest item in WooCommerce cart for free by coding result\" class=\"wp-image-29017\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/cheapest-item-result.jpg 1085w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/cheapest-item-result-500x266.jpg 500w\" sizes=\"(max-width: 1085px) 100vw, 1085px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Method #2: Offer the cheapest item in the cart as gift with the free gift for WooCommerce plugin<\/h2>\n\n\n\n<p>The <span style=\"text-decoration: underline\"><a href=\"https:\/\/ithemelandco.com\/plugins\/free-gifts-for-woocommerce\/?utm_source=blog&amp;utm_content=cheapest-item-in-cart\" target=\"_blank\" rel=\"noreferrer noopener\">free gifts for WooCommerce plugin<\/a><\/span> is a gamification plugin for creating meaningful promotional plans and marketing campaigns that are beneficial for both the store and the customers. You can use this plugin to offer several types of free gifts such as BOGO, buy x get y, subtotal amount, etc.<\/p>\n\n\n\n<p>In this guide, you can learn how to offer WooCommerce cheapest item in cart as gift with this plugin.<\/p>\n\n\n\n<div class=\"wp-block-columns alignwide are-vertically-aligned-center main-cta-cnt has-background is-layout-flex wp-container-core-columns-is-layout-4a33225c wp-block-columns-is-layout-flex\" style=\"background-color:#3d67ff;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-group is-layout-constrained wp-container-core-group-is-layout-4f39da6d wp-block-group-is-layout-constrained\" style=\"padding-top:15px\">\n<p class=\"single-cta-heading has-white-color has-text-color has-link-color wp-elements-f8e1add8464777653a00ca2733bff66e\" style=\"font-size:26px;font-style:normal;font-weight:800\">GIFTiT &#8211; Free Gifts For WooCommerce<\/p>\n\n\n\n<p class=\"single-cta-desc has-white-color has-text-color has-link-color wp-elements-c7d99d4b3ffecb13d07e7d26f629ed9e\" style=\"font-size:16px\">The easy way to offer cheapest product in the cart as gift in WooCommerce<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button main-cta-button\"><a class=\"wp-block-button__link has-text-color has-background wp-element-button\" href=\"https:\/\/ithemelandco.com\/plugins\/free-gifts-for-woocommerce\/?utm_source=blog&amp;utm_content=cheapest-item-in-cart\" style=\"border-style:none;border-width:0px;border-radius:40px;color:#ffffff;background-color:#0fba5e;padding-top:10px;padding-right:30px;padding-bottom:10px;padding-left:30px;font-style:normal;font-weight:500\" target=\"_blank\" rel=\"noreferrer noopener\">Buy Plugin<\/a><\/div>\n\n\n\n<div class=\"wp-block-button is-style-outline is-style-outline--1\"><a class=\"wp-block-button__link has-white-background-color has-text-color has-background wp-element-button\" href=\"https:\/\/wordpress.org\/plugins\/ithemeland-free-gifts-for-woo\/\" style=\"border-style:none;border-width:0px;border-radius:40px;color:#3d67ff;padding-top:10px;padding-right:30px;padding-bottom:10px;padding-left:30px;font-style:normal;font-weight:500\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Free Version<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img decoding=\"async\" width=\"532\" height=\"355\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/10\/giftit-test-banner.png\" alt=\"GIFTiT - Free Gifts For WooCommerce plugin by ithemeland\" class=\"wp-image-48720\" style=\"width:440px;height:auto\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/10\/giftit-test-banner.png 532w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/10\/giftit-test-banner-500x335.png 500w\" sizes=\"(max-width: 532px) 100vw, 532px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Install the free gifts for WooCommerce plugin<\/h3>\n\n\n\n<p>Like other WordPress plugins, to use free gifts for WooCommerce on your website you need to install the ZIP file through a FTP server or WordPress installer. The installation process is easy and straightforward. However, in case of any problem, you can <span style=\"text-decoration: underline\"><a href=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/how-to-install-the-free-gifts-for-woocommerce-plugin\/\" target=\"_blank\" rel=\"noreferrer noopener\">read this step-by-step guide to install the WooCommerce free gifts plugin<\/a><\/span>.<\/p>\n\n\n\n<p>Once you install and activate the plugin, you can see the <strong>Woo Free Gift<\/strong> menu in the WordPress dashboard. Click on this menu then<strong> <\/strong>the<strong> Rules| settings<\/strong> option to see the <strong>Rules<\/strong> page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/select-rules-and-settings-sub-menu.png\"><img decoding=\"async\" width=\"128\" height=\"148\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/select-rules-and-settings-sub-menu.png\" alt=\"Select rules and settings submenu in Woo Free Gift menu\" class=\"wp-image-29018\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Add a new rule and set the WooCommerce cheapest cart as gift method<\/h3>\n\n\n\n<p>On the <strong>Rule <\/strong>page, you can find the <strong>Add Rule <\/strong>button with a list of all rules that you have created before. To create a new rule, you need to press <strong>Add Rule<\/strong> to open a <strong>Rule <\/strong>Form.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/select-add-rule-button.png\"><img loading=\"lazy\" decoding=\"async\" width=\"989\" height=\"128\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/select-add-rule-button.png\" alt=\"Select Add Rule button in WooCommerce free gifts plugin\" class=\"wp-image-29019\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/select-add-rule-button.png 989w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/select-add-rule-button-500x65.png 500w\" sizes=\"(max-width: 989px) 100vw, 989px\" \/><\/a><\/figure>\n\n\n\n<p>The <strong>Rule Form<\/strong> of free gifts for WooCommerce plugin contains all the options required for applying different free gift strategies with a dynamic design. It means when you choose your preferred method such as WooCommerce cheapest cart item as gift, the items in the form will be updated accordingly which makes the process of setup rules more convenient.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/select-simple-method.png\"><img loading=\"lazy\" decoding=\"async\" width=\"990\" height=\"772\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/select-simple-method.png\" alt=\"Add new rule form in free gifts for WooCommerce plugin\" class=\"wp-image-29020\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/select-simple-method.png 990w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/select-simple-method-500x390.png 500w\" sizes=\"(max-width: 990px) 100vw, 990px\" \/><\/a><\/figure>\n\n\n\n<p>The first item you can see in the <strong>Add Rule<\/strong> form is <strong>Method<\/strong>. To start creating your rule, you need to open its dropdown list and choose your preferred method. By default, the most useful free gift offering methods are listed in this field such as buy x get x, simple, bulk quantity, tiered quantity, etc.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/select-cheapest-item-in-cart-method.png\"><img loading=\"lazy\" decoding=\"async\" width=\"494\" height=\"324\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/select-cheapest-item-in-cart-method.png\" alt=\"Select Cheapest item in the cart as free gift method in WooCommerce free gifts plugin\" class=\"wp-image-29021\" \/><\/a><\/figure>\n\n\n\n<p>So, when you choose the <strong>Cheapest item in cart<\/strong> from the list field, the following sections will be displayed:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Quantities &amp; Settings&nbsp;<\/li>\n\n\n\n<li>Products- Buy<\/li>\n\n\n\n<li>Conditions<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/sections-rule-form-result.png\"><img loading=\"lazy\" decoding=\"async\" width=\"982\" height=\"643\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/sections-rule-form-result.png\" alt=\"Add rule form section in WooCommerce free gifts product plugin\" class=\"wp-image-29022\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/sections-rule-form-result.png 982w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/sections-rule-form-result-500x327.png 500w\" sizes=\"(max-width: 982px) 100vw, 982px\" \/><\/a><\/figure>\n\n\n\n<p>In the next steps, we will show you how to set items in the form to create and apply the cheapest product in the cart as gift in WooCommerce.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3:&nbsp; Set Quantities &amp; settings<\/h3>\n\n\n\n<p>In the <strong>Quantities &amp; Settings<\/strong> section, you should set the number of products customers must order to receive the gift. You can insert the quantity in the <strong>Buy <\/strong>field manually.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/select-quantity-buy.png\"><img loading=\"lazy\" decoding=\"async\" width=\"240\" height=\"108\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/select-quantity-buy.png\" alt=\"Select Buy field in  quantities &amp; settings section of free gifts for WooCommerce plugin\" class=\"wp-image-29023\" \/><\/a><\/figure>\n\n\n\n<p>For example, if you insert <strong>4 <\/strong>in the <strong>Buy <\/strong>field, customers must order 4 items from your store to receive the cheapest one as gift.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Add buy product items to offer WooCommerce cheapest cart product as gift<\/h3>\n\n\n\n<p>The next section which is <strong>Product&nbsp; Buy<\/strong> allows you to add as many products as you need to apply the rule to. The customers should buy the products you have added here, to receive the free gift.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/add-buy-products.png\"><img loading=\"lazy\" decoding=\"async\" width=\"978\" height=\"326\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/add-buy-products.png\" alt=\"Add buy product items to offer WooCommerce cheapest cart product as gift\" class=\"wp-image-29025\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/add-buy-products.png 978w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/add-buy-products-500x167.png 500w\" sizes=\"(max-width: 978px) 100vw, 978px\" \/><\/a><\/figure>\n\n\n\n<p>By pressing the <strong>Add Product<\/strong> button, a new row will be added in this section. Then you can select one of the below items to add your preferred products:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Product<\/strong>: To apply the rule to one or more specific products.<\/li>\n\n\n\n<li><strong>Product Variation<\/strong>: To apply the rule to one or more variations of products.<\/li>\n\n\n\n<li><strong>Product Category<\/strong>: To apply the rule to the products in one specific category.&nbsp;<\/li>\n\n\n\n<li><strong>Product Attributes<\/strong>: To apply the rule to one or more attributes of products.&nbsp;<\/li>\n\n\n\n<li><strong>Product Tags:<\/strong> To apply the rule on the products with the selected tags<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/add-desired-products.png\"><img loading=\"lazy\" decoding=\"async\" width=\"967\" height=\"303\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/add-desired-products.png\" alt=\"Add desired products to offer WooCommerce cheapest cart product as gift\" class=\"wp-image-29027\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/add-desired-products.png 967w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/add-desired-products-500x157.png 500w\" sizes=\"(max-width: 967px) 100vw, 967px\" \/><\/a><\/figure>\n\n\n\n<p>You can add unlimited rows to set different products in this section and encourage customers to buy the items you want to boost their sales.&nbsp;&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6: Add conditions to offer WooCommerce cheapest item in cart as gift<\/h3>\n\n\n\n<p>In the last section, you can set various conditions to let the customers receive the gifts in specific situations. The conditions you can apply to the rule are divided into some categories helping you to easily find the terms to set up rules.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/add-conditions.png\"><img loading=\"lazy\" decoding=\"async\" width=\"986\" height=\"193\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/add-conditions.png\" alt=\"Add conditions to offer WooCommerce cheapest product in the cart as gift method\" class=\"wp-image-29028\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/add-conditions.png 986w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/add-conditions-500x98.png 500w\" sizes=\"(max-width: 986px) 100vw, 986px\" \/><\/a><\/figure>\n\n\n\n<p>Let\u2019s review the most useful condition terms:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Date<\/strong>: The terms in this category let you offer the free gift on a specific date or a date range. This is useful when you want to run marketing campaigns on popular occasions like Christmas, Black Friday, etc.<\/li>\n\n\n\n<li><strong>Cart<\/strong>: These terms allow you to offer the free gift when specific conditions related to the customer cart are met like cart subtotal price, cart total weight, cart item count, etc,<\/li>\n\n\n\n<li><strong>Cart items<\/strong>: If you want to limit your free gift offer based on cart items like products, variations, attributes, etc. use the terms in this category.<\/li>\n\n\n\n<li><strong>Checkout<\/strong>: This category allows you to set conditions for customer payment methods.<\/li>\n\n\n\n<li><strong>Checkout address<\/strong>: This term is useful when you want to limit the offer to customers from a specific country.<\/li>\n\n\n\n<li><strong>Customer<\/strong>: The terms in this category let you limit the free gifts offered to specific customers like the registered users.<\/li>\n\n\n\n<li><strong>Purchase history<\/strong>: You can use these terms to offer free gifts to customers who purchased specific products or amounts from your store in their past orders.<\/li>\n<\/ul>\n\n\n\n<p>You can set as many conditions as you need to in this section to create complicated rules.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/conditions-fields-result.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1665\" height=\"475\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/conditions-fields-result.png\" alt=\"Conditions fields in the WooCommerce free gifts plugin rule form\" class=\"wp-image-29029\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/conditions-fields-result.png 1665w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/conditions-fields-result-500x143.png 500w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/conditions-fields-result-1536x438.png 1536w\" sizes=\"(max-width: 1665px) 100vw, 1665px\" \/><\/a><\/figure>\n\n\n\n<p>When you fill all fields in the form, click on <strong>Save Changes<\/strong> to apply the rule to the specified products.<\/p>\n\n\n\n<p>So, when customers order the selected products and their orders meet all specified conditions, they can receive WooCommerce cheapest item in cart as gift.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Example: Buy 3 products from blue or red products in the clothing category to get the cheapest product for free<\/h3>\n\n\n\n<p>In this scenario, we want to offer the cheapest item for free to the customers who order 4 items with blue or red variations from the <strong>Clothing <\/strong>category.<\/p>\n\n\n\n<p>To apply this rule, try to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Choose the <strong>Cheapest item in the cart<\/strong> from the list of <strong>Methods<\/strong> field.<\/li>\n\n\n\n<li>Set <strong>4 <\/strong>in the <strong>Buy <\/strong>field.<\/li>\n\n\n\n<li>Add product row in the <strong>Product Buy<\/strong> section, and choose <strong>Product Attributes<\/strong>. Select <strong>At least one of the selected<\/strong> option from the second field, and select <strong>Red <\/strong>and <strong>Blue <\/strong>in the last field.<\/li>\n\n\n\n<li>Add another product row, and select<strong> Product Category. <\/strong>Select <strong>In List<\/strong> option from the second field, and<strong> <\/strong>then <strong>Clothing <\/strong>from the last field.<\/li>\n\n\n\n<li>Press the <strong>Save Changes<\/strong> button.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/customize-rule-form.png\"><img loading=\"lazy\" decoding=\"async\" width=\"985\" height=\"643\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/customize-rule-form.png\" alt=\"Set buy 3 products from blue or red products in the clothing category to get the cheapest product for free\" class=\"wp-image-29031\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/customize-rule-form.png 985w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/customize-rule-form-500x326.png 500w\" sizes=\"(max-width: 985px) 100vw, 985px\" \/><\/a><\/figure>\n\n\n\n<p>As illustrated below, when a customer ordered <strong>4 <\/strong>items from <strong>Red <\/strong>and <strong>Blue t-shirts<\/strong>, and add <strong>Cap<\/strong> to the cart. As you can see in the below, the <strong>Cap<\/strong> is the cheapest item in the cart. Based on cheapest item in the cart rule, a new <strong>Cap<\/strong> product is added to the cart automatically for free.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/customize-rule-result.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1143\" height=\"345\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/customize-rule-result.jpg\" alt=\"Buy 3 products from blue or red products result to get cheapest product for free in WooCommerce cart\" class=\"wp-image-29032\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/customize-rule-result.jpg 1143w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/customize-rule-result-500x151.jpg 500w\" sizes=\"(max-width: 1143px) 100vw, 1143px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Note<\/strong>: The gift is not always one of the products to which the rule applies. When customers order different products and their orders meet all of the conditions you have set in the rule form, automatically a new product with the cheapest price in the cart will be added to the cart for free.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why do you need to use the plugin method?<\/h2>\n\n\n\n<p>Creating WooCommerce cheapest cart item as free gift offers with a plugin has many advantages over coding. Here, we review some of them:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>User-friendly interface:<\/strong> Free gift for WooCommerce has an easy-to-use interface even for beginners. The hassle-free process of customizing the rule form makes it easy for all users to create several rules in a few seconds.&nbsp;<\/li>\n\n\n\n<li><strong>Endless rules with easy management:<\/strong> You can create unlimited rules in this plugin and Enable\/Disable them with one click.&nbsp;&nbsp;<\/li>\n\n\n\n<li><strong>Safe:<\/strong> Free gift for WooCommerce plugin is compatible with all WordPress themes and third-party plugins. So, applying the rules has no harmful effect on your website.<\/li>\n\n\n\n<li><strong>Support all gift methods:<\/strong>&nbsp; All free gift methods like buy x get x, buy x get y, subtotal, WooCommerce cheapest cart item as gift, and more are available in the plugin to help you run your campaigns with a few clicks.<\/li>\n\n\n\n<li><strong>No coding skill:<\/strong> There is no need to have coding knowledge to work with this plugin. Users have access to a dynamic form for setup conditions or creating rules. So, there is no need to insert several codes into the <strong>function.php<\/strong> file, every time you want to run a free gift campaign.<\/li>\n\n\n\n<li><strong>Flexible:<\/strong> All methods and conditions you may need to run your free gift campaigns have been designed in this plugin. Users can enjoy creating rules with high flexibility and no limitations.<\/li>\n\n\n\n<li><strong>Unlimited conditions:<\/strong> The plugin allows you to apply powerful rules on your site by adding various conditions. The conditional logic feature comes with so many options you can use to customize the rules.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-columns alignwide are-vertically-aligned-center main-cta-cnt has-background is-layout-flex wp-container-core-columns-is-layout-4a33225c wp-block-columns-is-layout-flex\" style=\"background-color:#3d67ff;padding-top:30px;padding-right:30px;padding-bottom:30px;padding-left:30px\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\">\n<div class=\"wp-block-group is-layout-constrained wp-container-core-group-is-layout-4f39da6d wp-block-group-is-layout-constrained\" style=\"padding-top:15px\">\n<p class=\"single-cta-heading has-white-color has-text-color has-link-color wp-elements-f8e1add8464777653a00ca2733bff66e\" style=\"font-size:26px;font-style:normal;font-weight:800\">GIFTiT &#8211; Free Gifts For WooCommerce<\/p>\n\n\n\n<p class=\"single-cta-desc has-white-color has-text-color has-link-color wp-elements-c7d99d4b3ffecb13d07e7d26f629ed9e\" style=\"font-size:16px\">The easy way to offer cheapest product in the cart as gift in WooCommerce<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button main-cta-button\"><a class=\"wp-block-button__link has-text-color has-background wp-element-button\" href=\"https:\/\/ithemelandco.com\/plugins\/free-gifts-for-woocommerce\/?utm_source=blog&amp;utm_content=cheapest-item-in-cart\" style=\"border-style:none;border-width:0px;border-radius:40px;color:#ffffff;background-color:#0fba5e;padding-top:10px;padding-right:30px;padding-bottom:10px;padding-left:30px;font-style:normal;font-weight:500\" target=\"_blank\" rel=\"noreferrer noopener\">Buy Plugin<\/a><\/div>\n\n\n\n<div class=\"wp-block-button is-style-outline is-style-outline--2\"><a class=\"wp-block-button__link has-white-background-color has-text-color has-background wp-element-button\" href=\"https:\/\/wordpress.org\/plugins\/ithemeland-free-gifts-for-woo\/\" style=\"border-style:none;border-width:0px;border-radius:40px;color:#3d67ff;padding-top:10px;padding-right:30px;padding-bottom:10px;padding-left:30px;font-style:normal;font-weight:500\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Free Version<\/a><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\">\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img decoding=\"async\" width=\"532\" height=\"355\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/10\/giftit-test-banner.png\" alt=\"GIFTiT - Free Gifts For WooCommerce plugin by ithemeland\" class=\"wp-image-48720\" style=\"width:440px;height:auto\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/10\/giftit-test-banner.png 532w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2025\/10\/giftit-test-banner-500x335.png 500w\" sizes=\"(max-width: 532px) 100vw, 532px\" \/><\/figure>\n<\/div>\n<\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>WooCommerce cheapest product in the cart as a gift offer has many advantages for eCommerce websites. Using this method encourages customers to buy more products to receive the gift. Although WooCommerce has no built-in option for offering free gifts in online stores, managers can use coding methods or plugins to apply flexible rules to their shop.<\/p>\n\n\n\n<p>In this post, we provided a step-by-step guide about both methods. We also mentioned the most advantages of creating gift offers with the free gifts for WooCommerce plugin.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WooCommerce cheapest cart item in the cart as free gift is one of the most popular marketing strategies online stores offer to boost their sales. The customers adore the offer as they can receive a product for free when purchasing from your shop. The store owners can also benefit from it to attract more customers [&hellip;]<\/p>\n","protected":false},"author":1990,"featured_media":37177,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50,73],"tags":[],"class_list":["post-29012","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-woocommerce"],"featured_image_url":"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/06\/offer-cheapest-product-500x335.jpg","excerpt_plain":"WooCommerce cheapest cart item in the cart as free gift is one of the most popular marketing strategies online stores offer to boost their sales. The customers adore the offer as they can receive a product for free when purchasing from your shop. The store owners can also benefit from it to attract more customers [&hellip;]","_embedded":{"wp:term":[[{"term_id":50,"name":"Tutorials","slug":"tutorials","term_group":0,"term_taxonomy_id":50,"taxonomy":"category","description":"Follow and learn the latest educational articles about WordPress plugins and WooCommerce here","parent":0,"count":256,"filter":"raw"},{"term_id":73,"name":"WooCommerce","slug":"woocommerce","term_group":0,"term_taxonomy_id":73,"taxonomy":"category","description":"Do you use WooCommerce to manage your online store? We suggest you read this category of WooCommerce articles.","parent":50,"count":205,"filter":"raw"}]]},"_links":{"self":[{"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/posts\/29012","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/users\/1990"}],"replies":[{"embeddable":true,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/comments?post=29012"}],"version-history":[{"count":2,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/posts\/29012\/revisions"}],"predecessor-version":[{"id":48900,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/posts\/29012\/revisions\/48900"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/media\/37177"}],"wp:attachment":[{"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/media?parent=29012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/categories?post=29012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/tags?post=29012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}