Using product filters as conditions for your offers
When and when not to use product filters as conditions
Product filtering is one of the most fundamental concepts of Coupons+. Sometimes product filters can be misunderstood, especially when trying to use them as conditionals for your offers in some scenarios.The good news is that you don’t have to memorize these cases! You will be warned by Coupons+ if you try to set up a potentially wrong offer. This document explains why you cannot use your filters as conditions in very specific scenarios.
As we have mentioned before, product filters are that, filters. They are not cart conditions. They take the cart and apply your filters to it, and the result (if anything was successfully filtered) is passed to your offers.
Product filters have been designed to work as conditionals for these offers:
BOGOs: Same ProductsDifferent Products Your selected filters act as the “buy” part of a BOGO deal. They act as a condition because the customer needs to have the selected product types in the cart for your BOGO deal to apply. There is one exception where trying to use them as conditionals that may not work as you expect. Please read the following section bellow
Product/Item Discounts: Discount Your selected filters act both as the condition and as the target for the discounts. The discount will only apply to the products when the customer has them in the cart.
Bulk Discounts: Discount Very similar to the Product/Item Discounts. Your selected filters act both as the condition and as the target for the discounts. The discount will only apply when the customer has the minimum required amount of the selected filters in the cart.
Bundles: Bundle Price & Multi-buy The customer needs to buy the specified items in the specified quantities for the bundle discount to apply.
Cart Discounts: DiscountPartial Support. Now this is where it may get confusing. Your product filters work great as conditionals for a cart discount when you are targeting products that the customer must buy, for example: Buy 1 of Product A and get a $10 discount on the whole cart. Read bellow for the cases where using them as conditionals is not supported and may trigger your offers in cases you don’t want.
Shipping Discounts: Shipping DiscountPartial Support. This is the exact same case as with Cart Discounts. Your product filters work great as conditionals for a shipping discount when you are targeting products that the customer must buy, for example: Buy 1 of Product A and get free shipping. Read bellow for the cases where using them as conditionals is not supported and may trigger your offers in cases you don’t want.
Case 1: Trying to apply an offer like a Cart Discount, a Shipping Discount or a BOGO gift when the customer does NOT have specific products in their cart
Scenario: You want to apply a $10 discount to the cart when the customer does not have Product A in their cart. So you try to add the following filters:This will not work as you expect when the customer has other products in the cart, because the selected filter will try to filter any items that are not a T-shirt. If the customer adds a pair of shoes, the filter will select them since they are not t-shirts, and because the filter matched valid items, the discount will be applied to the cart.This applies to all filters that have an exclude mode, including:
Case 2: Trying to apply an offer like a Cart or a Shipping Discount when the customer only has a max. quantity in the cart
This is another common case for confusion. Let’s say you want to apply a $10 discount to the cart when the customer buys 1 of Product A and only 1. If the customer buys 2 or more, you do not want that discount to apply.This will not work as expected because the Quantity filter will select the specified amount from the cart. For example, let’s say the customer has 3 of Product A in their cart. Your selected filters will take 1 from Product A from the cart, and since we can take 1 from the 3 in the cart, the offer will be applied. This works great when you want to apply a discount when a quantity is in the cart, but not when you only want that quantity in the cart and nothing more.This applies to all types of quantity modes that have an upper limit:
{"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":"filters/product-filters-as-conditions","slug":"/filters/product-filters-as-conditions","pageMetadata":{"title":"Using product filters as conditions for your offers","description":"When and when not to use product filters as conditions","href":"/filters/product-filters-as-conditions"},"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: \"When and when not to use product filters as conditions\"\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={em:`em`,hr:`hr`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Icon,OptimizedImage}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Icon)_missingMdxReference(`Icon`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Product filtering is one of the most fundamental concepts of Coupons+. Sometimes product filters can be misunderstood, especially when trying to use them as conditionals for your offers in some scenarios.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`The good news is that you don’t have to memorize these cases! You will be warned by Coupons+ if you try to set up a potentially wrong offer.`}),` This document explains `,_jsx(_components.em,{children:`why`}),` you cannot use your filters as conditions in very specific scenarios.`]}),`\n`,_jsx(Heading,{level:`2`,id:`a-quick-refresh-on-product-filters`,children:`A quick refresh on product filters`}),`\n`,_jsx(_components.p,{children:`As we have mentioned before, product filters are that, filters. They are not cart conditions. They take the cart and apply your filters to it, and the result (if anything was successfully filtered) is passed to your offers.`}),`\n`,_jsx(Heading,{level:`2`,id:`when-to-use-product-filters-as-conditions`,children:`When to use product filters as conditions`}),`\n`,_jsx(_components.p,{children:`Product filters have been designed to work as conditionals for these offers:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`BOGOs`}),`: `,_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:`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`]}),` Your selected filters act as the “buy” part of a BOGO deal. They act as a condition because the customer needs to have the selected product types in the cart for your BOGO deal to apply. `,_jsx(_components.strong,{children:`There is one exception where trying to use them as conditionals that may not work as you expect. Please read the following section bellow`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Product/Item Discounts`}),`: `,_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`]}),` Your selected filters act both as the condition and as the target for the discounts. The discount will only apply to the products when the customer has them in the cart.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Bulk Discounts`}),`: `,_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`]}),` Very similar to the Product/Item Discounts. Your selected filters act both as the condition and as the target for the discounts. The discount will only apply when the customer has the minimum required amount of the selected filters in the cart.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Bundles`}),`: `,_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:`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`})}),`Bundle Price \u0026 Multi-buy`]}),` The customer needs to buy the specified items in the specified quantities for the bundle discount to apply.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Cart Discounts`}),`: `,_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.em,{children:_jsx(_components.strong,{children:`Partial Support`})}),`. Now this is where it may get confusing. Your product filters work great as conditionals for a cart discount when you are targeting products that the customer must buy, for example: Buy 1 of Product A and get a $10 discount on the whole cart. `,_jsx(_components.strong,{children:`Read bellow for the cases where using them as conditionals is not supported and may trigger your offers in cases you don’t want.`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Shipping Discounts`}),`: `,_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`]}),` `,_jsx(_components.em,{children:_jsx(_components.strong,{children:`Partial Support`})}),`. This is the exact same case as with Cart Discounts. Your product filters work great as conditionals for a shipping discount when you are targeting products that the customer must buy, for example: Buy 1 of Product A and get free shipping. `,_jsx(_components.strong,{children:`Read bellow for the cases where using them as conditionals is not supported and may trigger your offers in cases you don’t want.`})]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`when-not-to-use-product-filters-as-cart-conditions`,children:`When NOT to use product filters as cart conditions`}),`\n`,_jsx(_components.p,{children:`Here are the use cases that may trigger your offers when you don’t want to, when trying to use product filters as conditionals.`}),`\n`,_jsx(Heading,{level:`3`,id:`case-1-trying-to-apply-an-offer-like-a-cart-discount-a-shipping-discount-or-a-bogo-gift-when-the-customer-does-not-have-specific-products-in-their-cart`,children:`Case 1: Trying to apply an offer like a Cart Discount, a Shipping Discount\\xA0or a BOGO gift when the customer does NOT have specific products in their cart`}),`\n`,_jsx(_components.p,{children:`Scenario: You want to apply a $10 discount to the cart when the customer does not have Product A in their cart. So you try to add the following filters:`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/filters-conditions-case-1.png?fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=dd18120cca38b4c7856898106cde306d`,alt:`image shows tree with negating product filters and a cart discount`,\"data-og-width\":`1738`,width:`1738`,\"data-og-height\":`1910`,height:`1910`,\"data-path\":`images/filters-conditions-case-1.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/filters-conditions-case-1.png?w=280\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=91ea0968b3cf4a69e9a6c1e1152f78ca 280w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/filters-conditions-case-1.png?w=560\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=2a301ced9d4c56066f51e34761bfdbf6 560w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/filters-conditions-case-1.png?w=840\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=02f25860125bfb23879ea1039f647221 840w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/filters-conditions-case-1.png?w=1100\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=6baac265f7099daa5bf758a2ce8b2320 1100w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/filters-conditions-case-1.png?w=1650\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=d84cfd4f93f7bbdc3611d49cc5686710 1650w, https://mintcdn.com/neblabs/V_dQ8cS1i4mxIxfD/images/filters-conditions-case-1.png?w=2500\u0026fit=max\u0026auto=format\u0026n=V_dQ8cS1i4mxIxfD\u0026q=85\u0026s=e133660f0831d48767ddd2abdd2677b4 2500w`}),`\n`,_jsx(_components.p,{children:`This will not work as you expect when the customer has other products in the cart, because the selected filter will try to filter any items that are not a T-shirt. If the customer adds a pair of shoes, the filter will select them since they are not t-shirts, and because the filter matched valid items, the discount will be applied to the cart.`}),`\n`,_jsxs(_components.p,{children:[`This applies to all filters that have an `,_jsx(_components.em,{children:_jsx(_components.strong,{children:`exclude`})}),` mode, including:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{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:`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`]}),`: exclude`]}),`\n`,_jsxs(_components.li,{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`]}),`: exclude`]}),`\n`,_jsxs(_components.li,{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`]}),`: exclude`]}),`\n`,_jsxs(_components.li,{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:`M4.098 19.902a3.75 3.75 0 0 0 5.304 0l6.401-6.402M6.75 21A3.75 3.75 0 0 1 3 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 0 0 3.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88c.438-.439 1.15-.439 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88M6.75 17.25h.008v.008H6.75v-.008Z`})}),`Tags`]}),`: exclude`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_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:`m8.99 14.993 6-6m6 3.001c0 1.268-.63 2.39-1.593 3.069a3.746 3.746 0 0 1-1.043 3.296 3.745 3.745 0 0 1-3.296 1.043 3.745 3.745 0 0 1-3.068 1.593c-1.268 0-2.39-.63-3.068-1.593a3.745 3.745 0 0 1-3.296-1.043 3.746 3.746 0 0 1-1.043-3.297 3.746 3.746 0 0 1-1.593-3.068c0-1.268.63-2.39 1.593-3.068a3.746 3.746 0 0 1 1.043-3.297 3.745 3.745 0 0 1 3.296-1.042 3.745 3.745 0 0 1 3.068-1.594c1.268 0 2.39.63 3.068 1.593a3.745 3.745 0 0 1 3.296 1.043 3.746 3.746 0 0 1 1.043 3.297 3.746 3.746 0 0 1 1.593 3.068ZM9.74 9.743h.008v.007H9.74v-.007Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm4.125 4.5h.008v.008h-.008v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z`})}),`On Sale?`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`case-2-trying-to-apply-an-offer-like-a-cart-or-a-shipping-discount-when-the-customer-only-has-a-max-quantity-in-the-cart`,children:`Case 2: Trying to apply an offer like a Cart or a Shipping Discount when the customer only has a max. quantity in the cart`}),`\n`,_jsxs(_components.p,{children:[`This is another common case for confusion. Let’s say you want to apply a $10 discount to the cart when the customer buys 1 of Product A and only 1. `,_jsx(_components.strong,{children:`If the customer buys 2 or more, you do not want that discount to apply`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`This will not work as expected because 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 will select the specified amount from the cart. For example, let’s say the customer has 3 of Product A in their cart. Your selected filters will take 1 from Product A from the cart, and since we can take 1 from the 3 in the cart, the offer will be applied. This works great when you want to apply a discount when a quantity `,_jsx(_components.em,{children:`is`}),` in the cart, but not when you only want that quantity in the cart and nothing more.`]}),`\n`,_jsx(_components.p,{children:`This applies to all types of quantity modes that have an upper limit:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Fixed`}),`\n`,_jsx(_components.li,{children:`Maximum`}),`\n`,_jsx(_components.li,{children:`In Range`}),`\n`]}),`\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":"Using product filters as conditions for your offers","description":"When and when not to use product filters as conditions","href":"/filters/product-filters-as-conditions"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"A quick refresh on product filters","slug":"a-quick-refresh-on-product-filters","depth":2,"children":[]},{"title":"When to use product filters as conditions","slug":"when-to-use-product-filters-as-conditions","depth":2,"children":[]},{"title":"When NOT to use product filters as cart conditions","slug":"when-not-to-use-product-filters-as-cart-conditions","depth":2,"children":[{"title":"Case 1: Trying to apply an offer like a Cart Discount, a Shipping Discount or a BOGO gift when the customer does NOT have specific products in their cart","slug":"case-1-trying-to-apply-an-offer-like-a-cart-discount-a-shipping-discount-or-a-bogo-gift-when-the-customer-does-not-have-specific-products-in-their-cart","depth":3,"children":[]},{"title":"Case 2: Trying to apply an offer like a Cart or a Shipping Discount when the customer only has a max. quantity in the cart","slug":"case-2-trying-to-apply-an-offer-like-a-cart-or-a-shipping-discount-when-the-customer-only-has-a-max-quantity-in-the-cart","depth":3,"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-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-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":"Using product filters as conditions for your offers - Coupons+ for WooCommerce Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-24T17:21:25.739Z","originalFileLocation":"filters/product-filters-as-conditions.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=\"When and when not to use product filters as conditions\">\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=\"Using product filters as conditions for your offers - Coupons+ for WooCommerce Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"When and when not to use product filters as conditions\">\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/filters/product-filters-as-conditions\">\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=Filters\u0026amp;title=Using+product+filters+as+conditions+for+your+offers\u0026amp;description=When+and+when+not+to+use+product+filters+as+conditions\u0026amp;theme=6957a92a3aabc9b611bed462\u0026amp;signature=97148985762b4b6ad35711ec2024b1f043f577763e8ea0e248dc83943914b27b\">\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=\"Using product filters as conditions for your offers - Coupons+ for WooCommerce Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"When and when not to use product filters as conditions\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://neblabs.mintlify.app/_mintlify/api/og/v2?division=Filters\u0026amp;title=Using+product+filters+as+conditions+for+your+offers\u0026amp;description=When+and+when+not+to+use+product+filters+as+conditions\u0026amp;theme=6957a92a3aabc9b611bed462\u0026amp;signature=97148985762b4b6ad35711ec2024b1f043f577763e8ea0e248dc83943914b27b\">\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/filters/product-filters-as-conditions\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/filters/product-filters-as-conditions.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/filters/product-filters-as-conditions#webpage\",\"url\":\"https://developer.couponsplus.app/filters/product-filters-as-conditions\",\"name\":\"Using product filters as conditions for your offers\",\"description\":\"When and when not to use product filters as conditions\",\"dateModified\":\"2026-10-24T17:21:25.739Z\",\"isPartOf\":{\"@id\":\"https://developer.couponsplus.app#website\"},\"breadcrumb\":{\"@id\":\"https://developer.couponsplus.app/filters/product-filters-as-conditions#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developer.couponsplus.app/filters/product-filters-as-conditions#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Filters\",\"item\":\"https://developer.couponsplus.app/filters/product-filter-groups\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using product filters as conditions for your offers\",\"item\":\"https://developer.couponsplus.app/filters/product-filters-as-conditions\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://developer.couponsplus.app/filters/product-filters-as-conditions#article\",\"headline\":\"Using product filters as conditions for your offers\",\"name\":\"Using product filters as conditions for your offers\",\"description\":\"When and when not to use product filters as conditions\",\"url\":\"https://developer.couponsplus.app/filters/product-filters-as-conditions\",\"mainEntityOfPage\":{\"@id\":\"https://developer.couponsplus.app/filters/product-filters-as-conditions#webpage\"},\"dateModified\":\"2026-10-24T17:21:25.739Z\",\"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","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","description":"Learn to apply offers more than once per order","href":"/offers/applying-an-offer-repeatedly"}]}]},"title":"Using product filters as conditions for your offers - Coupons+ for WooCommerce Docs","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-CaUwvYH3.js","lightbox-handle-r17bVUz3.js"]}