This tutorial has been written to help you understand the fundamental concepts of Coupons+. It is the first part of a two-part series. You will learn how to set up automatic product discounts 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 product discounts using Discount, these filters target the items that will receive the discount.
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 Item Discounts, 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, 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
We are targeting categories for this tutorial, but you can select any other filter that you need. For example, to discount specific product IDs, you would add the Products filter instead.
Click Next. In this screen you will be asked if you want to limit by quantity. Currently, we are discounting any number of Shoes, so we will skip this step for now. If you want to limit quantities, you can do so in this step.Click Apply to finish adding your product filters. A new tree will be created. It should look like the following image:
Product filters are 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 all that are in the Shoes category.
So Coupons+ will filter these items. Now what? We need to tell it what to do with them. For this tutorial we want to apply an offer to them, so let’s add one.
Click Add offer
Select Discount. This will open the configuration screen for this offer.
Set the amount to discount. The discount will be applied to each item that was filtered. Not all offers apply the discount to the passed items. For example, the BOGO offers use the filtered items as conditionals and apply discount to additional items.*For this tutorial, set it to 10%.We’ll leave the other options untouched, but you can configure this offer depending on your needs. For example, if you wanted to apply a fixed discount per item, you would select the $ option instead of %.*As a matter of fact, this Discount offer only applies the discount to the filtered items when that option is selected in Apply to. Here’s a table for this offer that illustrates this.
Apply to
Filters behavior
Filtered Items
Applies the discount to all the filtered items
Cart Subtotal
Applies a single discount to the cart when the filters passed valid items to it, essentially acting as a conditional for the cart discount
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 shoes in the cart, the coupon will be added.
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.
Add an eligible item. For this tutorial, let’s add the Adidas Ultraboost Light ($190) and go to the cart. A 10% discount will be applied automatically to it. We did not need to enter a coupon code since we set the coupon to be auto-applied.
Try adding other items that are not shoes, you will see that the discount will only be applied to the shoes. Try also adding more shoes to see the discount apply to all of them.
The current filters will select all shoes in the cart. But what if you wanted to limit the discount to 2 pairs max., or apply the discount when the customer buys 2 or more? You will need to add a Quantity filter to the current set of filters.To do so, from the Coupons+ Dashboard:
1
Click on the Categories filter (currently shows Shoes). The config screen for this filter set (context) will open.
2
From the right sidebar, select And QuantityQuantity. This will add a Quantity filter to the current set.For this example, we will add the discount to 2 items, so set the amount to 2.
If you need any other type of quantity restriction, like when buying x or more (bulk discount), you can click on Fixed and select the option that you need (for example: Minimum)
3
Click Apply Changes. Your tree should look like the following image:
Now that we are restricting by quantities, what happens when there are more items in the cart than the specified quantity? Let’s say the customer has 3 pairs of shoes in the cart. What happens now? Is the coupon rejected?Coupons+ will only take the specified quantities and ignore the rest. If the customer has 3 pairs of shoes in the cart, the filters will take 2. Now which 2 of the 3 items? The cheapest 2 will be taken since the Discount offer prioritizes items with a lower price. This prioritization depends on the type of offer. For example, BOGO offers will take the most expensive items (and ignore them so the discount applies to extra items). You can read more about creating a BOGO offer here.Try adding more pairs of shoes and see the discount apply only to the 2 cheapest.
What if you also want to give the customer a free shipping discount alongside the Discount offer? Or perhaps a Buy X Get Y offer to apply a discount to other products (or maybe a gift) when buying 2 pairs of shoes? Coupons+ allows you to add more than one offer per group of filters.For this tutorial, let’s add a BOGO: Different Products so that we also give the customer a free tee when buying 2 pairs of shoes!To add another offer for this filter group, from the Coupons+ Dashboard:
1
Click on the + button attached to the last offer:
2
From the available offers, Click BOGO: Different Products, add the product to discount and click Done. Your offers tree should look something like the following image:Now the Different Products offer will be applied when the customer has 2 pairs of Shoes in the cart, alongside the 10% discount to the shoes.
Each offer is configured and applied independently and each will be applied when the filters pass valid items. This means that the Discount offer will be applied to the filtered items and the BOGO offer to the Tee.
If we go back to the store and add 2 pairs of shoes, the free tee will be added automatically to the cart!
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-automatic-product-categories-brands-discounts","slug":"/getting-started/creating-automatic-product-categories-brands-discounts","pageMetadata":{"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"},"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 global item discounts that target anything 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`,_jsx(_components.p,{children:`This tutorial has been written to help you understand the fundamental concepts of Coupons+. It is the first part of a two-part series. You will learn how to set up automatic product discounts 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`}),`: 10% off all Shoes.`]}),`\n`,_jsx(_components.p,{children:`By the end of this tutorial, you will be able to create product discounts that:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Can target any type of products.`}),`\n`,_jsx(_components.li,{children:`Apply automatically without the customer needing to enter a coupon code manually.`}),`\n`,_jsx(_components.li,{children:`Are limited to specific quantities`}),`\n`,_jsx(_components.li,{children:`Can combine with other offers, like a Discount + Gift`}),`\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 product discounts using `,_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`]}),`, `,_jsx(_components.strong,{children:`these filters target the items that will receive the discount`}),`.`]}),_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:`Item Discounts`}),`, 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`]}),`\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`]})}),`, 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.`]}),_jsxs(_components.ol,{children:[`\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/item-discount-filters-list.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=e0c58ae25420134019fa8197210d31bb`,alt:`The product filters list selection screen`,\"data-og-width\":`1717`,width:`1717`,\"data-og-height\":`1241`,height:`1241`,\"data-path\":`images/item-discount-filters-list.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/item-discount-filters-list.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=39e1132464b3a01fdb9eff282b68bfc4 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/item-discount-filters-list.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=3a459ac67d53a257261a55516e24216c 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/item-discount-filters-list.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=3af50842a8248bb7b658b8d9ee763537 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/item-discount-filters-list.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=8f4644b1fb3b52da712beec3c4ce26bd 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/item-discount-filters-list.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=9a3d2a8ae24b43c40240a63f9d503748 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/item-discount-filters-list.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=67bf0956675a12516362161c35324417 2500w`})}),_jsx(Column,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/item-discount-categories-screen.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=ffeaee641cd5a1633ad3b7ec584d73d4`,alt:`The categories filter with the shoes category added in`,\"data-og-width\":`2241`,width:`2241`,\"data-og-height\":`1093`,height:`1093`,\"data-path\":`images/item-discount-categories-screen.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/item-discount-categories-screen.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=97f676b6142377703fe896f54141c71b 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/item-discount-categories-screen.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=1e9c25a71e4555d743c0cf2e31d1e3ee 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/item-discount-categories-screen.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=0c7d585950153ec980e7bc3bbd4cd552 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/item-discount-categories-screen.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=9db356fcb9434aaba07f5cbe87a583f1 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/item-discount-categories-screen.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=e79011470f2ba6d4ccd49db312a0244a 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/item-discount-categories-screen.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=d603c8c11528c9660cfc520b090214e7 2500w`})})]}),`\n`,_jsxs(Note,{children:[`We are targeting categories for this tutorial, but you can select any other filter that you need. For example, to discount specific product IDs, you would 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:`m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9`})}),`Products`]}),` filter instead.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Next`}),`. In this screen you will be asked if you want to limit by quantity. Currently, we are discounting `,_jsx(_components.strong,{children:`any`}),` number of Shoes, so we will skip this step `,_jsx(_components.em,{children:`for now`}),`. If you want to limit quantities, you can do so in this step.`]}),`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Apply`}),` to finish adding your product filters. A\\xA0new tree will be created. It should look like the following image:`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cat-tree-no-offers-yet.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=d2b6502304fd3586dc0f4f4cf13a79a6`,alt:`The new tree with the category filter but without the Discount offer yet`,\"data-og-width\":`1114`,width:`1114`,\"data-og-height\":`1126`,height:`1126`,\"data-path\":`images/cat-tree-no-offers-yet.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cat-tree-no-offers-yet.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=b2966c9dbacc44ccdfa4076a133542f8 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cat-tree-no-offers-yet.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=f44e84afa579e48ba0e19d8bfe871698 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cat-tree-no-offers-yet.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=0f5c3419bb202847f999230e10a965e5 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cat-tree-no-offers-yet.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=ebb003f8af8de5fa68a47385e44be740 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cat-tree-no-offers-yet.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=eaa4b5739dd8048544d06ebc5c3bb84f 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cat-tree-no-offers-yet.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=a0078c069542d7a18b96be97be8ca517 2500w`}),`\n`,_jsx(Heading,{level:`3`,id:`about-product-filters`,children:`About product filters`}),`\n`,_jsxs(_components.p,{children:[`Product filters are 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 `,_jsx(_components.em,{children:`all`}),` that are in the `,_jsx(_components.strong,{children:`Shoes`}),` category.`]}),`\n`]}),`\n`]})]}),_jsxs(Step,{children:[_jsx(Heading,{level:`2`,id:`adding-your-offers`,children:`Adding your offers`}),_jsxs(_components.p,{children:[`So Coupons+ will filter these items. Now what? We need to tell it what to do with them. For this tutorial we want to `,_jsx(_components.em,{children:`apply an offer`}),` to them, so let’s add one.`]}),_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(`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`]}),`. This will open the configuration screen for this offer.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Set the amount to discount. The discount will be applied to `,_jsx(_components.strong,{children:`each item that was filtered`}),`. Not all offers apply the discount to the passed items. For example, the BOGO offers use the filtered items as conditionals and apply discount to additional items.*`]}),`\n`,_jsxs(_components.p,{children:[`For this tutorial, set it to `,_jsx(_components.strong,{children:`10%`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`We’ll leave the other options untouched, but you can configure this offer depending on your needs. For example, if you wanted to apply a fixed discount per item, you would select the `,_jsx(_components.strong,{children:`$`}),` option instead of `,_jsx(_components.strong,{children:`%`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`*As a matter of fact, this `,_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 only applies the discount to the filtered items when that option is selected in `,_jsx(_components.em,{children:`Apply to`}),`. Here’s a table for this offer that illustrates this.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Apply to`}),_jsx(_components.th,{children:`Filters behavior`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Filtered Items`}),_jsx(_components.td,{children:`Applies the discount to all the filtered items`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Cart Subtotal`}),_jsx(_components.td,{children:`Applies a single discount to the cart when the filters passed valid items to it, essentially acting as a conditional for the cart discount`})]})]})]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-config-screen.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=c81da150df0b1fc85ed3a6a766d203a8`,alt:`the config screen for a Discount offer`,\"data-og-width\":`1668`,width:`1668`,\"data-og-height\":`1236`,height:`1236`,\"data-path\":`images/discount-config-screen.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-config-screen.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=f602db3fd71a5ec18c2d44a8f0d452f4 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-config-screen.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=865e79fbc7d94242cc3213feb5af0cc4 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-config-screen.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=3a72133fa648affb3d24502918113a75 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-config-screen.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=31a15893465a7fad71c660f30325fe89 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-config-screen.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=58b2fe91850f9694099c7a10de4becc2 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-config-screen.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=00493a07f75856eebb780d8fef46c5d1 2500w`}),`\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://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/categories-and-discount-tree-node.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=629c9000e85ac115f6c8603cfcf3bd1b`,alt:`the final tree showing the product filters and the Discount offer attached to them`,\"data-og-width\":`1461`,width:`1461`,\"data-og-height\":`1837`,height:`1837`,\"data-path\":`images/categories-and-discount-tree-node.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/categories-and-discount-tree-node.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=6c6b2bdc92ffc24eb399c4ee03cf0b6a 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/categories-and-discount-tree-node.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=1945b24732c93e0d33b7d539384c2056 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/categories-and-discount-tree-node.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=6996a98cb74ccabd04a31a6abbed8855 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/categories-and-discount-tree-node.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=e5951f0d15e0b8af8cb603404abe902b 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/categories-and-discount-tree-node.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=ccebeb107de9c089ec40f0c10c847387 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/categories-and-discount-tree-node.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=e6ea3ae8e03fb4ab4e4748e983378eab 2500w`}),`\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 shoes in the cart, the coupon will be added.`})]}),_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:`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:`Adidas Ultraboost Light ($190)`}),` and go to the cart. A 10% discount will be applied automatically to it. We did not need to enter a coupon code since we set the coupon to be auto-applied.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-with-category-discount.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=72cc9172fd6d3895bc1ceb40ed430e6e`,alt:`the cart page showing a pair of shoes with a 10 percent discount applied to them`,\"data-og-width\":`2680`,width:`2680`,\"data-og-height\":`1262`,height:`1262`,\"data-path\":`images/cart-with-category-discount.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-with-category-discount.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=d1c5b6bde38b60a7b3c8425f636e3949 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-with-category-discount.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=b0c3c49a12289e0ea1b7662566787d0c 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-with-category-discount.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=b3ffb174b1ee485a1a9717c21731c736 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-with-category-discount.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=cc91710660ba051d698ce9b78c144043 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-with-category-discount.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=9e4da6d22203790ac9bfdcc3e9e8f30e 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-with-category-discount.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=f8207ee2199b505a7880b809f84c4f7f 2500w`}),_jsx(Note,{children:_jsx(_components.p,{children:`Try adding other items that are not shoes, you will see that the discount will only be applied to the shoes. Try also adding more shoes to see the discount apply to all of them.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`restricting-by-quantities`,children:`Restricting by quantities`}),`\n`,_jsxs(_components.p,{children:[`The current filters will select all shoes in the cart. But what if you wanted to limit the discount to 2 pairs max., or apply the discount when the customer buys 2 `,_jsx(_components.em,{children:`or more`}),`? You will need to add a Quantity filter to the current set of filters.`]}),`\n`,_jsx(_components.p,{children:`To do so, from the Coupons+ Dashboard:`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{children:[`Click on 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 (currently shows `,_jsx(_components.strong,{children:`Shoes`}),`). The config screen for this filter set (context) will open.`]}),_jsxs(Step,{children:[_jsxs(_components.p,{children:[`From the right sidebar, select `,_jsx(_components.strong,{children:`And Quantity`}),` `,_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`]}),`. This will add a Quantity filter to the current set.`]}),_jsxs(_components.p,{children:[`For this example, we will add the discount to `,_jsx(_components.em,{children:`2`}),` items, so set the amount to 2.`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-qty-screen.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=7ade6bcdaa74c652544f48b25173355c`,alt:`qty config screen for the discount tree`,\"data-og-width\":`2169`,width:`2169`,\"data-og-height\":`997`,height:`997`,\"data-path\":`images/discount-qty-screen.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-qty-screen.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=d253a33ea258ca8551ea726892963012 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-qty-screen.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=44dac849c03a9c24e8adc94fdfbb7431 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-qty-screen.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=eb4bef71853590e6f0b68101d76fe5b3 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-qty-screen.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=06b683605927d2f2bbfa47b515b560de 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-qty-screen.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=8b23b2eb01e0a0a96be16df7e02b38f5 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-qty-screen.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=dc8b57e60e46af0d102a7958edb63603 2500w`}),_jsx(Note,{children:_jsxs(_components.p,{children:[`If you need any other type of quantity restriction, like when buying x or more (bulk discount), you can click on `,_jsx(_components.strong,{children:`Fixed`}),` and select the option that you need (for example: `,_jsx(_components.strong,{children:`Minimum`}),`)`]})})]}),_jsxs(Step,{children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Apply Changes`}),`. Your tree should look like the following image:`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/categories-discount-qty-2-tree.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=ee55be4892e63c9f2e1d431663e39e58`,alt:`the tree showing the categories and qty filters with the discount offer`,\"data-og-width\":`1514`,width:`1514`,\"data-og-height\":`2102`,height:`2102`,\"data-path\":`images/categories-discount-qty-2-tree.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/categories-discount-qty-2-tree.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=6d318fc2581c4aed1cd7cb7d3afd6dd9 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/categories-discount-qty-2-tree.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=98bfbb98196d578550cd3ccad8064aed 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/categories-discount-qty-2-tree.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=90f0e9a38dd9fd3f21a2ecb745eecb8b 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/categories-discount-qty-2-tree.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=22f19eb37b5b23943f68b63a962e9cbb 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/categories-discount-qty-2-tree.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=e5f70aff1305be6b7f253f223d5ddb94 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/categories-discount-qty-2-tree.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=1c4c8b86f5770f3376ad6398fd122063 2500w`})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`filters-deciding-which-items-to-pick`,children:`Filters: deciding which items to pick`}),`\n`,_jsx(_components.p,{children:`Now that we are restricting by quantities, what happens when there are more items in the cart than the specified quantity? Let’s say the customer has 3 pairs of shoes in the cart. What happens now? Is the coupon rejected?`}),`\n`,_jsxs(_components.p,{children:[`Coupons+ will only take the specified quantities and ignore the rest. If the customer has 3 pairs of shoes in the cart, the filters will take 2. Now `,_jsx(_components.em,{children:`which`}),` 2 of the 3 items? The cheapest 2 will be taken since 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 prioritizes items with a lower price. This prioritization depends on the type of offer. For example, BOGO offers will take the most expensive items (and ignore them so the discount applies to extra items). `,_jsx(_components.a,{href:`/getting-started/creating-a-bogo-deal-woocommerce`,children:`You can read more about creating a BOGO offer here`}),`.`]}),`\n`,_jsx(_components.p,{children:`Try adding more pairs of shoes and see the discount apply only to the 2 cheapest.`}),`\n`,_jsx(Heading,{level:`2`,id:`adding-an-extra-offer`,children:`Adding an extra offer`}),`\n`,_jsxs(_components.p,{children:[`What if you also want to give the customer a free shipping discount alongside 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? Or perhaps a Buy X Get Y offer to apply a discount to `,_jsx(_components.em,{children:`other products`}),` (or maybe a gift) when buying 2 pairs of shoes? Coupons+ allows you to add more than one offer per `,_jsx(_components.em,{children:`group`}),` of filters.`]}),`\n`,_jsxs(_components.p,{children:[`For this tutorial, let’s add a `,_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`]})]}),` so that we also give the customer a free tee when buying 2 pairs of shoes!`]}),`\n`,_jsx(_components.p,{children:`To add another offer for this filter 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 `,_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`]})]}),`, add the product to discount and click `,_jsx(_components.strong,{children:`Done`}),`. Your offers tree should look something like the following image:`]}),_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-tree-with-bogo.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=92467c861d147640706e88ee53fef8ca`,alt:`tree showing the filters and two offers: discount and buy x get y`,\"data-og-width\":`1314`,width:`1314`,\"data-og-height\":`1172`,height:`1172`,\"data-path\":`images/discount-tree-with-bogo.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-tree-with-bogo.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=730a9cc24e1370a4de8947327963fafe 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-tree-with-bogo.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=e6eefbfe1e9f6d2cd8be7f7426567b0b 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-tree-with-bogo.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=4107422558369228a81e96acfe55e669 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-tree-with-bogo.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=8bfacdc0d8b9ad803484bfbf2b38b68b 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-tree-with-bogo.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=6d89136968a2aa2f01efd6b57af3e3c8 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/discount-tree-with-bogo.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=58d9afe17a0967304e112c5c038b1755 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:`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 will be applied when the customer has 2 pairs of Shoes in the cart, alongside the 10% discount to the shoes.`]}),_jsx(Note,{children:_jsxs(_components.p,{children:[`Each offer is configured and applied independently and each will be applied when the filters pass valid items. This means that 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 will be applied to the filtered items and the BOGO offer to the Tee.`]})}),_jsx(_components.p,{children:`If we go back to the store and add 2 pairs of shoes, the free tee will be added automatically to the cart!`}),_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-discount-and-bogo-applied.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=bb346bed6f662c3d161856b74a7d0e9d`,alt:`cart showing a discount applied to the shoes and a free tee`,\"data-og-width\":`2748`,width:`2748`,\"data-og-height\":`1084`,height:`1084`,\"data-path\":`images/cart-discount-and-bogo-applied.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-discount-and-bogo-applied.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=38ee4b02a26d3d2152d08805bf92effb 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-discount-and-bogo-applied.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=af81ecd7fd681c0f66e3639f5768f31a 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-discount-and-bogo-applied.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=8129bafd72ed830400045f6a4fa4ddc4 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-discount-and-bogo-applied.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=cb93a72af807f24cf61e89b23faba8b2 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-discount-and-bogo-applied.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=ab3d5dc0945f01412dffc602185fb5ba 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/cart-discount-and-bogo-applied.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=b053c067d24f3345402f3d415655210c 2500w`})]})]}),`\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":"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"}}},"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":"About product filters","slug":"about-product-filters","depth":3,"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":"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":"Restricting by quantities","slug":"restricting-by-quantities","depth":2,"children":[{"title":"Filters: deciding which items to pick","slug":"filters-deciding-which-items-to-pick","depth":3,"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":"Creating product discounts: Categories, Brands, Products, and more - Coupons+ for WooCommerce Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-24T17:21:25.737Z","originalFileLocation":"getting-started/creating-automatic-product-categories-brands-discounts.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 global item discounts that target anything 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=\"Creating product discounts: Categories, Brands, Products, and more - Coupons+ for WooCommerce Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Learn how to set up automatic global item discounts that target anything 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-automatic-product-categories-brands-discounts\">\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=Creating+product+discounts%3A+Categories%2C+Brands%2C+Products%2C+and+more\u0026amp;description=Learn+how+to+set+up+automatic+global+item+discounts+that+target+anything+in+WooCommerce+using+the+free+Coupons%2B+plugin.\u0026amp;theme=6957a92a3aabc9b611bed462\u0026amp;signature=1dd54067077499494b7a255bbde64325deca4f689946c70ea4a4b969aa9021e2\">\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=\"Creating product discounts: Categories, Brands, Products, and more - Coupons+ for WooCommerce Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Learn how to set up automatic global item discounts that target anything 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=Creating+product+discounts%3A+Categories%2C+Brands%2C+Products%2C+and+more\u0026amp;description=Learn+how+to+set+up+automatic+global+item+discounts+that+target+anything+in+WooCommerce+using+the+free+Coupons%2B+plugin.\u0026amp;theme=6957a92a3aabc9b611bed462\u0026amp;signature=1dd54067077499494b7a255bbde64325deca4f689946c70ea4a4b969aa9021e2\">\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-automatic-product-categories-brands-discounts\">\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-automatic-product-categories-brands-discounts.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-automatic-product-categories-brands-discounts#webpage\",\"url\":\"https://developer.couponsplus.app/getting-started/creating-automatic-product-categories-brands-discounts\",\"name\":\"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.\",\"dateModified\":\"2026-10-24T17:21:25.737Z\",\"isPartOf\":{\"@id\":\"https://developer.couponsplus.app#website\"},\"breadcrumb\":{\"@id\":\"https://developer.couponsplus.app/getting-started/creating-automatic-product-categories-brands-discounts#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developer.couponsplus.app/getting-started/creating-automatic-product-categories-brands-discounts#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting Started\",\"item\":\"https://developer.couponsplus.app/getting-started/welcome\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating product discounts: Categories, Brands, Products, and more\",\"item\":\"https://developer.couponsplus.app/getting-started/creating-automatic-product-categories-brands-discounts\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://developer.couponsplus.app/getting-started/creating-automatic-product-categories-brands-discounts#article\",\"headline\":\"Creating product discounts: Categories, Brands, Products, and more\",\"name\":\"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.\",\"url\":\"https://developer.couponsplus.app/getting-started/creating-automatic-product-categories-brands-discounts\",\"mainEntityOfPage\":{\"@id\":\"https://developer.couponsplus.app/getting-started/creating-automatic-product-categories-brands-discounts#webpage\"},\"dateModified\":\"2026-10-24T17:21:25.737Z\",\"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+","href":"/getting-started/welcome"},{"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"},{"title":"Creating product discounts: Categories, Brands, Products, and more","sidebarTitle":"Creating Product Discounts","href":"/getting-started/creating-automatic-product-categories-brands-discounts"}]},{"group":"Filters","pages":[{"title":"Filter Groups","description":null,"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":"Creating product discounts: Categories, Brands, Products, and more - Coupons+ for WooCommerce Docs","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-CaUwvYH3.js","lightbox-handle-r17bVUz3.js"]}