{"id":424,"date":"2022-08-02T15:03:54","date_gmt":"2022-08-02T15:03:54","guid":{"rendered":"https:\/\/www.smashpops.com\/blog\/?page_id=424"},"modified":"2025-08-26T07:34:44","modified_gmt":"2025-08-26T07:34:44","slug":"how-to-set-up-buy-x-get-y-discounts","status":"publish","type":"page","link":"https:\/\/www.smashpops.com\/blog\/how-to-set-up-buy-x-get-y-discounts\/","title":{"rendered":"How to set up &#8220;Buy X Get Y&#8221; discounts?"},"content":{"rendered":"<p>Setting up &#8220;Buy X Get Y&#8221; discounts is really similar to what you would do in your Shopify admin (as described in\u00a0<a href=\"https:\/\/help.shopify.com\/en\/manual\/discounts\/discount-types\/buy-x-get-y\" target=\"_blank\" rel=\"noopener noreferrer\" data-saferedirecturl=\"https:\/\/www.google.com\/url?q=https:\/\/help.shopify.com\/en\/manual\/discounts\/create-discount-codes%23create-a-buy-x-get-y-discount&amp;source=gmail&amp;ust=1659533576985000&amp;usg=AOvVaw0o3uQ-vLxEsalGsmhEJTt3\">this Shopify tutorial<\/a>). Basically, to auto-generate &#8220;Buy X Get Y&#8221; coupons via SmashPops, you&#8217;ll need to do the following:<\/p>\n<ol>\n<li>\n<div>Go to <strong>SETTINGS<\/strong>, and click on <strong>Coupons.<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-427 size-large\" src=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety1-1024x485.jpg\" alt=\"\" width=\"1024\" height=\"485\" srcset=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety1-1024x485.jpg 1024w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety1-300x142.jpg 300w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety1-768x364.jpg 768w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety1-1536x728.jpg 1536w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety1-2048x971.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div>\n<\/li>\n<li>In the example, we would like to apply a 5% discount on the Versace Medusa Biggie when someone buys the Ray-Ban Aviator. Let&#8217;s click on <strong>Auto<\/strong> to create an <a href=\"https:\/\/www.smashpops.com\/blog\/how-to-setup-automatically-generated-coupons\">auto-generated coupon.<\/a><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-428 size-large\" src=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety2-1024x485.jpg\" alt=\"\" width=\"1024\" height=\"485\" srcset=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety2-1024x485.jpg 1024w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety2-300x142.jpg 300w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety2-768x364.jpg 768w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety2-1536x728.jpg 1536w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety2-2048x971.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<li>Under the coupon type, let&#8217;s select <strong>Buy X get Y.<\/strong> Under <strong>Customer buys<\/strong>, make sure the quantity is set to <strong>1<\/strong> and the item to <strong>Specific products.<\/strong> Search for the <strong>Ray-Ban Aviator<\/strong> product and select it.Do the same for <strong>Customer gets<\/strong> and select <strong><strong>Versace Medusa Biggie.<\/strong><\/strong>Finally, set <strong>5<\/strong> in the <strong>With a percentage discount <\/strong>field and click on<strong> Close.<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-429 size-large\" src=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety3-1024x485.jpg\" alt=\"\" width=\"1024\" height=\"485\" srcset=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety3-1024x485.jpg 1024w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety3-300x142.jpg 300w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety3-768x364.jpg 768w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety3-1536x728.jpg 1536w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety3-2048x971.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<li>As it may not be intuitive for the customer to know that <strong>he must have the &#8220;Y&#8221; product in his cart<\/strong> for the coupon to work, we highly recommend that you add a specific message when this discount code is won. To do so, click on the <strong>bubble speech icon.<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-430 size-large\" src=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety4-1024x485.jpg\" alt=\"\" width=\"1024\" height=\"485\" srcset=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety4-1024x485.jpg 1024w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety4-300x142.jpg 300w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety4-768x364.jpg 768w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety4-1536x728.jpg 1536w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety4-2048x971.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<li>So that the customer understands perfectly what he just won and how he can use his coupon, let&#8217;s add the following description:<em><em><em><em>Buy the Ray-Ban Aviator and get 5% off the Versace Medusa Biggie with this code! You&#8217;ll need to add the Versace Medusa Biggie to your cart in order for the discount to be applied.<\/em><\/em><\/em><\/em>Now let&#8217;s even add links into this description by <a href=\"https:\/\/www.smashpops.com\/blog\/can-i-add-a-link-or-custom-html-in-my-text\">using HTML:<br \/>\n<\/a><\/p>\n<pre><em>\r\nBuy the &lt;a href=\"\/collections\/sunglasses\/rayban\/ray-ban-aviator\"&gt;Ray-Ban Aviator&lt;\/a&gt; and get 5% off the &lt;a href=\"\/collections\/sunglasses\/versace\/versace-medusa-biggie\"&gt;Versace Medusa Biggie&lt;\/a&gt; with this code! You'll need to add the &lt;a href=\"\/collections\/sunglasses\/versace\/versace-medusa-biggie\"&gt;Versace Medusa Biggie&lt;\/a&gt; to your cart in order for the discount to be applied.<\/em><\/pre>\n<p><em><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-431 size-large\" src=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety5-1024x485.jpg\" alt=\"\" width=\"1024\" height=\"485\" srcset=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety5-1024x485.jpg 1024w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety5-300x142.jpg 300w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety5-768x364.jpg 768w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety5-1536x728.jpg 1536w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety5-2048x971.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/em><\/li>\n<li>Let&#8217;s try our pop-up and check how it looks.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-432 size-large\" src=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety6-1024x485.jpg\" alt=\"\" width=\"1024\" height=\"485\" srcset=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety6-1024x485.jpg 1024w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety6-300x142.jpg 300w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety6-768x364.jpg 768w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety6-1536x728.jpg 1536w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety6-2048x971.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<li>As you can see, Shopify generated a <strong>Buy 1 item, get 1 item at 5% off coupon<\/strong> to the customer who played as we requested.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-433 size-large\" src=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety7-1024x485.jpg\" alt=\"\" width=\"1024\" height=\"485\" srcset=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety7-1024x485.jpg 1024w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety7-300x142.jpg 300w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety7-768x364.jpg 768w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety7-1536x728.jpg 1536w, https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety7-2048x971.jpg 2048w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Setting up &#8220;Buy X Get Y&#8221; discounts is really similar to what you would do in your Shopify admin (as described in\u00a0this Shopify tutorial). Basically, to auto-generate &#8220;Buy X Get Y&#8221; coupons via SmashPops, you&#8217;ll need to do the following: Go to SETTINGS, and click on Coupons. In the example, we would like to apply [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"powered_cache_disable_cache":false,"footnotes":""},"class_list":["post-424","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v14.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to set up &quot;Buy X Get Y&quot; discounts? - SmashPops Blog<\/title>\n<meta name=\"robots\" content=\"index, follow\" \/>\n<meta name=\"googlebot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta name=\"bingbot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.smashpops.com\/blog\/how-to-set-up-buy-x-get-y-discounts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to set up &quot;Buy X Get Y&quot; discounts? - SmashPops Blog\" \/>\n<meta property=\"og:description\" content=\"Setting up &#8220;Buy X Get Y&#8221; discounts is really similar to what you would do in your Shopify admin (as described in\u00a0this Shopify tutorial). Basically, to auto-generate &#8220;Buy X Get Y&#8221; coupons via SmashPops, you&#8217;ll need to do the following: Go to SETTINGS, and click on Coupons. In the example, we would like to apply [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.smashpops.com\/blog\/how-to-set-up-buy-x-get-y-discounts\/\" \/>\n<meta property=\"og:site_name\" content=\"SmashPops Blog\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-26T07:34:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety1-1024x485.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.smashpops.com\/blog\/#organization\",\"name\":\"SmashPops\",\"url\":\"https:\/\/www.smashpops.com\/blog\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.smashpops.com\/blog\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2020\/04\/icon1024.png\",\"width\":1024,\"height\":1024,\"caption\":\"SmashPops\"},\"image\":{\"@id\":\"https:\/\/www.smashpops.com\/blog\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.smashpops.com\/blog\/#website\",\"url\":\"https:\/\/www.smashpops.com\/blog\/\",\"name\":\"SmashPops Blog\",\"description\":\"Everything you need to know about e-commerce and email collection.\",\"publisher\":{\"@id\":\"https:\/\/www.smashpops.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.smashpops.com\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.smashpops.com\/blog\/how-to-set-up-buy-x-get-y-discounts\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.smashpops.com\/blog\/wp-content\/uploads\/2022\/08\/buyxgety1.jpg\",\"width\":2561,\"height\":1214},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.smashpops.com\/blog\/how-to-set-up-buy-x-get-y-discounts\/#webpage\",\"url\":\"https:\/\/www.smashpops.com\/blog\/how-to-set-up-buy-x-get-y-discounts\/\",\"name\":\"How to set up \\\"Buy X Get Y\\\" discounts? - SmashPops Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.smashpops.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.smashpops.com\/blog\/how-to-set-up-buy-x-get-y-discounts\/#primaryimage\"},\"datePublished\":\"2022-08-02T15:03:54+00:00\",\"dateModified\":\"2025-08-26T07:34:44+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.smashpops.com\/blog\/how-to-set-up-buy-x-get-y-discounts\/\"]}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/pages\/424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/comments?post=424"}],"version-history":[{"count":12,"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/pages\/424\/revisions"}],"predecessor-version":[{"id":867,"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/pages\/424\/revisions\/867"}],"wp:attachment":[{"href":"https:\/\/www.smashpops.com\/blog\/wp-json\/wp\/v2\/media?parent=424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}