{"id":100,"date":"2017-02-15T11:26:16","date_gmt":"2017-02-15T11:26:16","guid":{"rendered":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts-new\/?p=100"},"modified":"2023-09-07T07:47:24","modified_gmt":"2023-09-07T07:47:24","slug":"set-discount-rules-cart-discount","status":"publish","type":"post","link":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/","title":{"rendered":"Discount conditions"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Discount-conditions.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1294\" height=\"354\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Discount-conditions.jpg\" alt=\"Discount conditions\" class=\"wp-image-2064\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Discount-conditions.jpg 1294w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Discount-conditions-300x82.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Discount-conditions-1024x280.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Discount-conditions-768x210.jpg 768w\" sizes=\"auto, (max-width: 1294px) 100vw, 1294px\" \/><\/a><\/figure>\n\n\n\n<p>You can set up the conditions for the cart rule by clicking on the <strong>Add condition <\/strong>button after selecting <strong><em>Only when specific conditions are met<\/em><\/strong> in the rule.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Add-conditions.jpg\" data-rel=\"lightbox-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"788\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Add-conditions.jpg\" alt=\"Add conditions\" class=\"wp-image-2065\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Add-conditions.jpg 1042w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Add-conditions-300x227.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Add-conditions-1024x774.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Add-conditions-768x581.jpg 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Condition name: <\/strong>enter the name of the cart condition.<\/li>\n\n\n\n<li><strong>Create a condition based on:<\/strong> select the condition type among those available:\n<ul class=\"wp-block-list\">\n<li><a href=\"#users\">Users<\/a><\/li>\n\n\n\n<li><a href=\"#number-of-orders\">Number of orders<\/a><\/li>\n\n\n\n<li><a href=\"#total-spent\">Total amount spent<\/a><\/li>\n\n\n\n<li><a href=\"#products\">Products<\/a><\/li>\n\n\n\n<li><a href=\"#cart-items\">Cart items<\/a><\/li>\n\n\n\n<li><a href=\"#cart-subtotal\">Cart subtotal<\/a><\/li>\n\n\n\n<li><a href=\"#payment-method\">Payment method<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"users\">Users<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Condition-by-user.jpg\" data-rel=\"lightbox-image-2\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1044\" height=\"962\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Condition-by-user.jpg\" alt=\"Condition by users\" class=\"wp-image-2066\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Condition-by-user.jpg 1044w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Condition-by-user-300x276.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Condition-by-user-1024x944.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Condition-by-user-768x708.jpg 768w\" sizes=\"auto, (max-width: 1044px) 100vw, 1044px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Apply discount to: <\/strong>choose whether to apply the rule to&nbsp;all users&nbsp;or&nbsp;specific users&nbsp;or&nbsp;user roles. If <strong>Specific users or user roles<\/strong> has been selected, you can add them in the fields:\n<ul class=\"wp-block-list\">\n<li><strong>Apply discount to these users<\/strong><\/li>\n\n\n\n<li><strong>Apply discount to these user roles<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>On the contrary, if you have selected <em>All users<\/em>, you can optionally exclude them through the options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Users excluded<\/strong><\/li>\n\n\n\n<li><strong>User roles excluded<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Exclude-users-from-condition.jpg\" data-rel=\"lightbox-image-3\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1008\" height=\"700\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Exclude-users-from-condition.jpg\" alt=\"Exclude users from cart condition\" class=\"wp-image-2068\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Exclude-users-from-condition.jpg 1008w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Exclude-users-from-condition-300x208.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Exclude-users-from-condition-768x533.jpg 768w\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" \/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"number-of-orders\">Number of orders<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Number-of-orders.jpg\" data-rel=\"lightbox-image-4\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"656\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Number-of-orders.jpg\" alt=\"Number of orders\" class=\"wp-image-2069\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Number-of-orders.jpg 1042w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Number-of-orders-300x189.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Number-of-orders-1024x645.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Number-of-orders-768x484.jpg 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/a><\/figure>\n\n\n\n<p>Here you can set up a minimum or maximum number of orders.<\/p>\n\n\n\n<p>For example, if you want to offer the discount only to returning customers, you can set up a minimum number of orders of 1 and leave the maximum empty, so it applies to any returning customer.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"total-spent\">Total amount spent<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Total-amount-spent.jpg\" data-rel=\"lightbox-image-5\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1042\" height=\"652\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Total-amount-spent.jpg\" alt=\"Cart rule based on total amount spent\" class=\"wp-image-2070\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Total-amount-spent.jpg 1042w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Total-amount-spent-300x188.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Total-amount-spent-1024x641.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Total-amount-spent-768x481.jpg 768w\" sizes=\"auto, (max-width: 1042px) 100vw, 1042px\" \/><\/a><\/figure>\n\n\n\n<p>Here you can set up a minimum and maximum amount spent so far by the customer. Please, consider the condition will calculate the total amount spent so far by the customer, regardless of the number of orders placed.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"products\">Products<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Products-condition.jpg\" data-rel=\"lightbox-image-6\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1036\" height=\"1424\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Products-condition.jpg\" alt=\"Cart rule condition based on products\" class=\"wp-image-2071\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Products-condition.jpg 1036w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Products-condition-218x300.jpg 218w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Products-condition-745x1024.jpg 745w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Products-condition-768x1056.jpg 768w\" sizes=\"auto, (max-width: 1036px) 100vw, 1036px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Condition type<\/strong>: you will be able to use one of the following options:<\/li>\n<\/ul>\n\n\n\n<p><strong>1. Require specific products in cart to apply the discount<\/strong><\/p>\n\n\n\n<p>The discount will be applied only if the user has added the selected product(s) to the cart.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Apply the discount if<\/strong>: choose to apply the discount when at least one of the specified products is in the cart or only when all products are in the cart\n<ul class=\"wp-block-list\">\n<li><strong>At least one selected product is in the cart<\/strong><\/li>\n\n\n\n<li><strong>All selected products are in the cart<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>You will be able to set specific <strong>products, categories <\/strong>or<strong> tags<\/strong>.<\/p>\n\n\n\n<p><strong>2. Exclude specific products from cart condition validation<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Exclude-specific-products.jpg\" data-rel=\"lightbox-image-7\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1038\" height=\"1414\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Exclude-specific-products.jpg\" alt=\"Exclude products from the rule validation\" class=\"wp-image-2073\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Exclude-specific-products.jpg 1038w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Exclude-specific-products-220x300.jpg 220w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Exclude-specific-products-752x1024.jpg 752w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Exclude-specific-products-768x1046.jpg 768w\" sizes=\"auto, (max-width: 1038px) 100vw, 1038px\" \/><\/a><\/figure>\n\n\n\n<p>Excluded products will not be considered for achieving the conditions.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Exclude &#8216;on-sale products&#8217;<\/strong>: enable to make sure that on-sale products will not count for the rule validation.<\/li>\n<\/ul>\n\n\n\n<p class=\"has-docs-yellow-background-color has-background\">Please, remember that you can combine more than one condition for the same rule. So, for example, you can create a condition that requires a minimum of 3 products in cart, but exclude accessories and on-sale products from this count: if the cart contains 5 products, but one of them is an accessory and the other one is on sale, the rule will NOT apply.<\/p>\n\n\n\n<p>You will also be able to exclude specific <strong>products, categories <\/strong>or<strong> tags<\/strong>.<\/p>\n\n\n\n<p><strong>3. Disable discount when there is a specific product in cart<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Disable-discount.jpg\" data-rel=\"lightbox-image-8\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1038\" height=\"1428\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Disable-discount.jpg\" alt=\"Disable cart discount \" class=\"wp-image-2074\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Disable-discount.jpg 1038w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Disable-discount-218x300.jpg 218w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Disable-discount-744x1024.jpg 744w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Disable-discount-768x1057.jpg 768w\" sizes=\"auto, (max-width: 1038px) 100vw, 1038px\" \/><\/a><\/figure>\n\n\n\n<p>The discount will be not applied if the user has added specific product(s) to the cart.<\/p>\n\n\n\n<p>You will also be able to set specific <strong>products, categories <\/strong>or<strong> tags<\/strong>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"cart-items\">Cart items<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Cart-items.jpg\" data-rel=\"lightbox-image-9\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1040\" height=\"820\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Cart-items.jpg\" alt=\"Cart condition based on cart items\" class=\"wp-image-2075\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Cart-items.jpg 1040w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Cart-items-300x237.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Cart-items-1024x807.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Cart-items-768x606.jpg 768w\" sizes=\"auto, (max-width: 1040px) 100vw, 1040px\" \/><\/a><\/figure>\n\n\n\n<p><em>Cart items<\/em> allows you to apply the rule based on the number of products in the cart.<\/p>\n\n\n\n<p>You have two options to <strong>check the item quantity<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Product items<\/strong> &#8211; units of the same product in the cart. Please, note that this condition must be met for<em> every product<\/em> in the cart.<\/li>\n\n\n\n<li><strong>Cart items<\/strong> &#8211; total of products in the cart<\/li>\n<\/ul>\n\n\n\n<p>And then you can set a&nbsp;<strong>minimum<\/strong> and&nbsp;<strong>maximum quantity<\/strong> for the rule to apply.<\/p>\n\n\n\n<p>For example, we have set a rule that applies only if the customer adds a minimum of <strong>3 items for each of the products in cart<\/strong>, but it will not apply if there is even 1 product with a lower quantity.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts-new\/wp-content\/uploads\/sites\/261\/2017\/02\/Product-unit.jpg\" data-rel=\"lightbox-image-10\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1356\" height=\"969\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts-new\/wp-content\/uploads\/sites\/261\/2017\/02\/Product-unit.jpg\" alt=\"Product unit - discount applied\" class=\"wp-image-1045\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2017\/02\/Product-unit.jpg 1356w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2017\/02\/Product-unit-300x214.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2017\/02\/Product-unit-1024x732.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2017\/02\/Product-unit-768x549.jpg 768w\" sizes=\"auto, (max-width: 1356px) 100vw, 1356px\" \/><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"cart-subtotal\">Cart subtotal<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Subtotal.jpg\" data-rel=\"lightbox-image-11\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1038\" height=\"652\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Subtotal.jpg\" alt=\"Cart subtotal\" class=\"wp-image-2076\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Subtotal.jpg 1038w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Subtotal-300x188.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Subtotal-1024x643.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Subtotal-768x482.jpg 768w\" sizes=\"auto, (max-width: 1038px) 100vw, 1038px\" \/><\/a><\/figure>\n\n\n\n<p>With this condition, you can make sure that the rule only applies if the subtotal falls within the price range you set up. You can set a <strong>minimum<\/strong> or <strong>maximum<\/strong> value or both.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"payment-method\">Payment method<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1044\" height=\"1014\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Payment-method.jpg\" alt=\"Cart condition based on payment method\" class=\"wp-image-2077\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Payment-method.jpg 1044w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Payment-method-300x291.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Payment-method-1024x995.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Payment-method-768x746.jpg 768w\" sizes=\"auto, (max-width: 1044px) 100vw, 1044px\" \/><\/figure>\n\n\n\n<p>Through this condition, you can set the payment methods required to validate the cart condition and\/or the payment methods to exclude the rule from being applied.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can set up the conditions for the cart rule by clicking on the Add condition button after selecting Only when specific conditions are met in the rule. Users On the contrary, if you have selected All users, you can optionally exclude them through the options: Number of orders Here you can set up a &hellip; <a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Discount conditions<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-100","post","type-post","status-publish","format-standard","hentry","category-dynamic-rules"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>YITH Dynamic Pricing and Discounts: Discount conditions<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YITH Dynamic Pricing and Discounts: Discount conditions\" \/>\n<meta property=\"og:description\" content=\"You can set up the conditions for the cart rule by clicking on the Add condition button after selecting Only when specific conditions are met in the rule. Users On the contrary, if you have selected All users, you can optionally exclude them through the options: Number of orders Here you can set up a &hellip; Continue reading Discount conditions\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/\" \/>\n<meta property=\"og:site_name\" content=\"YITH WooCommerce Dynamic Pricing &amp; Discounts\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-15T11:26:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-07T07:47:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Discount-conditions.jpg\" \/>\n<meta name=\"author\" content=\"Alessio Torrisi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alessio Torrisi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/\",\"name\":\"YITH Dynamic Pricing and Discounts: Discount conditions\",\"isPartOf\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Discount-conditions.jpg\",\"datePublished\":\"2017-02-15T11:26:16+00:00\",\"dateModified\":\"2023-09-07T07:47:24+00:00\",\"author\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\"},\"breadcrumb\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/#primaryimage\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Discount-conditions.jpg\",\"contentUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Discount-conditions.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Discount conditions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/#website\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/\",\"name\":\"YITH WooCommerce Dynamic Pricing &amp; Discounts\",\"description\":\"Plugin documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\",\"name\":\"Alessio Torrisi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"caption\":\"Alessio Torrisi\"},\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/author\/alessio\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YITH Dynamic Pricing and Discounts: Discount conditions","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/","og_locale":"en_US","og_type":"article","og_title":"YITH Dynamic Pricing and Discounts: Discount conditions","og_description":"You can set up the conditions for the cart rule by clicking on the Add condition button after selecting Only when specific conditions are met in the rule. Users On the contrary, if you have selected All users, you can optionally exclude them through the options: Number of orders Here you can set up a &hellip; Continue reading Discount conditions","og_url":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/","og_site_name":"YITH WooCommerce Dynamic Pricing &amp; Discounts","article_published_time":"2017-02-15T11:26:16+00:00","article_modified_time":"2023-09-07T07:47:24+00:00","og_image":[{"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Discount-conditions.jpg","type":"","width":"","height":""}],"author":"Alessio Torrisi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alessio Torrisi","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/","name":"YITH Dynamic Pricing and Discounts: Discount conditions","isPartOf":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/#website"},"primaryImageOfPage":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/#primaryimage"},"image":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/#primaryimage"},"thumbnailUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Discount-conditions.jpg","datePublished":"2017-02-15T11:26:16+00:00","dateModified":"2023-09-07T07:47:24+00:00","author":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5"},"breadcrumb":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/#primaryimage","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Discount-conditions.jpg","contentUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Discount-conditions.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/set-discount-rules-cart-discount\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/"},{"@type":"ListItem","position":2,"name":"Discount conditions"}]},{"@type":"WebSite","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/#website","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/","name":"YITH WooCommerce Dynamic Pricing &amp; Discounts","description":"Plugin documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5","name":"Alessio Torrisi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","caption":"Alessio Torrisi"},"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/author\/alessio\/"}]}},"_links":{"self":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-json\/wp\/v2\/posts\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-json\/wp\/v2\/comments?post=100"}],"version-history":[{"count":12,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-json\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":2221,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-json\/wp\/v2\/posts\/100\/revisions\/2221"}],"wp:attachment":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-json\/wp\/v2\/media?parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-json\/wp\/v2\/categories?post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-json\/wp\/v2\/tags?post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}