{"id":27108,"date":"2024-02-14T15:10:36","date_gmt":"2024-02-14T15:10:36","guid":{"rendered":"https:\/\/ithemelandco.com\/?p=27108"},"modified":"2026-06-07T13:08:40","modified_gmt":"2026-06-07T13:08:40","slug":"woocommerce-bogo-offer-for-variable-products","status":"publish","type":"post","link":"https:\/\/ithemelandco.com\/blog\/woocommerce-bogo-offer-for-variable-products\/","title":{"rendered":"WooCommerce BOGO for Variable Products in 2 Simple Methods"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">BOGO offers are one of the most effective ways to increase sales in WooCommerce, but setting them up for variable products can be more challenging than simple products. When a product has different sizes, colors, models, or variations, you need to make sure the offer applies to the right variation and gives the correct free product to the customer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, you may want to offer \u201cBuy 1 Get 1 Free\u201d only for a specific T-shirt color, or let customers buy one product variation and choose a free gift from another category. In these cases, a basic discount is not enough because the rule must understand product variations, quantities, gift products, and cart conditions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this tutorial, you\u2019ll learn how to apply a BOGO offer for WooCommerce variable products using custom code and<a href=\"https:\/\/ithemelandco.com\/plugins\/free-gifts-for-woocommerce\/?utm_source=blog&amp;utm_content=bogo-for-variable-products\" target=\"_blank\" rel=\"noreferrer noopener\"> GIFTiT &#8211; Free Gifts for WooCommerce<\/a>. We\u2019ll explain how Buy X Get X and Buy X Get Y offers work, how to target specific product variations, and how to create flexible free gift rules without editing every product manually.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Stores can approach this goal in several ways. If you are configuring BOGO rules for variable products,  <a href=\"https:\/\/ithemelandco.com\/blog\/complete-guide-woo-free-gifts\/?utm_source=blog&amp;utm_content=bogo-for-variable-products\" target=\"_blank\" rel=\"noreferrer noopener\">WooCommerce gift offer strategies<\/a> provides a useful starting point.<\/p>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" id=\"method-1\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Apply BOGO offer for variable products in WooCommerce by coding<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The easiest solution to offer a buy one get one promotion for variable products in WooCommerce is inserting a piece of code in function.php. This method is useful for store managers who are experts in coding and have enough knowledge about working with WordPress databases.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you have decided to get help from this method, consider the following points:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Backup your WordPress database to restore your site in case of any problems.<\/li>\n\n\n\n<li>Create a child theme before applying this code.<\/li>\n\n\n\n<li>Ask an expert to do this task if you have no experience in coding.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Now, you can use the following code to apply BOGO offers for variable products. This code can apply for a variable product with ID no.15 (Hoodie-Red) and the scenario is like the below:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If customers buy 2 Hoodie-Red, they can get one for free.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here, you can find the related code:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_action('woocommerce_cart_calculate_fees', 'ts_add_custom_discount_2nd_at_50', 10, 1 );<br>function ts_add_custom_discount_2nd_at_50( $wc_cart ){<br>if ( is_admin() &amp;&amp; ! defined( 'DOING_AJAX' ) ) return;<br>$discount = 0;<br>$items_prices = array();<br>\/\/ Set here your targeted variable product ID<br>$targeted_product_id = 15;<br>foreach ( $wc_cart-&gt;get_cart() as $key =&gt; $cart_item ) {<br>if( $cart_item&#91;'product_id'] == $targeted_product_id ){<br>$qty = intval( $cart_item&#91;'quantity'] );<br>for( $i = 0; $i &lt; $qty; $i++ )<br>$items_prices&#91;] = floatval( $cart_item&#91;'data']-&gt;get_price());<br>}<br>}<br>$count_items_prices = count($items_prices);<br>if( $count_items_prices &gt; 1 ) foreach( $items_prices as $key =&gt; $price )<br>if( $key % 2 == 1 ) $discount -= number_format($price \/ 2, 2 );<br>if( $discount != 0 ){<br>\/\/ Displaying a custom notice (optional)<br>wc_clear_notices();<br>wc_add_notice( __(\"You get 50% of discount on the 2nd item\"), 'notice');<br>\/\/ The discount<br>$wc_cart-&gt;add_fee( 'Discount 2nd at 50%', $discount, true );<br>}<br>}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can replace the ID no. \u2013 in the yellow highlighted line -to apply BOGO offer WooCommerce for variable products on your website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As a result, when the customers add 2 Hoodie-Red to their WooCommerce cart, the discount applies to the second variable product as illustrated below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/result-bogo-offer-for-variable-products.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"705\" height=\"778\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/result-bogo-offer-for-variable-products.png\" alt=\"result BOGO offer for variable products in WooCommerce by coding\" class=\"wp-image-27112\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/result-bogo-offer-for-variable-products.png 705w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/result-bogo-offer-for-variable-products-500x552.png 500w\" sizes=\"(max-width: 705px) 100vw, 705px\" \/><\/a><figcaption class=\"wp-element-caption\">bogo in result<\/figcaption><\/figure>\n\n\n\n<div style=\"height:10px\" aria-hidden=\"true\" id=\"method-2\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Apply buy one get one for variable products by free gift for WooCommerce plugin<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><span style=\"text-decoration: underline\"><a href=\"https:\/\/ithemelandco.com\/plugins\/free-gifts-for-woocommerce\/?utm_source=blog&amp;utm_content=bogo-for-variable-products\" target=\"_blank\" rel=\"noreferrer noopener\">Free gifts for WooCommerce<\/a><\/span> is a practical solution for offering different types of BOGO offers or other promotional plans like buy x get y, subtotal, etc. With an easy-to-use interface and various conditions that you can set to customize the rule, this is one of the best tools for applying BOGO offers for variable products in your WooCommerce store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s review the step-by-step guide for running BOGO offer WooCommerce for variable products with this plugin.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Install the free gifts for WooCommerce plugin<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The first step for using free gift for WooCommerce plugin is downloading and installing it on your WordPress website.<\/p>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p><strong>Read more:<\/strong> <a href=\"https:\/\/ithemelandco.com\/docs\/free-gifts-for-woocommerce\/how-to-install-the-free-gifts-for-woocommerce-plugin\/?utm_source=blog&amp;utm_content=bogo-for-variable-products\" target=\"_blank\" rel=\"noreferrer noopener\">How to install the GIFTiT \u2013 Free Gifts for WooCommerce plugin?<\/a><\/p><\/blockquote><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After activation, you can go to the below address to see the Rules page:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>WordPress Dashboard &gt; Woo Free Gift &gt; Rules | Settings&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-rules-and-settings-section.png\"><img decoding=\"async\" width=\"176\" height=\"122\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-rules-and-settings-section.png\" alt=\"select rules and settings section in Woo Free Gift Plugin\" class=\"wp-image-27114\"\/><\/a><figcaption class=\"wp-element-caption\">Open GIFTiT plugin<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">On the rules page, you need to press the <strong>Add Rule<\/strong> button to create a new gift offer rule.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-add-rule-button.jpg\"><img decoding=\"async\" width=\"1299\" height=\"501\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-add-rule-button.jpg\" alt=\"select Add Rule button in rules page\" class=\"wp-image-37136\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-add-rule-button.jpg 1299w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-add-rule-button-500x193.jpg 500w\" sizes=\"(max-width: 1299px) 100vw, 1299px\" \/><\/a><figcaption class=\"wp-element-caption\">Add new rule<\/figcaption><\/figure>\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-8a83d729 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-5980c20d 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 wp-block-paragraph\" 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-7ad3aafa5bdaafce2e3d73f724c54769 wp-block-paragraph\" style=\"font-size:16px\">The easy way to Apply BOGO offer for variable products 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=bogo-for-variable-products\" 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 loading=\"lazy\" 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 2: Set BOGO (Buy One Get One) Offer for variable products in WooCommerce<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To apply BOGO offer WooCommerce for variable products in your online store, you can use one of the following scenarios:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Buy x get x method:<\/strong> When customers order one variable product get another one (the same product) for free.<\/li>\n\n\n\n<li><strong>Buy x get y method:<\/strong> When customers order one variable product get another product (different from the ordered product) for free.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s review both scenarios by making some examples:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Example 1: Apply BOGO with the buy x get x method<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">To run this type of BOGO offer for variable products in your online shop first you need to choose \u201c<strong>Buy x Get x<\/strong>\u201d from the <strong>Method <\/strong>field. (1) By selecting this method, you can see three boxes in the <strong>Rule <\/strong>form, including&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Quantities &amp; Settings:<\/strong> In this section, you can set the Buy and Get quantities.<\/li>\n\n\n\n<li><strong>Product Buy:<\/strong> This section allows you to specify the product that customers must add to their carts to receive the free gift.<\/li>\n\n\n\n<li><strong>Condition:<\/strong> You can set some conditions in this part to limit offering BOGO deals.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Now, suppose that you want to set the BOGO offer for the <strong>V-Neck T-Shirt Blue<\/strong> product. To make this happen, follow the below instructions:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the <strong>Quantities &amp; Settings<\/strong> section:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Insert <strong>1 <\/strong>for both <strong>Buy <\/strong>and <strong>Get <\/strong>quantity fields (2) which means when customers buy one product they will receive one gift.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Mark <strong>Auto Add Gift to Cart<\/strong> (3) to instruct the plugin to add the free gift to the customer&#8217;s cart, automatically.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/apply-bogo-with-buy-x-get-x-method.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1620\" height=\"850\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/apply-bogo-with-buy-x-get-x-method.png\" alt=\"Apply BOGO with buy x get x method in rules form\" class=\"wp-image-27116\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/apply-bogo-with-buy-x-get-x-method.png 1620w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/apply-bogo-with-buy-x-get-x-method-500x262.png 500w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/apply-bogo-with-buy-x-get-x-method-1536x806.png 1536w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/apply-bogo-with-buy-x-get-x-method-1000x525.png 1000w\" sizes=\"(max-width: 1620px) 100vw, 1620px\" \/><\/a><figcaption class=\"wp-element-caption\">Buy x get x rule for variable products<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the <strong>Products <\/strong>section:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Press the <strong>Add Product<\/strong> button.<\/li>\n\n\n\n<li>Choose <strong>Product Variation<\/strong> from the first drop-down list(4).<\/li>\n\n\n\n<li>Set <strong>In list<\/strong> for the second field.<\/li>\n\n\n\n<li>Add <strong>V-Neck-T-Shirt-Blue<\/strong> to the product selection field(5).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You can set other conditions in the <strong>Condition <\/strong>box if you need to (This is optional).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, press<strong> Save changes<\/strong> to apply buy one get one for variable products in your store which means when customers order one <strong>V-Neck-T-Shirt-Blue<\/strong>, they will receive another one for free in their cart:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/result-bogo-with-buy-x-get-x-method.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1081\" height=\"224\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/result-bogo-with-buy-x-get-x-method.png\" alt=\"result BOGO with buy x get x method in online shop\" class=\"wp-image-27117\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/result-bogo-with-buy-x-get-x-method.png 1081w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/result-bogo-with-buy-x-get-x-method-500x104.png 500w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/result-bogo-with-buy-x-get-x-method-1000x207.png 1000w\" sizes=\"(max-width: 1081px) 100vw, 1081px\" \/><\/a><figcaption class=\"wp-element-caption\">BOGO rule result in cart page<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Example 2: Apply BOGO with the buy x get y method<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">In this example, we want to set the BOGO rule for the below scenario:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When customers order one <strong>V-Neck-T-Shirt-Blue<\/strong>, they can choose one free product from the <strong>Accessories <\/strong>category.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As we mentioned in the previous example, the first step for creating any rule in free gifts for WooCommerce plugin is choosing the right method from the list. To apply this rule, we need to select the <strong>Buy X Get Y <\/strong>(1) method to see four sections in the rule form, including:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Quantities &amp; Settings<\/strong>: Same as the previous example.<\/li>\n\n\n\n<li><strong>Product-Buy: <\/strong>Same as the previous example.<\/li>\n\n\n\n<li><strong>Product-Get: <\/strong>In this section, you can specify which products must be offered as free gifts to the customers.<\/li>\n\n\n\n<li><strong>Conditions: <\/strong>Same as the previous example.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Now, by following the below steps, you can apply BOGO with the buy x get y strategy in our plugin:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Insert <strong>1 <\/strong>in both the <strong>Buy <\/strong>and <strong>Get <\/strong>quantity field (2).<\/li>\n\n\n\n<li>Choose the variable product in the <strong>Product-Buy<\/strong> section as we mentioned in the previous example.<\/li>\n\n\n\n<li>In the <strong>Product Get <\/strong>section, customize the free gift by using the following fields: (4)\n<ul class=\"wp-block-list\">\n<li><strong>Include product<\/strong>: Choose one or more products from your online store to offer as free gifts to the customers.<\/li>\n\n\n\n<li><strong>Include category\/tags\/taxonomy<\/strong>: Choose one specific category, tag, or taxonomy to offer the products related to it as free gifts to the customers.<\/li>\n\n\n\n<li><strong>Exclude product<\/strong>: Add one or more products in this field to exclude them from the list of free gifts.<\/li>\n\n\n\n<li><strong>Exclude category\/tags\/taxonomy<\/strong>: Add one specific category, tag, or taxonomy to exclude the products related to it from the list of free gifts.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/apply-bogo-with-buy-x-get-y-method-.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1671\" height=\"894\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/apply-bogo-with-buy-x-get-y-method-.png\" alt=\"Apply BOGO with buy x get y method in rules form\" class=\"wp-image-27119\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/apply-bogo-with-buy-x-get-y-method-.png 1671w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/apply-bogo-with-buy-x-get-y-method--500x268.png 500w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/apply-bogo-with-buy-x-get-y-method--1536x822.png 1536w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/apply-bogo-with-buy-x-get-y-method--1000x535.png 1000w\" sizes=\"(max-width: 1671px) 100vw, 1671px\" \/><\/a><figcaption class=\"wp-element-caption\">Fill the rule from as picture<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In this example, we want to let customers choose their gift from the products in the <strong>Accessory <\/strong>category. So, we set <strong>Accessories <\/strong>in the <strong>Include Category\/Tag\/Taxonomy<\/strong> field.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-include-category-tag-taxonomy-field.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1662\" height=\"289\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-include-category-tag-taxonomy-field.png\" alt=\"select Include Category\/Tag\/Taxonomy field in Products Get section\" class=\"wp-image-27120\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-include-category-tag-taxonomy-field.png 1662w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-include-category-tag-taxonomy-field-500x87.png 500w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-include-category-tag-taxonomy-field-1536x267.png 1536w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-include-category-tag-taxonomy-field-1000x174.png 1000w\" sizes=\"(max-width: 1662px) 100vw, 1662px\" \/><\/a><figcaption class=\"wp-element-caption\">Let customer choose gift from specific category<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, press \u201c<strong>Save changes\u201d<\/strong> to apply the rule in your online shop. (5)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">As you can see in the below picture when customers order one <strong>V-Neck-T-Shirt-Blue<\/strong>, they will see a list of products in the <strong>Accessory <\/strong>category and they can add one of them to their cart for free.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/result-bogo-with-buy-x-get-y-method-.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1105\" height=\"603\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/result-bogo-with-buy-x-get-y-method-.jpg\" alt=\"result BOGO with buy x get y method in online shop\" class=\"wp-image-37138\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/result-bogo-with-buy-x-get-y-method-.jpg 1105w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/result-bogo-with-buy-x-get-y-method--500x273.jpg 500w\" sizes=\"(max-width: 1105px) 100vw, 1105px\" \/><\/a><figcaption class=\"wp-element-caption\">Accessory category as free gift in cart<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Extra Feature for applying BOGO offers for variable products<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can set extra conditions in BOGO offers for variable products by using the default options available in the <strong>Condition <\/strong>section of our plugin. The items designed in this section are very flexible allowing you to run the BOGO in different situations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s review some of them.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Create BOGO offer WooCommerce for variable products on a specific date<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to offer the BOGO deal on a specific date like Christmas, Black Friday, etc. you can easily choose <strong>Date <\/strong>from the <strong>Date &amp; Times<\/strong> tab:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/create-bogo-offer-for-variable-products-on-specific-date.png\"><img loading=\"lazy\" decoding=\"async\" width=\"405\" height=\"331\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/create-bogo-offer-for-variable-products-on-specific-date.png\" alt=\"Create BOGO offer WooCommerce for variable products on specific date\" class=\"wp-image-27122\"\/><\/a><figcaption class=\"wp-element-caption\">Date and time conditions<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Then you can use a built-in calendar to set a specific date to apply the BOGO rule on your online store:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-calendar-to-set-specific-date.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1667\" height=\"158\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-calendar-to-set-specific-date.png\" alt=\"select calendar to set a specific date in conditions section\" class=\"wp-image-27123\" srcset=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-calendar-to-set-specific-date.png 1667w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-calendar-to-set-specific-date-500x47.png 500w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-calendar-to-set-specific-date-1536x146.png 1536w, https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-calendar-to-set-specific-date-1000x95.png 1000w\" sizes=\"(max-width: 1667px) 100vw, 1667px\" \/><\/a><figcaption class=\"wp-element-caption\">Set date condition<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Offer buy one get one for variable products with cart subtotal price limitation<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">It is also possible to offer BOGO deal to the customers that their cart subtotal price is more than a specific amount. To make this happen, you can simply choose <strong>Cart subtotal price<\/strong> from the Cart tab in the <strong>Condition<\/strong> section and then set a minimum price in the related field:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-cart-subtotal-price-limitation.png\"><img loading=\"lazy\" decoding=\"async\" width=\"398\" height=\"263\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-cart-subtotal-price-limitation.png\" alt=\"Offer buy one get one for variable products with cart subtotal price limitation\" class=\"wp-image-27124\"\/><\/a><figcaption class=\"wp-element-caption\">Cart subtotal price conditions<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Set BOGO offer for variable products to specific customers&#8217; role<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">One of the most popular conditions for offering a buy one get one promotion is appreciating loyal customers. In free gifts for WooCommerce plugin, you can set conditions to limit offering BOGO deals based on user role to fulfill this purpose.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, if you want to offer this giveaway to the sales managers who order products from your shop regularly, it is possible to choose <strong>User Role<\/strong> from the <strong>Customer <\/strong>tab and set the BOGO deal for the <strong>Sales Managers<\/strong> role only \u2013 It is worth mentioning that you need to create sales managers in the WordPress and assign some of your customers to this user role.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is also possible to offer the BOGO promotion to the registered customers by choosing<strong> Is logged in<\/strong> from the list as illustrated below:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-specific-customers-role.png\"><img loading=\"lazy\" decoding=\"async\" width=\"402\" height=\"262\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/select-specific-customers-role.png\" alt=\"Offer BOGO for variable products to specific customers role\" class=\"wp-image-27125\"\/><\/a><figcaption class=\"wp-element-caption\">Set gift for specific user roles<\/figcaption><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Set BOGO offer for variable products based on purchase history<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Sometimes you want to appreciate your loyal customers by offering BOGO deals. One of the best ways to make your loyal customers happy is by offering free gifts when they have already ordered products from specific categories, variations, tags, etc.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to apply this strategy, go to the<strong> Purchase History<\/strong> in the <strong>Condition <\/strong>box then choose one of the options which is suitable for your marketing strategy.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/set-purchase-history.png\"><img loading=\"lazy\" decoding=\"async\" width=\"395\" height=\"265\" src=\"https:\/\/ithemelandco.com\/blog\/wp-content\/uploads\/2024\/02\/set-purchase-history.png\" alt=\"Set BOGO offers for variable products based on purchase history\" class=\"wp-image-27126\"\/><\/a><figcaption class=\"wp-element-caption\">Free gift based on purchase history<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Then you can limit the BOGO offer to the customers based on the specified Purchase history.<\/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-8a83d729 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-5980c20d 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 wp-block-paragraph\" 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-7ad3aafa5bdaafce2e3d73f724c54769 wp-block-paragraph\" style=\"font-size:16px\">The easy way to Apply BOGO offer for variable products 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=bogo-for-variable-products\" 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 loading=\"lazy\" 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 class=\"wp-block-paragraph\">Creating a BOGO offer for WooCommerce variable products is a smart way to promote specific variations, clear stock faster, and encourage customers to buy more. You can use this strategy for clothing sizes, product colors, seasonal variations, bundled campaigns, or any product group where one variation needs extra promotion.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The custom code method can work if you have development experience and only need a very specific rule. However, it is harder to manage, less flexible for store owners, and riskier if you need to change the offer regularly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For most WooCommerce stores, <a href=\"https:\/\/ithemelandco.com\/plugins\/free-gifts-for-woocommerce\/?utm_source=blog&amp;utm_content=bogo-for-variable-products\" target=\"_blank\" rel=\"noreferrer noopener\">GIFTiT &#8211; Free Gifts for WooCommerce<\/a> is the easier and more practical option. It helps you create Buy X Get X and Buy X Get Y offers, target specific variable products or variations, auto-add gifts to the cart, and control gift rules with conditions such as date, cart subtotal, user role, or purchase history. This gives you more control over BOGO campaigns while keeping the setup simple and manageable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The best results come from choosing rules that match your store goals. For more campaign ideas, explore <a href=\"https:\/\/ithemelandco.com\/blog\/complete-guide-woo-free-gifts\/?utm_source=blog&amp;utm_content=bogo-for-variable-products\" target=\"_blank\" rel=\"noreferrer noopener\">this comperhensive resource<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-7387b849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column blog-faq-section is-layout-flow wp-block-column-is-layout-flow\">\n<h2 class=\"wp-block-heading\">FAQ<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">1. What is a BOGO offer for WooCommerce variable products?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">A BOGO offer for WooCommerce variable products is a promotion where customers buy one or more product variations and receive another product or variation for free or as a reward. For example, customers can buy one blue T-shirt variation and get another one free.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. Can I create Buy One Get One offers for specific variations?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. You can create BOGO offers for specific product variations, such as a certain size, color, or model. This is useful when you want to promote selected variations instead of applying the offer to the entire variable product.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3. What is the difference between Buy X Get X and Buy X Get Y?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Buy X Get X means customers buy a product and receive the same product or variation as a gift. Buy X Get Y means customers buy one product and receive a different product, category item, or selected gift.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4. Can I auto-add the free gift to the WooCommerce cart?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. With <strong>GIFTiT<\/strong>, you can enable auto-add gift rules so the free product appears in the cart automatically when the customer meets the BOGO conditions.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">5. Is coding a good way to create BOGO offers for variable products?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Coding can work for simple and fixed scenarios, but it is not ideal for most store owners. If you need to change products, variations, conditions, or gift rules often, using a plugin is easier and safer.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">6. Can I limit BOGO offers by date or customer role?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. You can limit BOGO offers by date, cart subtotal, user role, login status, purchase history, and other conditions. This is useful for seasonal campaigns, VIP customers, or targeted promotions.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">7. Why should I use BOGO offers for variable products?<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">BOGO offers help increase cart value, promote selected variations, move slow-selling stock, and make product campaigns more attractive. They work especially well for clothing, accessories, cosmetics, food items, and seasonal products.<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>BOGO offers are one of the most effective ways to increase sales in WooCommerce, but setting them up for variable products can be more challenging than simple products. When a product has different sizes, colors, models, or variations, you need to make sure the offer applies to the right variation and gives the correct free [&hellip;]<\/p>\n","protected":false},"author":1990,"featured_media":27141,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50,73],"tags":[],"class_list":["post-27108","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\/02\/bogo-offer-for-variable-products-1-500x335.jpg","excerpt_plain":"BOGO offers are one of the most effective ways to increase sales in WooCommerce, but setting them up for variable products can be more challenging than simple products. When a product has different sizes, colors, models, or variations, you need to make sure the offer applies to the right variation and gives the correct free [&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\/27108","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=27108"}],"version-history":[{"count":4,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/posts\/27108\/revisions"}],"predecessor-version":[{"id":51519,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/posts\/27108\/revisions\/51519"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/media\/27141"}],"wp:attachment":[{"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/media?parent=27108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/categories?post=27108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ithemelandco.com\/blog\/wp-json\/wp\/v2\/tags?post=27108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}