A Buy One, Get One (BOGO) deal, also known as Buy X, Get X, 2 for 1 and 2 x 1 in some regions, is one of the most popular deals for stores to clear inventory and increase average order value.In this guide, you will learn how to set up automatic BOGO deals using product filters, offers and optionally preconditions in Coupons+.
To make it easier for you to test and replicate the steps in this tutorial, we have designed a demo store with some dummy data that you can use for testing. This tutorial uses the exact same site and data set. It is recommended that you replicate the steps in this tutorial using the demo site.
Coupons+ Demo Store
Temporary WooCommerce demo store for testing Coupons+
If at any point in this tutorial you have any problems or questions, you can ask for help here.
The first thing to do is selecting your product filters. For this BOGO deal, these filters target the items that the user must buy in full for the BOGO deal to apply. This is the Buy part of the Buy One, Get One.
Click Configure offer. A new popup will appear. This will guide you through the process of selecting all your necessary product filters. The first screen will ask you to select the type of deal that you plan to create.
It is important to know that the deals in this screen do not add the offer itself. Instead, these are what we call Suggested Scopes, they help you pick your product filters and offers based on the type of deal with personalized labels, screens and calls to action.
Select Buy One, Get One, since that is what we are building.Next, you will be asked the type of products. For this demo we want to target all Shoes Categories from Nike Brands, so the first thing to do is add the Categories filter.
Click In Specific Categories and type Shoes, then from the search results select that category or hit return/enter
Now here’s the interesting part: we don’t just want shoes from any brand. We specifically want shoes from the Nike brand, so we need to add a second filter in this group to narrow down the product selection. To do that, we need to add the Brands filter.
If you are creating an offer targeting only a specific product or SKU, you can skip the next step.
From the same screen, in the sidebar on the right you will be presented with a list of compatible filters you can combine with your current selection (in this case filters compatible with the Categories filter). Click And From Brands to add the Brands filter and type Nike. Your filters should look like the following image:Now we have 2 filters: Categories and Brands. Because these two filters are in the same group, any item in the cart must match both filters in order to be eligible.Finally we just need to specify the quantity that the customer must buy.
Click Next. In this screen you will be asked the required quantity. We’ll leave it at 1 since we are building a regular Buy 1 Get 1. But you can select the quantity that you need.For example, for a buy 2 get 1 offer (also known as 3 for 2, or 3 x 2), you’d need to type 2. Click Apply to finish adding your product filters.After adding your filters, a new tree will be created. It should look like the following image:So what do those filters do? I’m glad you asked. As mentioned before, these are product filters, not cart conditions. Coupons+ will take all items in the cart and run this filter group against them. For this example, Coupons+ will look at each item in the cart and only select those that are both in the Shoes category and from the Nike Brand. If there is an item in the Shoes category but from another brand, like Adidas, it will not be selected since that item only matches one filter and we need the item to match both filters.Once Coupons+ has selected items that matched both filters, it will then pick only 1 from the matching items, since we have a Quantity filter.
Now here’s an important thing to know: when more items match than the required quantity, eg: 3 items in the cart matched but the Quantity filter is only set to 1, what item gets picked from those 3 depends on the offer the filters are attached to.For BOGO offers like the one we are building, the offer uses the passed filtered items as the “buy” part of the BOGO deal (the items that the user must buy for the deal to apply). It does not apply the discount to the passed items, instead it puts them aside and uses them to apply the discount to additional items of the same type in the cart (or adds them automatically when applicable), therefore the most expensive items will be passed to your offer first, because traditionally, in BOGO offers, the most expensive item is the one that the customer buys and the cheapest is the one that gets the discount.A practical example: In this tutorial we are targeting 1 pair of Nike Shoes. If the customer adds 1x Nike Alphafly 3 ($220) and 1x Nike Air Force 1 ($120), then Coupons+ will pass the most expensive (Nike Alphafly 3), the BOGO offer will put it aside and then check the cart for more eligible items, since there is another one eligible (Nike Air Force 1) it applies the discount to the latter. If there was only one eligible item and you have the option to add the gift items automatically, then an extra item of the same product would be added to the cart.This is in contrast to other offers like Discount. The Discount offer applies the discount directly to the filtered items, so for a Discount offer, the cheapest items will always be filtered first.
Now that you’ve added the product filters, we need to tell Coupons+ what to do with the filtered items after they are filtered from the cart. There are two options: add an offers branch that will take these items and use them for the offer, or add a tiers branch that can allow you to add offers in tiers. Since the latter is used for bulk and tiered offers, we will be adding a simple offers branch with the BOGO offer
Click Add offer
Select BOGO: Different Products. This will open the configuration screen for that offer.
Set the quantity of the discount items, the items that will receive the discount (the free items).
For this tutorial, set it to 1. This does not include the filtered items.The filters for this tutorial will select 1 pair of Nike Shoes. The quantity for this offer excludes the 1 pair that was filtered and will select another 1 from the cart.For this example, we will leave it at 1 since we are building a simple Buy 1, Get 1 offer. But you can select the quantity that you need. For example, if you are building a buy 3 get 2 deal, then you would need to set the quantity to 2 and 2 items would be discounted when buying 3. Your filters would need to have a quantity of 3.Here’s a table that illustrates this behavior:
Filter Qty
BOGO Qty
Cart Items
Filter Takes
BOGO Takes
1
1
1 eligible item (A)
1 (A)
0
1
1
2 eligible items (A) + (B)
1 (A)
1 (B)
2
1
2 items (A) + (B)
2 (A) + (B)
0
2
1
3 items (A) + (B) + (C)
2 (A) + (B)
1 (C)
*Order depends on the price. See below
Optionally select the type of discount for your BOGO offer. We’ll leave it at FREE since we are building a traditional Buy One, Get One FREE. But you can choose other discount types. Click on the free selected option to select a different type.The following table shows each discount type and examples when the user has 2 matching items. (eg: one $120 pair and one $100 pair of Nike shoes, no other items). Without the offer the total is $220.
Type
Description
Example
Free
Applies a 100% discount to the discount items.
The $100 pair is free. The customer pays $120.
Percentage Off (%)
Takes a percentage off the price of each discount item.
With 50% off, the $100 pair costs $50. The customer pays $170.
Fixed Discount ($)
Takes a fixed amount off the price of each discount item.
With $30 off, the $100 pair costs $70. The customer pays $190.
Fixed Price
Applies a discount that makes the price of the discount item equivalent to the set fixed price.
With a fixed price of $25, a $75 discount is applied to the $100 pair, so it costs $25. The customer pays $145.
Click Done. The offer will be added. Your tree should look like the following image:
Right now if you save the coupon, the customer will need to apply the coupon manually for the offer to take effect. You can make the coupon apply automatically when the cart has eligible items from your product filters.On the top-right, click Manually Applied to change the mode to auto. It should look like the following image:Now when the customer has at least 1 pair of Nike shoes, the coupon will be added.
If they only have 1 pair in the cart, then the coupon will be added but the discount will not be applied until the customer adds another eligible pair.
All that’s needed to get this offer live is to click Save in the top-right corner of the dashboard. Your coupon will be saved and ready to be used in your shop.
You do not need to enter a coupon code! Coupons+ will automatically generate one for you if you choose to leave the coupon code field empty.
With the full picture now ready, here’s a simplified overview of what the BOGO offer does with the filtered items.
Coupons+ runs the product filters with the items from the cart. It finds several pairs of Nike shoes. The BOGO offer tells the product filters to get the most expensive ones first, since they are the items that the customer must buy in full. The filters then pass that pair to the offer. The BOGO offer will then try to look in the cart for more Nike shoes, ignoring the pair that was passed to it.
If it finds another one, it will pick it and apply the BOGO discount to it.
Otherwise, it will try to add an extra pair if you selected the option Automatically add them to the cart. If you did not select that option, no extra pair gets added and the customer will need to add another themselves. After they do, the BOGO offer will apply the discount to the cheapest pair. The default mode is: Let the customer add them manually.
Add an eligible item. For this tutorial, let’s add the Nike Air Max 90 ($130) and go to the cart. You will see a notification showing that the coupon was applied successfully. No discount will be applied yet because we only have 1 eligible item, and for this offer we need 2.
3
Go back to the shop page and add another pair of Nike shoes. For this example we will add one pair of Nike Air Jordan 1 ($180).
You can add any pair of Nike shoes, as long as they are Shoes and from the brand Nike, including another pair of the same product (Nike Air Max 90), but for this example we want to clarify what happens when there are eligible items with different prices.
4
Go to the cart. You will now see that the bogo discount has been applied to the Nike Air Max 90 because it is the cheaper of the two eligible items. BOGO offers always prioritize the discounts starting from cheapest to most expensive.
Our bogo offer works like a charm. But it only applies once. Try adding 2 more of the Nike Air Max 90 so that the cart now has 3 of Nike Air Max 90 and 1 of Nike Air Jordan 1. You will see that only 1 pair is being discounted. What happens if you want to apply the bogo offer for every matching pair of eligible items?You can make the bogo offer apply repeatedly for every matching set of items. For example:
Quantity in filters
Quantity in BOGO offer
Items in the cart
Items discounted
1
1
2 eligible items
1 eligible item
1
1
3 eligible items
1 eligible item
1
1
4 eligible items
2 eligible items
1
1
6 eligible items
3 eligible items
2
1
3 eligible items
1 eligible item
2
1
6 eligible items
2 eligible items
To enable this feature, from the Coupons+ Dashboard:
1
Click on the BOGO Different Products offer.
2
Scroll down to the section: How many times can this be applied?, select Repeatedly and click Apply Changes. The BOGO offer card will now show a Repeating label below it:
3
Click Save to save the coupon. Your BOGO offer will now be applied for every matching pair of items.
Our current configuration makes the customer manually add the extra discount items. But what if you wanted the items to be in the cart automatically as soon as the customer adds one eligible item to their cart? For example, on an empty cart, when the customer adds one pair of Nike Air Max 90 you want another pair to be added automatically.To do so, from the Coupons+ Dashboard:
1
Click on the BOGO Different Products offer.
2
Locate: When items eligible for discount aren’t in the cart and select Automatically add them to the cart
Remember: for a discount to apply, an item must satisfy all filters in that context (group). For this example, the product filters will only match Shoes from the Nike brand.Try removing all the items from the cart. Then go back to the shop page and add a pair of Adidas Ultraboost Light and one Nike Club Fleece Hoodie. The coupon will not be applied because these items only match one filter: the Adidas Ultraboost Light matches the shoes category but not the brand, and the Nike Club Fleece Hoodie matches the brand but not the category. This is an example of the power of combining product filters in Coupons+, and it is one of the most powerful things about the plugin.
What if you also want to give the customer a free shipping discount alongside the BOGO offer? Coupons+ allows you to add more than one offer per group of filters.To add another offer for this filters group, from the Coupons+ Dashboard:
1
Click on the + button attached to the last offer:
2
From the available offers, Click Shipping Discount, configure it and click Done. Your offers tree will now look like the following image:Now the Shipping Discount will be applied when the customer has 1 or more Nike Shoes in the cart.
Each offer is configured and applied independently and each will be applied when the filters return at least one valid item. This means, for example, that the BOGO offer that has been configured to apply repeatedly will only be applied repeatedly itself. The Shipping Discount offer will be applied only once.
You can combine other offers too. Like Discount and Different Products.
Finally, what if you wanted to restrict this offer only under specific conditions other than the products in the cart, like restricting the offer for a specific user role or a specific date? You would need to add a precondition that must be passed before the coupon can be applied.To add a precondition, from the Coupons+ Dashboard:
1
Click on No Preconditions on the right. You will be presented with a list of available preconditions. For this example let’s just restrict it to a specific date.
2
Scroll down and select Date, configure it and click Done
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Coupons+ for WooCommerce Docs","colors":{"primary":"#8891ff","light":"#8891ff","dark":"#8891ff"},"logo":{"light":"https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/logo/light.svg?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=7bc2031123da026cbbc81c1b198c170b","dark":"https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/logo/dark.svg?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=5ae2530da7ae4dd3381591a0afc88a0b"},"favicon":"https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/favicon.svg?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=3bfdb1293f4958088bb7f9b1d4b39e8d","navbar":{},"footer":{"socials":{}},"integrations":{"ga4":{"measurementId":"G-E0TNXH52DZ"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Download","icon":"cloud-arrow-down","href":"https://wordpress.org/plugins/coupons-plus-for-woocommerce"},{"anchor":"Support","icon":"life-ring","href":"https://wordpress.org/support/plugin/coupons-plus-for-woocommerce/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"neblabs","hasAudioNarration":false,"actualSubdomain":"neblabs","customDomains":["developer.couponsplus.app"],"gitSource":{"type":"github","owner":"rafark","repo":"coupons-plus-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6adce90b50e173ef2b660b7e","collectionId":"24ab2f1a-acc5-41c9-bcb8-adb42ec0949b","liveDeploymentHistoryId":"6adce90b50e173ef2b660b7e","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6adcfcb2214b4bc86159fa4c","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"Getting Started","count":3},{"language":"default","tag":"Filters","count":2},{"language":"default","tag":"Offers","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"getting-started/creating-a-bogo-deal-woocommerce","slug":"/getting-started/creating-a-bogo-deal-woocommerce","pageMetadata":{"title":"How to create your first Buy One, Get One (BOGO) deal","description":"Learn how to set up automatic BOGO deals in WooCommerce using the free Coupons+ plugin.","sidebarTitle":"Creating a Buy One, Get One (BOGO) Deal","href":"/getting-started/creating-a-bogo-deal-woocommerce"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Learn how to set up automatic BOGO deals in WooCommerce using the free Coupons+ plugin.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,hr:`hr`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Card,Column,Columns,Heading,Icon,Info,Note,OptimizedImage,Step,Steps,Table}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!Column)_missingMdxReference(`Column`,true);if(!Columns)_missingMdxReference(`Columns`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Icon)_missingMdxReference(`Icon`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`introduction`,children:`Introduction`}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.strong,{children:`Buy One, Get One (BOGO)`}),` deal, also known as `,_jsx(_components.strong,{children:`Buy X, Get X`}),`, `,_jsx(_components.strong,{children:`2 for 1`}),` and `,_jsx(_components.strong,{children:`2 x 1`}),` in some regions, is one of the most popular deals for stores to clear inventory and increase average order value.`]}),`\n`,_jsx(_components.p,{children:`In this guide, you will learn how to set up automatic BOGO deals using product filters, offers and optionally preconditions in Coupons+.`}),`\n`,_jsx(Heading,{level:`2`,id:`what-you’ll-be-building`,children:`What you’ll be building`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`The offer:`}),` Buy 1 pair of Nike Shoes (Brand + Category) and get one for free.`]}),`\n`,_jsx(_components.p,{children:`By the end of this tutorial, you will be able to create deals that:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Target very specific items:`}),` Buy 1 pair of `,_jsx(_components.strong,{children:`Shoes`}),` `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#8689d2`,background:`rgba(134, 137, 210, 0.08)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{class:`mint-w-4 mint-h-4 mint-shrink-0`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M6 6.878V6a2.25 2.25 0 0 1 2.25-2.25h7.5A2.25 2.25 0 0 1 18 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 0 0 4.5 9v.878m13.5-3A2.25 2.25 0 0 1 19.5 9v.878m0 0a2.246 2.246 0 0 0-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0 1 21 12v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6c0-.98.626-1.813 1.5-2.122`})}),`Categories`]}),` in the `,_jsx(_components.strong,{children:`Nike`}),` brand.`]}),`\n`,_jsx(_components.li,{children:`Apply automatically without the customer needing to enter a coupon code manually.`}),`\n`,_jsx(_components.li,{children:`Add the discounted item to the cart automatically if it is not in it.`}),`\n`,_jsx(_components.li,{children:`Can be applied repeatedly.`}),`\n`,_jsxs(_components.li,{children:[`Can combine multiple offers per set of eligible items, like a `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#6498ed`,background:`rgb(100 152 237 / 5%)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M12 3.75v16.5M2.25 12h19.5M6.375 17.25a4.875 4.875 0 0 0 4.875-4.875V12m6.375 5.25a4.875 4.875 0 0 1-4.875-4.875V12m-9 8.25h16.5a1.5 1.5 0 0 0 1.5-1.5V5.25a1.5 1.5 0 0 0-1.5-1.5H3.75a1.5 1.5 0 0 0-1.5 1.5v13.5a1.5 1.5 0 0 0 1.5 1.5Zm12.621-9.44c-1.409 1.41-4.242 1.061-4.242 1.061s-.349-2.833 1.06-4.242a2.25 2.25 0 0 1 3.182 3.182ZM10.773 7.63c1.409 1.409 1.06 4.242 1.06 4.242S9 12.22 7.592 10.811a2.25 2.25 0 1 1 3.182-3.182Z`})}),`Same Products`]}),` + `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#6498ed`,background:`rgb(100 152 237 / 5%)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M8.25 18.75a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m3 0h6m-9 0H3.375a1.125 1.125 0 0 1-1.125-1.125V14.25m17.25 4.5a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m3 0h1.125c.621 0 1.129-.504 1.09-1.124a17.902 17.902 0 0 0-3.213-9.193 2.056 2.056 0 0 0-1.58-.86H14.25M16.5 18.75h-2.25m0-11.177v-.958c0-.568-.422-1.048-.987-1.106a48.554 48.554 0 0 0-10.026 0 1.106 1.106 0 0 0-.987 1.106v7.635m12-6.677v6.677m0 4.5v-4.5m0 0h-12`})}),`Shipping Discount`]}),`.`]}),`\n`,_jsx(_components.li,{children:`Can be restricted using preconditions.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`before-we-begin`,children:`Before we begin`}),`\n`,_jsxs(_components.p,{children:[`For this tutorial we will be using the free Coupons+ plugin for WooCommerce. If you don’t have it already, you can download it here: `,_jsx(_components.a,{href:`https://wordpress.org/plugins/coupons-plus-for-woocommerce`,children:`Coupons+`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`follow-along-with-a-demo-site`,children:`Follow along with a demo site`}),`\n`,_jsx(_components.p,{children:`To make it easier for you to test and replicate the steps in this tutorial, we have designed a demo store with some dummy data that you can use for testing. This tutorial uses the exact same site and data set. It is recommended that you replicate the steps in this tutorial using the demo site.`}),`\n`,_jsx(Card,{title:`Coupons+ Demo Store`,icon:`database`,href:`https://playground.wordpress.net/?mode=seamless\u0026blueprint-url=https://cdn.jsdelivr.net/gh/neblabs/coupons-plus-dummy-demo-data@main/blueprint.json`,arrow:`true`,cta:`Launch demo store`,children:_jsx(_components.p,{children:`Temporary WooCommerce demo store for testing Coupons+`})}),`\n`,_jsxs(_components.p,{children:[`If at any point in this tutorial you have any problems or questions, you can ask for help `,_jsx(_components.a,{href:`https://wordpress.org/support/plugin/coupons-plus-for-woocommerce/#new-topic-0`,children:`here`}),`.`]}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{children:[_jsx(Heading,{level:`2`,id:`creating-the-coupon`,children:`Creating the coupon`}),_jsxs(_components.p,{children:[`From the WordPress admin dashboard, go to Marketing > Coupons > `,_jsx(_components.strong,{children:`Add New Coupon`}),`, in the same way you would create a regular WooCommerce coupon.`]}),_jsx(`p`,{className:`mint-text-sm mint-text-neutral-500 dark:mint-text-neutral-400`,children:_jsx(_components.p,{children:`When you launch the demo site, this page is loaded by default.`})})]}),_jsxs(Step,{children:[_jsx(Heading,{level:`2`,id:`adding-the-product-filters`,children:`Adding the product filters`}),_jsxs(_components.p,{children:[`The first thing to do is selecting your product filters. For this BOGO deal, `,_jsx(_components.strong,{children:`these filters target the items that the user must buy in full for the BOGO deal to apply`}),`. This is the `,_jsx(_components.em,{children:`Buy`}),` part of the `,_jsx(_components.em,{children:`Buy One, Get One`}),`.`]}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Configure offer`}),`. A new popup will appear. This will guide you through the process of selecting all your necessary product filters. The first screen will ask you to select the type of deal that you plan to create.\n`,_jsxs(Info,{children:[`It is important to know that the deals in this screen do not add the offer itself. Instead, these are what we call `,_jsx(_components.strong,{children:`Suggested Scopes`}),`, they help you pick your product filters and offers based on the type of deal with personalized labels, screens and calls to action.`]})]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`Buy One, Get One`}),`, since that is what we are building.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/suggested-scopes.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=fea4dc444d868ec33607f0db8ba3b343`,alt:`The Suggested Scopes screen with a list of suggested scopes like buy one, get one, item discounts, bundles, etc.`,\"data-og-width\":`1685`,width:`1685`,\"data-og-height\":`1225`,height:`1225`,\"data-path\":`images/suggested-scopes.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/suggested-scopes.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=2f5a12049267abb45a0fdde9e00c1aec 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/suggested-scopes.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=2b713259b01c2f30ed9fd5b0a81e5acf 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/suggested-scopes.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=29000ba00fe544252bad25e8d0f3ce48 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/suggested-scopes.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=41411305ed7bb5df755a909b46b6ac45 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/suggested-scopes.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=caf50b4156bcdb2ea5e9cf55203ae8bd 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/suggested-scopes.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=85444efc16d54f705581abe8e3044282 2500w`}),`\n`,_jsxs(_components.p,{children:[`Next, you will be asked the type of products. For this demo we want to target all Shoes `,_jsx(_components.strong,{children:_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#8689d2`,background:`rgba(134, 137, 210, 0.08)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{class:`mint-w-4 mint-h-4 mint-shrink-0`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M6 6.878V6a2.25 2.25 0 0 1 2.25-2.25h7.5A2.25 2.25 0 0 1 18 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 0 0 4.5 9v.878m13.5-3A2.25 2.25 0 0 1 19.5 9v.878m0 0a2.246 2.246 0 0 0-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0 1 21 12v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6c0-.98.626-1.813 1.5-2.122`})}),`Categories`]})}),` from Nike `,_jsx(_components.strong,{children:_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#8689d2`,background:`rgba(134, 137, 210, 0.08)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M3.75 3v11.25A2.25 2.25 0 0 0 6 16.5h2.25M3.75 3h-1.5m1.5 0h16.5m0 0h1.5m-1.5 0v11.25A2.25 2.25 0 0 1 18 16.5h-2.25m-7.5 0h7.5m-7.5 0-1 3m8.5-3 1 3m0 0 .5 1.5m-.5-1.5h-9.5m0 0-.5 1.5m.75-9 3-3 2.148 2.148A12.061 12.061 0 0 1 16.5 7.605`})}),`Brands`]})}),`, so the first thing to do is add the `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#8689d2`,background:`rgba(134, 137, 210, 0.08)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{class:`mint-w-4 mint-h-4 mint-shrink-0`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M6 6.878V6a2.25 2.25 0 0 1 2.25-2.25h7.5A2.25 2.25 0 0 1 18 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 0 0 4.5 9v.878m13.5-3A2.25 2.25 0 0 1 19.5 9v.878m0 0a2.246 2.246 0 0 0-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0 1 21 12v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6c0-.98.626-1.813 1.5-2.122`})}),`Categories`]}),` filter.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`In Specific Categories`}),` and type `,_jsx(_components.em,{children:`Shoes`}),`, then from the search results select that category or hit `,_jsx(_components.code,{children:`return/enter`})]}),`\n`,_jsxs(Columns,{cols:2,children:[_jsx(Column,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/products-filter-selection.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=5d6a97f39f2ddb70eacafdfb94f5e7dc`,alt:`The product filters list selection screen`,\"data-og-width\":`1681`,width:`1681`,\"data-og-height\":`1293`,height:`1293`,\"data-path\":`images/products-filter-selection.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/products-filter-selection.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=e7a4f04d3fb4f7a4b89d6ef7342cd458 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/products-filter-selection.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=a6980d282252a27ef3a1ef7cfa565c55 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/products-filter-selection.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=b3bcb92169709265595ded536b2aa566 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/products-filter-selection.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=4f696a1af9fb6dfd573072bdef5457d3 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/products-filter-selection.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=71c4f28e05dc0f0ffcaaab77dd507a00 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/products-filter-selection.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=28c667fdaa9747f164ade9a7538e388d 2500w`})}),_jsx(Column,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/shoes-filter-screen.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=7971625a0bc89dc150a7b03a4c3d8101`,alt:`The categories filter with the shoes category added in`,\"data-og-width\":`2167`,width:`2167`,\"data-og-height\":`1147`,height:`1147`,\"data-path\":`images/shoes-filter-screen.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/shoes-filter-screen.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=71135368a42ac1a3c32a9232f257c55a 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/shoes-filter-screen.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=e212b065517d208f63e6192addf6450e 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/shoes-filter-screen.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=bc06e486361862f8a49579581085344a 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/shoes-filter-screen.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=02f2262f440ce2adac5ea03745a972f4 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/shoes-filter-screen.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=f2a048ba351816e7e92b13753bebf677 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/shoes-filter-screen.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=3775dfa623d0d4987bcb098fb4766ae6 2500w`})})]}),`\n`,_jsxs(_components.p,{children:[`Now here’s the interesting part: we don’t just want shoes from any brand. We specifically want shoes from the `,_jsx(_components.em,{children:`Nike`}),` brand, so we need to add a second filter in this group to narrow down the product selection. To do that, we need to add the `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#8689d2`,background:`rgba(134, 137, 210, 0.08)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M3.75 3v11.25A2.25 2.25 0 0 0 6 16.5h2.25M3.75 3h-1.5m1.5 0h16.5m0 0h1.5m-1.5 0v11.25A2.25 2.25 0 0 1 18 16.5h-2.25m-7.5 0h7.5m-7.5 0-1 3m8.5-3 1 3m0 0 .5 1.5m-.5-1.5h-9.5m0 0-.5 1.5m.75-9 3-3 2.148 2.148A12.061 12.061 0 0 1 16.5 7.605`})}),`Brands`]}),` filter.`]}),`\n`,_jsx(Note,{children:`If you are creating an offer targeting only a specific product or SKU, you can skip the next step.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`From the same screen, in the sidebar on the right you will be presented with a list of compatible filters you can combine with your current selection (in this case filters compatible with the `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#8689d2`,background:`rgba(134, 137, 210, 0.08)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{class:`mint-w-4 mint-h-4 mint-shrink-0`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M6 6.878V6a2.25 2.25 0 0 1 2.25-2.25h7.5A2.25 2.25 0 0 1 18 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 0 0 4.5 9v.878m13.5-3A2.25 2.25 0 0 1 19.5 9v.878m0 0a2.246 2.246 0 0 0-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0 1 21 12v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6c0-.98.626-1.813 1.5-2.122`})}),`Categories`]}),` filter). Click `,_jsx(_components.strong,{children:`And From Brands`}),` to add the `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#8689d2`,background:`rgba(134, 137, 210, 0.08)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M3.75 3v11.25A2.25 2.25 0 0 0 6 16.5h2.25M3.75 3h-1.5m1.5 0h16.5m0 0h1.5m-1.5 0v11.25A2.25 2.25 0 0 1 18 16.5h-2.25m-7.5 0h7.5m-7.5 0-1 3m8.5-3 1 3m0 0 .5 1.5m-.5-1.5h-9.5m0 0-.5 1.5m.75-9 3-3 2.148 2.148A12.061 12.061 0 0 1 16.5 7.605`})}),`Brands`]}),` filter and type `,_jsx(_components.em,{children:`Nike`}),`. Your filters should look like the following image:`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/brands-and-categories-selection-screen.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=8aaafee0c3c7bbb9ce71a7db72d0bc1d`,alt:`The filters selection screen showing the categories and brands filters`,\"data-og-width\":`2289`,width:`2289`,\"data-og-height\":`1107`,height:`1107`,\"data-path\":`images/brands-and-categories-selection-screen.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/brands-and-categories-selection-screen.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=3e9b60f9615a33b4f833e96336924bf1 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/brands-and-categories-selection-screen.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=6dee7be0875b3185bfe7c759ea7e1a5b 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/brands-and-categories-selection-screen.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=27e1cbc766ca1576076fef3b96b8bba8 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/brands-and-categories-selection-screen.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=85b86e53afd0dff1f9ab58f28800f9e9 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/brands-and-categories-selection-screen.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=b6116b44a40d3c1bcc3db91d9d51edb5 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/brands-and-categories-selection-screen.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=d6dd0e6dcc27e8d851d76e2b5ee58255 2500w`}),`\n`,_jsxs(_components.p,{children:[`Now we have 2 filters: `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#8689d2`,background:`rgba(134, 137, 210, 0.08)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{class:`mint-w-4 mint-h-4 mint-shrink-0`,xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M6 6.878V6a2.25 2.25 0 0 1 2.25-2.25h7.5A2.25 2.25 0 0 1 18 6v.878m-12 0c.235-.083.487-.128.75-.128h10.5c.263 0 .515.045.75.128m-12 0A2.25 2.25 0 0 0 4.5 9v.878m13.5-3A2.25 2.25 0 0 1 19.5 9v.878m0 0a2.246 2.246 0 0 0-.75-.128H5.25c-.263 0-.515.045-.75.128m15 0A2.25 2.25 0 0 1 21 12v6a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 18v-6c0-.98.626-1.813 1.5-2.122`})}),`Categories`]}),` and `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#8689d2`,background:`rgba(134, 137, 210, 0.08)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M3.75 3v11.25A2.25 2.25 0 0 0 6 16.5h2.25M3.75 3h-1.5m1.5 0h16.5m0 0h1.5m-1.5 0v11.25A2.25 2.25 0 0 1 18 16.5h-2.25m-7.5 0h7.5m-7.5 0-1 3m8.5-3 1 3m0 0 .5 1.5m-.5-1.5h-9.5m0 0-.5 1.5m.75-9 3-3 2.148 2.148A12.061 12.061 0 0 1 16.5 7.605`})}),`Brands`]}),`. Because these two filters are in the same group, any item in the cart `,_jsx(_components.strong,{children:`must match both filters`}),` in order to be eligible.`]}),`\n`,_jsx(_components.p,{children:`Finally we just need to specify the quantity that the customer must buy.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Next`}),`. In this screen you will be asked the required quantity. We’ll leave it at 1 since we are building a regular Buy 1 Get 1. But you can select the quantity that you need.`]}),`\n`,_jsxs(_components.p,{children:[`For example, for a buy 2 get 1 offer (also known as 3 for 2, or 3 x 2), you’d need to type `,_jsx(_components.strong,{children:`2`}),`. Click `,_jsx(_components.strong,{children:`Apply`}),` to finish adding your product filters.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintlify.s3.us-west-1.amazonaws.com/neblabs/images/BOGO-qty-screen.png`,alt:`The quantity selection screen for the BOGO offer`}),`\n`,_jsx(_components.p,{children:`After adding your filters, a\\xA0new tree will be created. It should look like the following image:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintlify.s3.us-west-1.amazonaws.com/neblabs/images/BOGO-tree-node-no-offers-yet.png`,alt:`The new tree with the product filters but without the offer yet`}),`\n`,_jsxs(_components.p,{children:[`So what do those filters do? I’m glad you asked. As mentioned before, these are product filters, not cart conditions. Coupons+ will take all items in the cart and run this filter group against them. For this example, Coupons+ will look at each item in the cart and only select those that are both in the `,_jsx(_components.strong,{children:`Shoes`}),` category and from the `,_jsx(_components.strong,{children:`Nike`}),` Brand. If there is an item in the Shoes category but from another brand, like Adidas, it will not be selected since that item only matches one filter and we need the item to match `,_jsx(_components.strong,{children:`both`}),` filters.`]}),`\n`,_jsxs(_components.p,{children:[`Once Coupons+ has selected items that matched both filters, it will then pick only 1 from the matching items, since we have a `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#8689d2`,background:`rgba(134, 137, 210, 0.08)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsxs(`svg`,{class:`mint-w-4 mint-h-4 mint-shrink-0`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,children:[_jsx(`path`,{d:`M11.644 1.59a.75.75 0 0 1 .712 0l9.75 5.25a.75.75 0 0 1 0 1.32l-9.75 5.25a.75.75 0 0 1-.712 0l-9.75-5.25a.75.75 0 0 1 0-1.32l9.75-5.25Z`}),_jsx(`path`,{d:`m3.265 10.602 7.668 4.129a2.25 2.25 0 0 0 2.134 0l7.668-4.13 1.37.739a.75.75 0 0 1 0 1.32l-9.75 5.25a.75.75 0 0 1-.71 0l-9.75-5.25a.75.75 0 0 1 0-1.32l1.37-.738Z`}),_jsx(`path`,{d:`m10.933 19.231-7.668-4.13-1.37.739a.75.75 0 0 0 0 1.32l9.75 5.25c.221.12.489.12.71 0l9.75-5.25a.75.75 0 0 0 0-1.32l-1.37-.738-7.668 4.13a2.25 2.25 0 0 1-2.134-.001Z`})]}),`Quantity`]}),` filter.`]}),`\n`,_jsxs(Info,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Now here’s an important thing to know`}),`: when more items match than the required quantity, eg: 3 items in the cart matched but the `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#8689d2`,background:`rgba(134, 137, 210, 0.08)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsxs(`svg`,{class:`mint-w-4 mint-h-4 mint-shrink-0`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,children:[_jsx(`path`,{d:`M11.644 1.59a.75.75 0 0 1 .712 0l9.75 5.25a.75.75 0 0 1 0 1.32l-9.75 5.25a.75.75 0 0 1-.712 0l-9.75-5.25a.75.75 0 0 1 0-1.32l9.75-5.25Z`}),_jsx(`path`,{d:`m3.265 10.602 7.668 4.129a2.25 2.25 0 0 0 2.134 0l7.668-4.13 1.37.739a.75.75 0 0 1 0 1.32l-9.75 5.25a.75.75 0 0 1-.71 0l-9.75-5.25a.75.75 0 0 1 0-1.32l1.37-.738Z`}),_jsx(`path`,{d:`m10.933 19.231-7.668-4.13-1.37.739a.75.75 0 0 0 0 1.32l9.75 5.25c.221.12.489.12.71 0l9.75-5.25a.75.75 0 0 0 0-1.32l-1.37-.738-7.668 4.13a2.25 2.25 0 0 1-2.134-.001Z`})]}),`Quantity`]}),` filter is only set to 1, what item gets picked from those 3 depends on the offer the filters are attached to.`]}),_jsx(_components.p,{children:`For BOGO offers like the one we are building, the offer uses the passed filtered items as the “buy” part of the BOGO deal (the items that the user must buy for the deal to apply). It does not apply the discount to the passed items, instead it puts them aside and uses them to apply the discount to additional items of the same type in the cart (or adds them automatically when applicable), therefore the most expensive items will be passed to your offer first, because traditionally, in BOGO offers, the most expensive item is the one that the customer buys and the cheapest is the one that gets the discount.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`A practical example:`}),` In this tutorial we are targeting 1 pair of Nike Shoes. If the customer adds `,_jsx(_components.em,{children:`1x Nike Alphafly 3`}),` (`,_jsx(_components.strong,{children:`$220`}),`) and `,_jsx(_components.em,{children:`1x Nike Air Force 1`}),` (`,_jsx(_components.strong,{children:`$120`}),`), then Coupons+ will pass the most expensive (`,_jsx(_components.em,{children:`Nike Alphafly 3`}),`), the BOGO offer will put it aside and then check the cart for more eligible items, since there is another one eligible (`,_jsx(_components.em,{children:`Nike Air Force 1`}),`) it applies the discount to the latter. If there was only one eligible item and you have the option to add the gift items automatically, then an extra item of the same product would be added to the cart.`]}),_jsxs(_components.p,{children:[`This is in contrast to other offers like `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#6498ed`,background:`rgb(100 152 237 / 5%)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M15.75 10.5V6a3.75 3.75 0 1 0-7.5 0v4.5m11.356-1.993 1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 0 1-1.12-1.243l1.264-12A1.125 1.125 0 0 1 5.513 7.5h12.974c.576 0 1.059.435 1.119 1.007ZM8.625 10.5a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm7.5 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z`})}),`Discount`]}),`. The `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#6498ed`,background:`rgb(100 152 237 / 5%)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M15.75 10.5V6a3.75 3.75 0 1 0-7.5 0v4.5m11.356-1.993 1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 0 1-1.12-1.243l1.264-12A1.125 1.125 0 0 1 5.513 7.5h12.974c.576 0 1.059.435 1.119 1.007ZM8.625 10.5a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm7.5 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z`})}),`Discount`]}),` offer applies the discount directly to the filtered items, so for a `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#6498ed`,background:`rgb(100 152 237 / 5%)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M15.75 10.5V6a3.75 3.75 0 1 0-7.5 0v4.5m11.356-1.993 1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 0 1-1.12-1.243l1.264-12A1.125 1.125 0 0 1 5.513 7.5h12.974c.576 0 1.059.435 1.119 1.007ZM8.625 10.5a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm7.5 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z`})}),`Discount`]}),` offer, the cheapest items will always be filtered first.`]})]}),`\n`]}),`\n`]})]}),_jsxs(Step,{children:[_jsx(Heading,{level:`2`,id:`adding-your-offers`,children:`Adding your offers`}),_jsx(_components.p,{children:`Now that you’ve added the product filters, we need to tell Coupons+ what to do with the filtered items after they are filtered from the cart. There are two options: add an offers branch that will take these items and use them for the offer, or add a tiers branch that can allow you to add offers in tiers. Since the latter is used for bulk and tiered offers, we will be adding a simple offers branch with the BOGO offer`}),_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Add offer`})]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select `,_jsxs(_components.strong,{children:[`BOGO: `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#6498ed`,background:`rgb(100 152 237 / 5%)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M21 11.25v8.25a1.5 1.5 0 0 1-1.5 1.5H5.25a1.5 1.5 0 0 1-1.5-1.5v-8.25M12 4.875A2.625 2.625 0 1 0 9.375 7.5H12m0-2.625V7.5m0-2.625A2.625 2.625 0 1 1 14.625 7.5H12m0 0V21m-8.625-9.75h18c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125h-18c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z`})}),`Different Products`]})]}),`. This will open the configuration screen for that offer.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Set the quantity of the `,_jsx(_components.strong,{children:`discount items`}),`, the items that will receive the discount (the free items).\nFor this tutorial, set it to `,_jsx(_components.strong,{children:`1`}),`. This `,_jsx(_components.strong,{children:`does not`}),` include the filtered items.`]}),`\n`,_jsx(_components.p,{children:`The filters for this tutorial will select 1 pair of Nike Shoes. The quantity for this offer excludes the 1 pair that was filtered and will select another 1 from the cart.`}),`\n`,_jsxs(_components.p,{children:[`For this example, we will leave it at `,_jsx(_components.strong,{children:`1`}),` since we are building a simple Buy 1, Get 1 offer. But you can select the quantity that you need. For example, if you are building a buy 3 get 2 deal, then you would need to set the quantity to `,_jsx(_components.strong,{children:`2`}),` and 2 items would be discounted when buying 3. Your filters would need to have a quantity of `,_jsx(_components.strong,{children:`3`}),`.`]}),`\n`,_jsx(_components.p,{children:`Here’s a table that illustrates this behavior:`}),`\n`,_jsxs(`table`,{className:`mint-text-s`,children:[_jsx(`thead`,{children:_jsxs(`tr`,{children:[_jsx(`th`,{children:`Filter Qty`}),_jsx(`th`,{children:`BOGO Qty`}),_jsx(`th`,{children:`Cart Items`}),_jsx(`th`,{children:`Filter Takes`}),_jsx(`th`,{children:`BOGO Takes`})]})}),_jsxs(`tbody`,{children:[_jsxs(`tr`,{children:[_jsx(`td`,{children:`1`}),_jsx(`td`,{children:`1`}),_jsx(`td`,{children:`1 eligible item (A)`}),_jsx(`td`,{children:`1 (A)`}),_jsx(`td`,{children:`0`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`1`}),_jsx(`td`,{children:`1`}),_jsx(`td`,{children:`2 eligible items (A) + (B)`}),_jsx(`td`,{children:`1 (A)`}),_jsx(`td`,{children:`1 (B)`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`2`}),_jsx(`td`,{children:`1`}),_jsx(`td`,{children:`2 items (A) + (B)`}),_jsx(`td`,{children:`2 (A) + (B)`}),_jsx(`td`,{children:`0`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:`2`}),_jsx(`td`,{children:`1`}),_jsx(`td`,{children:`3 items (A) + (B) + (C)`}),_jsx(`td`,{children:`2 (A) + (B)`}),_jsx(`td`,{children:`1 (C)`})]})]})]}),`\n`,_jsx(`p`,{className:`mint-text-sm mint-text-neutral-500 dark:mint-text-neutral-400`,children:_jsxs(_components.p,{children:[`*`,_jsx(_components.em,{children:`Order depends on the price. See below`})]})}),`\n`,_jsx(OptimizedImage,{src:`https://mintlify.s3.us-west-1.amazonaws.com/neblabs/images/BOGO-config-screen.png`,alt:`the config screen for a BOGO offer`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Optionally select the type of discount for your BOGO offer. We’ll leave it at `,_jsx(_components.strong,{children:`FREE`}),` since we are building a traditional Buy One, Get One FREE. But you can choose other discount types. Click on the `,_jsx(_components.strong,{children:`free`}),` selected option to select a different type.`]}),`\n`,_jsx(_components.p,{children:`The following table shows each discount type and examples when the user has 2 matching items. (eg: one $120 pair and one $100 pair of Nike shoes, no other items). Without the offer the total is $220.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Example`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Free`}),_jsxs(_components.td,{children:[`Applies a 100% discount to the `,_jsx(_components.em,{children:`discount items`}),`.`]}),_jsxs(_components.td,{children:[`The $100 pair is free. The customer pays `,_jsx(_components.strong,{children:`$120`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Percentage Off (%)`}),_jsxs(_components.td,{children:[`Takes a percentage off the price of each `,_jsx(_components.em,{children:`discount item`}),`.`]}),_jsxs(_components.td,{children:[`With 50% off, the $100 pair costs $50. The customer pays `,_jsx(_components.strong,{children:`$170`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Fixed Discount ($)`}),_jsxs(_components.td,{children:[`Takes a fixed amount off the price of each `,_jsx(_components.em,{children:`discount item`}),`.`]}),_jsxs(_components.td,{children:[`With $30 off, the $100 pair costs $70. The customer pays `,_jsx(_components.strong,{children:`$190`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Fixed Price`}),_jsxs(_components.td,{children:[`Applies a discount that makes the price of the `,_jsx(_components.em,{children:`discount item`}),` equivalent to the set fixed price.`]}),_jsxs(_components.td,{children:[`With a fixed price of $25, a $75 discount is applied to the $100 pair, so it costs $25. The customer pays `,_jsx(_components.strong,{children:`$145`}),`.`]})]})]})]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Done`}),`. The offer will be added. Your tree should look like the following image:`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintlify.s3.us-west-1.amazonaws.com/neblabs/images/final-BOGO-tree.png`,alt:`the final tree showing the product filters and the BOGO offer attached to them`}),`\n`]}),`\n`]})]}),_jsxs(Step,{children:[_jsx(Heading,{level:`2`,id:`applying-the-coupon-automatically`,children:`Applying the coupon automatically`}),_jsx(_components.p,{children:`Right now if you save the coupon, the customer will need to apply the coupon manually for the offer to take effect. You can make the coupon apply automatically when the cart has eligible items from your product filters.`}),_jsxs(_components.p,{children:[`On the top-right, click `,_jsx(_components.strong,{children:`Manually Applied`}),` to change the mode to auto. It should look like the following image:`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/auto-applied-enabled.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=411c747ce4a5655e0eb2fcb060776131`,alt:`the apply mode is: auto`,\"data-og-width\":`1833`,width:`1833`,\"data-og-height\":`1215`,height:`1215`,\"data-path\":`images/auto-applied-enabled.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/auto-applied-enabled.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=1052fd42abdd967e7bb21aae5df0ff6b 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/auto-applied-enabled.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=1a44e1d26cbcc308aec9152b38c67808 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/auto-applied-enabled.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=db231fe71dd86c5bdc9560406efa0961 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/auto-applied-enabled.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=65574a4b5fb7b1cff3c454ba5018ab9c 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/auto-applied-enabled.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=048bd5cd0f8bf29a85ac2149955f2e95 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/auto-applied-enabled.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=c29990c9c4deb7bb0634a1bc2ba319d1 2500w`}),_jsx(_components.p,{children:`Now when the customer has at least 1 pair of Nike shoes, the coupon will be added.`}),_jsx(Note,{children:_jsx(_components.p,{children:`If they only have 1 pair in the cart, then the coupon will be added but the discount will not be applied until the customer adds another eligible pair.`})})]}),_jsxs(Step,{children:[_jsx(Heading,{level:`2`,id:`saving-the-coupon`,children:`Saving the coupon`}),_jsxs(_components.p,{children:[`All that’s needed to get this offer live is to click `,_jsx(_components.strong,{children:`Save`}),` in the top-right corner of the dashboard. Your coupon will be saved and ready to be used in your shop.`]}),_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`You do not need to enter a coupon code!`}),` Coupons+ will automatically generate one for you if you `,_jsx(_components.em,{children:`choose`}),` to leave the coupon code field empty.`]})})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`how-does-the-bogo-offer-use-the-filtered-items`,children:`How does the BOGO offer use the filtered items?`}),`\n`,_jsx(_components.p,{children:`With the full picture now ready, here’s a simplified overview of what the BOGO offer does with the filtered items.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Coupons+ runs the product filters with the items from the cart. It finds several pairs of Nike shoes. The BOGO offer tells the product filters to get the most expensive ones first, since they are the items that the customer must buy in full. The filters then pass that pair to the offer. The BOGO offer will then try to look in the cart for `,_jsx(_components.em,{children:`more`}),` Nike shoes, ignoring the pair that was passed to it.`]}),`\n`,_jsx(_components.li,{children:`If it finds another one, it will pick it and apply the BOGO discount to it.`}),`\n`,_jsxs(_components.li,{children:[`Otherwise, it will try to add an extra pair if you selected the option `,_jsx(_components.strong,{children:`Automatically add them to the cart`}),`. If you did not select that option, no extra pair gets added and the customer will need to add another themselves. After they do, the BOGO offer will apply the discount to the cheapest pair. The default mode is: Let the customer add them manually.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`testing-the-coupon`,children:`Testing the coupon`}),`\n`,_jsx(_components.p,{children:`Now that the coupon has been saved and is set to auto-apply, let’s make sure it is working as expected.`}),`\n`,_jsx(Heading,{level:`3`,id:`adding-the-products-to-the-cart`,children:`Adding the products to the cart`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{children:_jsx(_components.p,{children:`Go to the shop.`})}),_jsxs(Step,{children:[_jsxs(_components.p,{children:[`Add an eligible item. For this tutorial, let’s add the `,_jsx(_components.strong,{children:`Nike Air Max 90 ($130)`}),` and go to the cart. You will see a notification showing that the coupon was applied successfully. No discount will be applied yet because we only have 1 eligible item, and for this offer we need 2.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-coupon-apply-partially.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=5c2b85a2cb64d7cb977836a87ce4d875`,alt:`the cart has the coupon applied but no discount yet due to lack of extra eligible items`,\"data-og-width\":`2639`,width:`2639`,\"data-og-height\":`1199`,height:`1199`,\"data-path\":`images/bogo-coupon-apply-partially.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-coupon-apply-partially.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=fc824145bf28a2c876c8010e2d14e4a7 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-coupon-apply-partially.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=e0a02dc3a50921d9f05df240a8b17223 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-coupon-apply-partially.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=12eb86ef6123efce8013736c58c7c8c3 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-coupon-apply-partially.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=5b6e5ae8c604828026246863268c25cc 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-coupon-apply-partially.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=3221a0763def866b78444f58df0974af 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-coupon-apply-partially.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=90016e6cc25cc5b52980550f84fd003a 2500w`})]}),_jsxs(Step,{children:[_jsxs(_components.p,{children:[`Go back to the shop page and add another pair of Nike shoes. For this example we will add one pair of `,_jsx(_components.strong,{children:`Nike Air Jordan 1 ($180)`}),`.`]}),_jsx(Info,{children:_jsxs(_components.p,{children:[`You can add any pair of Nike shoes, as long as they are `,_jsx(_components.strong,{children:`Shoes`}),` and from the brand `,_jsx(_components.strong,{children:`Nike`}),`, including another pair of the same product (`,_jsx(_components.strong,{children:`Nike Air Max 90`}),`), but for this example we want to clarify what happens when there are eligible items with different prices.`]})})]}),_jsxs(Step,{children:[_jsxs(_components.p,{children:[`Go to the cart. You will now see that the bogo discount has been applied to the `,_jsx(_components.strong,{children:`Nike Air Max 90`}),` because it is the cheaper of the two eligible items. BOGO offers always prioritize the discounts starting from cheapest to most expensive.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-fully-applied.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=00e53bdd51fac63f45171fc656714483`,alt:`cart page showing the bogo fully applied now with the discount in place`,\"data-og-width\":`2778`,width:`2778`,\"data-og-height\":`1262`,height:`1262`,\"data-path\":`images/bogo-fully-applied.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-fully-applied.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=6cade3e5d55983e89902b01cbc31deab 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-fully-applied.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=601241f49ba6c88044de991f85495491 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-fully-applied.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=21781f6a1fe963fdcdffadddd50f9ea6 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-fully-applied.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=a0127dca75759616169309a7d270beb5 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-fully-applied.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=859a001fff2d0d7de04b5d70c851e0d0 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-fully-applied.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=c1e1b79ebf43bb27232b02e74cb03a3d 2500w`})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`applying-the-bogo-offer-more-than-once`,children:`Applying the BOGO offer more than once`}),`\n`,_jsxs(_components.p,{children:[`Our bogo offer works like a charm. But it only applies once. Try adding 2 more of the `,_jsx(_components.strong,{children:`Nike Air Max 90`}),` so that the cart now has 3 of `,_jsx(_components.strong,{children:`Nike Air Max 90`}),` and 1 of `,_jsx(_components.strong,{children:`Nike Air Jordan 1`}),`. You will see that only 1 pair is being discounted. What happens if you want to apply the bogo offer for every matching pair of eligible items?`]}),`\n`,_jsx(_components.p,{children:`You can make the bogo offer apply repeatedly for every matching set of items. For example:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Quantity in filters`}),_jsx(_components.th,{children:`Quantity in BOGO offer`}),_jsx(_components.th,{children:`Items in the cart`}),_jsx(_components.th,{children:`Items discounted`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`1`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1`}),_jsx(_components.td,{children:`2 eligible items`}),_jsx(_components.td,{children:`1 eligible item`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`1`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1`}),_jsx(_components.td,{children:`3 eligible items`}),_jsx(_components.td,{children:`1 eligible item`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`1`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1`}),_jsx(_components.td,{children:`4 eligible items`}),_jsx(_components.td,{children:`2 eligible items`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`1`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1`}),_jsx(_components.td,{children:`6 eligible items`}),_jsx(_components.td,{children:`3 eligible items`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`2`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1`}),_jsx(_components.td,{children:`3 eligible items`}),_jsx(_components.td,{children:`1 eligible item`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`2`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1`}),_jsx(_components.td,{children:`6 eligible items`}),_jsx(_components.td,{children:`2 eligible items`})]})]})]}),`\n`,_jsx(_components.p,{children:`To enable this feature, from the Coupons+ Dashboard:`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{children:_jsxs(_components.p,{children:[`Click on the BOGO `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#6498ed`,background:`rgb(100 152 237 / 5%)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M21 11.25v8.25a1.5 1.5 0 0 1-1.5 1.5H5.25a1.5 1.5 0 0 1-1.5-1.5v-8.25M12 4.875A2.625 2.625 0 1 0 9.375 7.5H12m0-2.625V7.5m0-2.625A2.625 2.625 0 1 1 14.625 7.5H12m0 0V21m-8.625-9.75h18c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125h-18c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z`})}),`Different Products`]}),` offer.`]})}),_jsxs(Step,{children:[_jsxs(_components.p,{children:[`Scroll down to the section: `,_jsx(_components.em,{children:`How many times can this be applied?`}),`, select `,_jsx(_components.strong,{children:`Repeatedly`}),` and click `,_jsx(_components.strong,{children:`Apply Changes`}),`. The BOGO offer card will now show a `,_jsx(_components.em,{children:`Repeating`}),` label below it:`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/repeating-bogo-card.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=a4826a282cca601736d612c5a5a5c5dd`,alt:`bogo offer card configured as Repeatedly`,\"data-og-width\":`1286`,width:`1286`,\"data-og-height\":`922`,height:`922`,\"data-path\":`images/repeating-bogo-card.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/repeating-bogo-card.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=7c4f10415b2cea8d9d5e80eef428beb5 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/repeating-bogo-card.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=33c96a485fb4a148e4d829e897790873 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/repeating-bogo-card.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=cb07b3f60ef843d45422c643735764ce 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/repeating-bogo-card.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=ce93db70950ad3c96a7edf876fc272c1 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/repeating-bogo-card.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=43ff9892583301f60a8772a19ec37105 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/repeating-bogo-card.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=706477a0627ea5561ef9a0376468a69b 2500w`})]}),_jsxs(Step,{children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Save`}),` to save the coupon. Your BOGO offer will now be applied for every matching pair of items.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-showing-the-bogo-discount-repeatedly.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=9533a90981dd9288ab6945248663c88f`,alt:`cart showing the bogo offer is being applied twice to the cheapest eligible item`,\"data-og-width\":`1842`,width:`1842`,\"data-og-height\":`818`,height:`818`,\"data-path\":`images/cart-showing-the-bogo-discount-repeatedly.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-showing-the-bogo-discount-repeatedly.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=9c2f7424fbbc27811a7d74ae58fc81f0 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-showing-the-bogo-discount-repeatedly.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=20469fef3e03953fd17ba940f7e7cba4 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-showing-the-bogo-discount-repeatedly.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=80dbc2aa1492c8bf062d3fd264a94e5e 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-showing-the-bogo-discount-repeatedly.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=7df0eeaaf4546cbdc5facddaec3eff08 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-showing-the-bogo-discount-repeatedly.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=74082bd83a5b00bfadeec95c6ee20fd6 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-showing-the-bogo-discount-repeatedly.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=251f4b2a388bd89842697b6485d3f9f8 2500w`})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`adding-the-products-to-the-cart-automatically`,children:`Adding the products to the cart automatically`}),`\n`,_jsxs(_components.p,{children:[`Our current configuration makes the customer manually add the extra discount items. But what if you wanted the items to be in the cart automatically as soon as the customer adds one eligible item to their cart? For example, on an empty cart, when the customer adds one pair of `,_jsx(_components.strong,{children:`Nike Air Max 90`}),` you want another pair to be added automatically.`]}),`\n`,_jsx(_components.p,{children:`To do so, from the Coupons+ Dashboard:`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{children:_jsxs(_components.p,{children:[`Click on the BOGO `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#6498ed`,background:`rgb(100 152 237 / 5%)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M21 11.25v8.25a1.5 1.5 0 0 1-1.5 1.5H5.25a1.5 1.5 0 0 1-1.5-1.5v-8.25M12 4.875A2.625 2.625 0 1 0 9.375 7.5H12m0-2.625V7.5m0-2.625A2.625 2.625 0 1 1 14.625 7.5H12m0 0V21m-8.625-9.75h18c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125h-18c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z`})}),`Different Products`]}),` offer.`]})}),_jsx(Step,{children:_jsxs(_components.p,{children:[`Locate: `,_jsx(_components.em,{children:`When items eligible for discount aren’t in the cart`}),` and select `,_jsx(_components.strong,{children:`Automatically add them to the cart`})]})}),_jsx(Step,{children:_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Apply changes`}),` and save the coupon.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`putting-the-filters-to-the-test`,children:`Putting the filters to the test`}),`\n`,_jsxs(_components.p,{children:[`Remember: for a discount to apply, an item must satisfy all filters in that context (group). For this example, the product filters will only match `,_jsx(_components.strong,{children:`Shoes`}),` from the `,_jsx(_components.strong,{children:`Nike`}),` brand.`]}),`\n`,_jsxs(_components.p,{children:[`Try removing all the items from the cart. Then go back to the shop page and add a pair of `,_jsx(_components.strong,{children:`Adidas Ultraboost Light`}),` and one `,_jsx(_components.strong,{children:`Nike Club Fleece Hoodie`}),`. The coupon will not be applied because these items only match one filter: the `,_jsx(_components.strong,{children:`Adidas Ultraboost Light`}),` matches the shoes category but not the brand, and the `,_jsx(_components.strong,{children:`Nike Club Fleece Hoodie`}),` matches the brand but not the category. This is an example of the power of combining product filters in Coupons+, and it is one of the most powerful things about the plugin.`]}),`\n`,_jsx(Heading,{level:`2`,id:`adding-an-extra-offer`,children:`Adding an extra offer`}),`\n`,_jsx(_components.p,{children:`What if you also want to give the customer a free shipping discount alongside the BOGO offer? Coupons+ allows you to add more than one offer per group of filters.`}),`\n`,_jsx(_components.p,{children:`To add another offer for this filters group, from the Coupons+ Dashboard:`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{children:[_jsxs(_components.p,{children:[`Click on the `,_jsx(_components.strong,{children:`+`}),` button attached to the last offer:`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/plus-button-on-the-offer.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=c65de3694bc5b667c34a07ca222151dd`,alt:`plus button sign that is attached to the right of the last offer`,\"data-og-width\":`1134`,width:`1134`,\"data-og-height\":`1215`,height:`1215`,\"data-path\":`images/plus-button-on-the-offer.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/plus-button-on-the-offer.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=593d8aca2aa9ed997b2fc02383a783f4 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/plus-button-on-the-offer.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=c409528dc528dad8bf7ff791885d021d 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/plus-button-on-the-offer.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=6faff457f504a0268b8fa682c665cc68 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/plus-button-on-the-offer.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=5fd3ee67ffba9e203c4e6c24b06d4d2a 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/plus-button-on-the-offer.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=c176ee14ce36c62e673ee56f20bd3540 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/plus-button-on-the-offer.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=608517930d9d7dfa51b2d58a89ad85bf 2500w`})]}),_jsxs(Step,{children:[_jsxs(_components.p,{children:[`From the available offers, Click `,_jsx(_components.strong,{children:_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#6498ed`,background:`rgb(100 152 237 / 5%)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M8.25 18.75a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m3 0h6m-9 0H3.375a1.125 1.125 0 0 1-1.125-1.125V14.25m17.25 4.5a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m3 0h1.125c.621 0 1.129-.504 1.09-1.124a17.902 17.902 0 0 0-3.213-9.193 2.056 2.056 0 0 0-1.58-.86H14.25M16.5 18.75h-2.25m0-11.177v-.958c0-.568-.422-1.048-.987-1.106a48.554 48.554 0 0 0-10.026 0 1.106 1.106 0 0 0-.987 1.106v7.635m12-6.677v6.677m0 4.5v-4.5m0 0h-12`})}),`Shipping Discount`]})}),`, configure it and click `,_jsx(_components.strong,{children:`Done`}),`. Your offers tree will now look like the following image:`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-tree-with-2-offers.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=85a0ba46e80688e61c3bee7aa37ae1cb`,alt:`tree showing the filters and two offers: bogo and cart shipping discount`,\"data-og-width\":`1289`,width:`1289`,\"data-og-height\":`1195`,height:`1195`,\"data-path\":`images/bogo-tree-with-2-offers.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-tree-with-2-offers.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=d145d108a2628576b088fa50fe0bd9fb 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-tree-with-2-offers.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=73dd8cc800c1a07b9da90d1c57f5aff3 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-tree-with-2-offers.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=f52f847267a04a3c6c8872d80a0a659e 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-tree-with-2-offers.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=ae29676144b230107ad96463ac4b9141 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-tree-with-2-offers.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=cba8f61cac6f6e7490a0a642c14a49a4 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/bogo-tree-with-2-offers.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=5c6f93286842518843275b4e258e3fd8 2500w`}),_jsxs(_components.p,{children:[`Now the `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#6498ed`,background:`rgb(100 152 237 / 5%)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M8.25 18.75a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m3 0h6m-9 0H3.375a1.125 1.125 0 0 1-1.125-1.125V14.25m17.25 4.5a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m3 0h1.125c.621 0 1.129-.504 1.09-1.124a17.902 17.902 0 0 0-3.213-9.193 2.056 2.056 0 0 0-1.58-.86H14.25M16.5 18.75h-2.25m0-11.177v-.958c0-.568-.422-1.048-.987-1.106a48.554 48.554 0 0 0-10.026 0 1.106 1.106 0 0 0-.987 1.106v7.635m12-6.677v6.677m0 4.5v-4.5m0 0h-12`})}),`Shipping Discount`]}),` will be applied when the customer has 1 `,_jsx(_components.em,{children:`or more`}),` Nike Shoes in the cart.`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`Each offer is configured and applied independently and each will be applied when the filters return at least one valid item. This means, for example, that the BOGO offer that has been configured to apply repeatedly will only be applied repeatedly itself. The `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#6498ed`,background:`rgb(100 152 237 / 5%)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M8.25 18.75a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m3 0h6m-9 0H3.375a1.125 1.125 0 0 1-1.125-1.125V14.25m17.25 4.5a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m3 0h1.125c.621 0 1.129-.504 1.09-1.124a17.902 17.902 0 0 0-3.213-9.193 2.056 2.056 0 0 0-1.58-.86H14.25M16.5 18.75h-2.25m0-11.177v-.958c0-.568-.422-1.048-.987-1.106a48.554 48.554 0 0 0-10.026 0 1.106 1.106 0 0 0-.987 1.106v7.635m12-6.677v6.677m0 4.5v-4.5m0 0h-12`})}),`Shipping Discount`]}),` offer will be applied only once.`]})}),_jsx(Info,{children:_jsxs(_components.p,{children:[`You can combine other offers too. Like `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#6498ed`,background:`rgb(100 152 237 / 5%)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M15.75 10.5V6a3.75 3.75 0 1 0-7.5 0v4.5m11.356-1.993 1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 0 1-1.12-1.243l1.264-12A1.125 1.125 0 0 1 5.513 7.5h12.974c.576 0 1.059.435 1.119 1.007ZM8.625 10.5a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm7.5 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z`})}),`Discount`]}),` and `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#6498ed`,background:`rgb(100 152 237 / 5%)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M21 11.25v8.25a1.5 1.5 0 0 1-1.5 1.5H5.25a1.5 1.5 0 0 1-1.5-1.5v-8.25M12 4.875A2.625 2.625 0 1 0 9.375 7.5H12m0-2.625V7.5m0-2.625A2.625 2.625 0 1 1 14.625 7.5H12m0 0V21m-8.625-9.75h18c.621 0 1.125-.504 1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125h-18c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125Z`})}),`Different Products`]}),`.`]})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`restricting-the-coupon-with-a-precondition`,children:`Restricting the coupon with a precondition`}),`\n`,_jsx(_components.p,{children:`Finally, what if you wanted to restrict this offer only under specific conditions other than the products in the cart, like restricting the offer for a specific user role or a specific date? You would need to add a precondition that must be passed before the coupon can be applied.`}),`\n`,_jsx(_components.p,{children:`To add a precondition, from the Coupons+ Dashboard:`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{children:_jsxs(_components.p,{children:[`Click on `,_jsx(_components.strong,{children:`No Preconditions`}),` on the right. You will be presented with a list of available preconditions. For this example let’s just restrict it to a specific date.`]})}),_jsx(Step,{children:_jsxs(_components.p,{children:[`Scroll down and select `,_jsxs(`span`,{className:`mint-inline-flex mint-items-center mint-align-middle mint-gap-1.5 mint-px-1.5 mint-h-6 mint-rounded-md mint-text-sm mint-font-medium`,style:{color:`#8891ff`,background:`rgb(136 145 255 / 5%)`,verticalAlign:`middle`,marginTop:`-2px`},children:[_jsx(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 24 24`,\"stroke-width\":`1.5`,stroke:`currentColor`,class:`mint-w-4 mint-h-4 mint-shrink-0 `,children:_jsx(`path`,{\"stroke-linecap\":`round`,\"stroke-linejoin\":`round`,d:`M6.75 2.994v2.25m10.5-2.25v2.25m-14.252 13.5V7.491a2.25 2.25 0 0 1 2.25-2.25h13.5a2.25 2.25 0 0 1 2.25 2.25v11.251m-18 0a2.25 2.25 0 0 0 2.25 2.25h13.5a2.25 2.25 0 0 0 2.25-2.25m-18 0v-7.5a2.25 2.25 0 0 1 2.25-2.25h13.5a2.25 2.25 0 0 1 2.25 2.25v7.5m-6.75-6h2.25m-9 2.25h4.5m.002-2.25h.005v.006H12v-.006Zm-.001 4.5h.006v.006h-.006v-.005Zm-2.25.001h.005v.006H9.75v-.006Zm-2.25 0h.005v.005h-.006v-.005Zm6.75-2.247h.005v.005h-.005v-.005Zm0 2.247h.006v.006h-.006v-.006Zm2.25-2.248h.006V15H16.5v-.005Z`})}),`Date`]}),`, configure it and click `,_jsx(_components.em,{children:`Done`})]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsxs(`a`,{href:`https://wordpress.org/support/plugin/coupons-plus-for-woocommerce/`,target:`_blank`,rel:`noreferrer`,className:`mint-relative mint-group mint-flex mint-flex-col mint-items-start mint-gap-3 mint-p-6 mint-rounded-3xl mint-border mint-border-[#f1f3f5]/20 mint-bg-[#f1f3f5]/30 hover:mint-bg-[#f1f3f5]/50 mint-transition-all mint-no-underline mint-text-inherit dark:mint-border-zinc-800 dark:mint-bg-zinc-900`,children:[_jsx(`div`,{className:`mint-absolute mint-top-6 mint-right-6 mint-text-gray-400 group-hover:mint-text-gray-900 dark:mint-text-zinc-500 dark:group-hover:mint-text-white mint-transition-all group-hover:mint-translate-x-0.5 group-hover:mint--translate-y-0.5`,children:_jsx(Icon,{icon:`arrow-up-right`,size:18})}),_jsx(`div`,{className:`mint-flex mint-h-10 mint-w-10 mint-shrink-0 mint-items-center mint-justify-center mint-rounded-lg mint-bg-[#8891ff]/10 mint-text-[#8891ff]`,children:_jsx(Icon,{icon:`life-ring`,size:20})}),_jsxs(`div`,{children:[_jsx(`div`,{className:`mint-font-semibold mint-text-gray-900 mint-text-lg dark:mint-text-white`,children:_jsx(_components.p,{children:`Stuck? Have a question? We’re here to help!`})}),_jsx(`div`,{className:`mint-text-sm mint-text-gray-900/50 mint-font-normal dark:mint-text-gray-400`,children:_jsx(_components.p,{children:`Ask for help in the official support forums!`})})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"How to create your first Buy One, Get One (BOGO) deal","description":"Learn how to set up automatic BOGO deals in WooCommerce using the free Coupons+ plugin.","sidebarTitle":"Creating a Buy One, Get One (BOGO) Deal","href":"/getting-started/creating-a-bogo-deal-woocommerce"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Introduction","slug":"introduction","depth":2,"children":[]},{"title":"What you’ll be building","slug":"what-you’ll-be-building","depth":2,"children":[]},{"title":"Before we begin","slug":"before-we-begin","depth":2,"children":[]},{"title":"Follow along with a demo site","slug":"follow-along-with-a-demo-site","depth":2,"children":[]},{"title":"Creating the coupon","slug":"creating-the-coupon","depth":2,"children":[]},{"title":"Adding the product filters","slug":"adding-the-product-filters","depth":2,"children":[]},{"title":"Adding your offers","slug":"adding-your-offers","depth":2,"children":[]},{"title":"Applying the coupon automatically","slug":"applying-the-coupon-automatically","depth":2,"children":[]},{"title":"Saving the coupon","slug":"saving-the-coupon","depth":2,"children":[{"title":"How does the BOGO offer use the filtered items?","slug":"how-does-the-bogo-offer-use-the-filtered-items","depth":3,"children":[]}]},{"title":"Testing the coupon","slug":"testing-the-coupon","depth":2,"children":[{"title":"Adding the products to the cart","slug":"adding-the-products-to-the-cart","depth":3,"children":[]}]},{"title":"Applying the BOGO offer more than once","slug":"applying-the-bogo-offer-more-than-once","depth":2,"children":[]},{"title":"Adding the products to the cart automatically","slug":"adding-the-products-to-the-cart-automatically","depth":2,"children":[]},{"title":"Putting the filters to the test","slug":"putting-the-filters-to-the-test","depth":2,"children":[]},{"title":"Adding an extra offer","slug":"adding-an-extra-offer","depth":2,"children":[]},{"title":"Restricting the coupon with a precondition","slug":"restricting-the-coupon-with-a-precondition","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"dynamicCss":".mint-absolute {\n position: absolute\n}\n.mint-relative {\n position: relative\n}\n.mint-right-6 {\n right: 1.5rem\n}\n.mint-top-6 {\n top: 1.5rem\n}\n.mint-flex {\n display: flex\n}\n.mint-inline-flex {\n display: inline-flex\n}\n.mint-h-10 {\n height: 2.5rem\n}\n.mint-h-4 {\n height: 1rem\n}\n.mint-h-6 {\n height: 1.5rem\n}\n.mint-w-10 {\n width: 2.5rem\n}\n.mint-w-4 {\n width: 1rem\n}\n.mint-shrink-0 {\n flex-shrink: 0\n}\n.mint-flex-col {\n flex-direction: column\n}\n.mint-items-start {\n align-items: flex-start\n}\n.mint-items-center {\n align-items: center\n}\n.mint-justify-center {\n justify-content: center\n}\n.mint-gap-1\\.5 {\n gap: 0.375rem\n}\n.mint-gap-3 {\n gap: 0.75rem\n}\n.mint-rounded-3xl {\n border-radius: 1.5rem\n}\n.mint-rounded-lg {\n border-radius: 0.5rem\n}\n.mint-rounded-md {\n border-radius: 0.375rem\n}\n.mint-border {\n border-width: 1px\n}\n.mint-border-\\[\\#f1f3f5\\]\\/20 {\n border-color: rgb(241 243 245 / 0.2)\n}\n.mint-bg-\\[\\#8891ff\\]\\/10 {\n background-color: rgb(136 145 255 / 0.1)\n}\n.mint-bg-\\[\\#f1f3f5\\]\\/30 {\n background-color: rgb(241 243 245 / 0.3)\n}\n.mint-p-6 {\n padding: 1.5rem\n}\n.mint-px-1\\.5 {\n padding-left: 0.375rem;\n padding-right: 0.375rem\n}\n.mint-align-middle {\n vertical-align: middle\n}\n.mint-text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem\n}\n.mint-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.mint-font-medium {\n font-weight: 500\n}\n.mint-font-normal {\n font-weight: 400\n}\n.mint-font-semibold {\n font-weight: 600\n}\n.mint-text-\\[\\#8891ff\\] {\n --tw-text-opacity: 1;\n color: rgb(136 145 255 / var(--tw-text-opacity, 1))\n}\n.mint-text-gray-400 {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity, 1))\n}\n.mint-text-gray-900 {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity, 1))\n}\n.mint-text-gray-900\\/50 {\n color: rgb(17 24 39 / 0.5)\n}\n.mint-text-inherit {\n color: inherit\n}\n.mint-text-neutral-500 {\n --tw-text-opacity: 1;\n color: rgb(115 115 115 / var(--tw-text-opacity, 1))\n}\n.mint-no-underline {\n text-decoration-line: none\n}\n.mint-transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.hover\\:mint-bg-\\[\\#f1f3f5\\]\\/50:hover {\n background-color: rgb(241 243 245 / 0.5)\n}\n.mint-group:hover .group-hover\\:mint--translate-y-0\\.5 {\n --tw-translate-y: -0.125rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.mint-group:hover .group-hover\\:mint-translate-x-0\\.5 {\n --tw-translate-x: 0.125rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.mint-group:hover .group-hover\\:mint-text-gray-900 {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-border-zinc-800:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgb(39 39 42 / var(--tw-border-opacity, 1))\n}\n.dark\\:mint-bg-zinc-900:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgb(24 24 27 / var(--tw-bg-opacity, 1))\n}\n.dark\\:mint-text-gray-400:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-neutral-400:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(163 163 163 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-white:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-zinc-500:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(113 113 122 / var(--tw-text-opacity, 1))\n}\n.mint-group:hover .dark\\:group-hover\\:mint-text-white:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1))\n}","subdomain":"neblabs","siteName":"Coupons+ for WooCommerce Docs","title":"How to create your first Buy One, Get One (BOGO) deal - Coupons+ for WooCommerce Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-24T17:21:25.745Z","originalFileLocation":"getting-started/creating-a-bogo-deal-woocommerce.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Learn how to set up automatic BOGO deals in WooCommerce using the free Coupons+ plugin.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Coupons+ for WooCommerce Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/neblabs/AXjw2XxsHWbNr-m1/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/neblabs/AXjw2XxsHWbNr-m1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/neblabs/AXjw2XxsHWbNr-m1/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/neblabs/AXjw2XxsHWbNr-m1/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/neblabs/AXjw2XxsHWbNr-m1/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/neblabs/AXjw2XxsHWbNr-m1/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/neblabs/AXjw2XxsHWbNr-m1/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/neblabs/AXjw2XxsHWbNr-m1/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/neblabs/AXjw2XxsHWbNr-m1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"How to create your first Buy One, Get One (BOGO) deal - Coupons+ for WooCommerce Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how to set up automatic BOGO deals in WooCommerce using the free Coupons+ plugin.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Coupons+ for WooCommerce Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developer.couponsplus.app/getting-started/creating-a-bogo-deal-woocommerce\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://neblabs.mintlify.app/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=How+to+create+your+first+Buy+One%2C+Get+One+%28BOGO%29+deal\u0026amp;description=Learn+how+to+set+up+automatic+BOGO+deals+in+WooCommerce+using+the+free+Coupons%2B+plugin.\u0026amp;theme=6957a92a3aabc9b611bed462\u0026amp;signature=fe976f226c9ea2261ca60cdad5e33db6d3f3fdaa593ea0a095bf75fb8eb4f7d4\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"How to create your first Buy One, Get One (BOGO) deal - Coupons+ for WooCommerce Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how to set up automatic BOGO deals in WooCommerce using the free Coupons+ plugin.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://neblabs.mintlify.app/_mintlify/api/og/v2?division=Getting+Started\u0026amp;title=How+to+create+your+first+Buy+One%2C+Get+One+%28BOGO%29+deal\u0026amp;description=Learn+how+to+set+up+automatic+BOGO+deals+in+WooCommerce+using+the+free+Coupons%2B+plugin.\u0026amp;theme=6957a92a3aabc9b611bed462\u0026amp;signature=fe976f226c9ea2261ca60cdad5e33db6d3f3fdaa593ea0a095bf75fb8eb4f7d4\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/neblabs/AXjw2XxsHWbNr-m1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Coupons+ for WooCommerce Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#8891ff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developer.couponsplus.app/getting-started/creating-a-bogo-deal-woocommerce\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/getting-started/creating-a-bogo-deal-woocommerce.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developer.couponsplus.app/#organization\",\"name\":\"Coupons+ for WooCommerce Docs\",\"url\":\"https://developer.couponsplus.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/logo/light.svg?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=7bc2031123da026cbbc81c1b198c170b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developer.couponsplus.app#website\",\"name\":\"Coupons+ for WooCommerce Docs\",\"url\":\"https://developer.couponsplus.app\",\"publisher\":{\"@id\":\"https://developer.couponsplus.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developer.couponsplus.app/getting-started/creating-a-bogo-deal-woocommerce#webpage\",\"url\":\"https://developer.couponsplus.app/getting-started/creating-a-bogo-deal-woocommerce\",\"name\":\"How to create your first Buy One, Get One (BOGO) deal\",\"description\":\"Learn how to set up automatic BOGO deals in WooCommerce using the free Coupons+ plugin.\",\"dateModified\":\"2026-10-24T17:21:25.745Z\",\"isPartOf\":{\"@id\":\"https://developer.couponsplus.app#website\"},\"breadcrumb\":{\"@id\":\"https://developer.couponsplus.app/getting-started/creating-a-bogo-deal-woocommerce#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developer.couponsplus.app/getting-started/creating-a-bogo-deal-woocommerce#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting Started\",\"item\":\"https://developer.couponsplus.app/getting-started/welcome\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to create your first Buy One, Get One (BOGO) deal\",\"item\":\"https://developer.couponsplus.app/getting-started/creating-a-bogo-deal-woocommerce\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://developer.couponsplus.app/getting-started/creating-a-bogo-deal-woocommerce#article\",\"headline\":\"How to create your first Buy One, Get One (BOGO) deal\",\"name\":\"How to create your first Buy One, Get One (BOGO) deal\",\"description\":\"Learn how to set up automatic BOGO deals in WooCommerce using the free Coupons+ plugin.\",\"url\":\"https://developer.couponsplus.app/getting-started/creating-a-bogo-deal-woocommerce\",\"mainEntityOfPage\":{\"@id\":\"https://developer.couponsplus.app/getting-started/creating-a-bogo-deal-woocommerce#webpage\"},\"dateModified\":\"2026-10-24T17:21:25.745Z\",\"publisher\":{\"@id\":\"https://developer.couponsplus.app/#organization\"},\"isPartOf\":{\"@id\":\"https://developer.couponsplus.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Coupons+ for WooCommerce Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Coupons+ for WooCommerce Docs","nav":{"global":{"anchors":[{"anchor":"Download","icon":"cloud-arrow-down","href":"https://wordpress.org/plugins/coupons-plus-for-woocommerce"},{"anchor":"Support","icon":"life-ring","href":"https://wordpress.org/support/plugin/coupons-plus-for-woocommerce/"}]},"pages":[{"group":"Getting Started","pages":[{"title":"Getting started with Coupons+","description":"First steps","href":"/getting-started/welcome"},{"title":"How to create your first Buy One, Get One (BOGO) deal","sidebarTitle":"Creating a Buy One, Get One (BOGO) Deal","href":"/getting-started/creating-a-bogo-deal-woocommerce"},{"title":"Creating product discounts: Categories, Brands, Products, and more","description":"Learn how to set up automatic global item discounts that target anything in WooCommerce using the free Coupons+ plugin.","sidebarTitle":"Creating Product Discounts","href":"/getting-started/creating-automatic-product-categories-brands-discounts"}]},{"group":"Filters","pages":[{"title":"Filter Groups","href":"/filters/product-filter-groups"},{"title":"Using product filters as conditions for your offers","href":"/filters/product-filters-as-conditions"}]},{"group":"Offers","pages":[{"title":"Applying offers repeatedly","href":"/offers/applying-an-offer-repeatedly"}]}]},"title":"How to create your first Buy One, Get One (BOGO) deal - Coupons+ for WooCommerce Docs","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-CaUwvYH3.js","lightbox-handle-r17bVUz3.js"]}