{"id":322,"date":"2017-12-18T16:38:07","date_gmt":"2017-12-18T16:38:07","guid":{"rendered":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts-new\/?p=322"},"modified":"2023-09-11T12:21:42","modified_gmt":"2023-09-11T12:21:42","slug":"rule-priority","status":"publish","type":"post","link":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/rule-priority\/","title":{"rendered":"Rule priority"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Price rules<\/h4>\n\n\n\n<p>For every price rule you set, you can define a priority level. 1 is the highest priority.<\/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\/Priority-1.jpg\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" width=\"1594\" height=\"478\" src=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Priority-1.jpg\" alt=\"Rule priority\" class=\"wp-image-2180\" srcset=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Priority-1.jpg 1594w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Priority-1-300x90.jpg 300w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Priority-1-1024x307.jpg 1024w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Priority-1-768x230.jpg 768w, https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Priority-1-1536x461.jpg 1536w\" sizes=\"auto, (max-width: 1594px) 100vw, 1594px\" \/><\/a><\/figure>\n\n\n\n<p>As rules are processed one after the other, giving them a priority order will let you choose which one will override the others if they apply to the same product.<\/p>\n\n\n\n<p>Please, consider that priority helps you manage rules that apply to the same product and refers to all rules of the same type.<\/p>\n\n\n\n<p class=\"has-docs-yellow-background-color has-background\"><strong>Note<\/strong>: there are two distinct priority lists for rules <strong>Price Rules<\/strong> and <strong>Cart Discounts<\/strong>. Even though they are listed in a unique list, they have a separate priority, because one applies to the cart, others at the product level.<\/p>\n\n\n\n<p class=\"has-dark-gray-color has-text-color\">First of all, the system processes <strong><em>Price Rules<\/em><\/strong>. It starts with\u00a0<em>Quantity Discount\u00a0<\/em>rules: if a quantity rule applies to a product, all other rules (either<em> Quantity discount<\/em> or <em>Special offer<\/em>) applying to the same product will be then ignored, even if the option <b>Disable other rules with lower priority<\/b> is enabled.<\/p>\n\n\n\n<p class=\"has-dark-gray-color has-text-color\">If there are, though, more than one quantity discount or special offer rules applying to different products, they will be all applied, as they do not apply to the same product and do not conflict with one another. This applies only if the\u00a0option\u00a0<strong>Disable other rules with lower priority<\/strong> is enabled.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Cart rules<\/h4>\n\n\n\n<p>After that, <em><strong>Cart discounts<\/strong><\/em> will be processed and will apply to the cart total. Cart discount rules can be combined and applied one after the other.<\/p>\n\n\n\n<p>Let&#8217;s make an example to make things easier.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><em>Quantity discount<\/em> rule, priority 2: Product A costs $10, but it costs $5 if the quantity is greater or equal to 10.<\/li>\n\n\n\n<li><em>Special offer<\/em> on Product A, priority 1: buy one and get one at 50%<\/li>\n\n\n\n<li><em>Special offer<\/em> on Product B, priority 1: buy one and get one at 50%<\/li>\n\n\n\n<li><em>Cart discount<\/em> rule, priority 1: 20% off everything<\/li>\n<\/ol>\n\n\n\n<p>Our cart contains<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Product A ($5 to $10): 12 items<\/li>\n\n\n\n<li>Product B ($18): 2 items<\/li>\n<\/ul>\n\n\n\n<p>Price rules (Quantity discount and Special offer) will be processed first, so, No. 1, 2, 3.<br>Rule No. 1 and 2 apply to the same product (Product A), so, only rule No. 1 is applied as it is a Quantity discount rule and is processed first, regardless of the priority.<br>Product A costs $5 each.<br>Rule No. 2 is so ignored.<br>Rule No. 3 is applied to Product B. So, one is at full price of $18, and the second one is at half price of $9.<br>Now the cart subtotal is (12 x $5) + $18 + $9 = $87<br>Rule No. 4 applies to the cart subtotal, so, the final price is $69.60.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Price rules For every price rule you set, you can define a priority level. 1 is the highest priority. As rules are processed one after the other, giving them a priority order will let you choose which one will override the others if they apply to the same product. Please, consider that priority helps you &hellip; <a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/rule-priority\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Rule priority<\/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":[6],"tags":[],"class_list":["post-322","post","type-post","status-publish","format-standard","hentry","category-plugin-settings"],"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: Rule priority<\/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\/rule-priority\/\" \/>\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: Rule priority\" \/>\n<meta property=\"og:description\" content=\"Price rules For every price rule you set, you can define a priority level. 1 is the highest priority. As rules are processed one after the other, giving them a priority order will let you choose which one will override the others if they apply to the same product. Please, consider that priority helps you &hellip; Continue reading Rule priority\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/rule-priority\/\" \/>\n<meta property=\"og:site_name\" content=\"YITH WooCommerce Dynamic Pricing &amp; Discounts\" \/>\n<meta property=\"article:published_time\" content=\"2017-12-18T16:38:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-11T12:21:42+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\/Priority-1.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=\"3 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\/rule-priority\/\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/rule-priority\/\",\"name\":\"YITH Dynamic Pricing and Discounts: Rule priority\",\"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\/rule-priority\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/rule-priority\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Priority-1.jpg\",\"datePublished\":\"2017-12-18T16:38:07+00:00\",\"dateModified\":\"2023-09-11T12:21:42+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\/rule-priority\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/rule-priority\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/rule-priority\/#primaryimage\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Priority-1.jpg\",\"contentUrl\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Priority-1.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/rule-priority\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Rule priority\"}]},{\"@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: Rule priority","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\/rule-priority\/","og_locale":"en_US","og_type":"article","og_title":"YITH Dynamic Pricing and Discounts: Rule priority","og_description":"Price rules For every price rule you set, you can define a priority level. 1 is the highest priority. As rules are processed one after the other, giving them a priority order will let you choose which one will override the others if they apply to the same product. Please, consider that priority helps you &hellip; Continue reading Rule priority","og_url":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/rule-priority\/","og_site_name":"YITH WooCommerce Dynamic Pricing &amp; Discounts","article_published_time":"2017-12-18T16:38:07+00:00","article_modified_time":"2023-09-11T12:21:42+00:00","og_image":[{"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Priority-1.jpg","type":"","width":"","height":""}],"author":"Alessio Torrisi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alessio Torrisi","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/rule-priority\/","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/rule-priority\/","name":"YITH Dynamic Pricing and Discounts: Rule priority","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\/rule-priority\/#primaryimage"},"image":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/rule-priority\/#primaryimage"},"thumbnailUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Priority-1.jpg","datePublished":"2017-12-18T16:38:07+00:00","dateModified":"2023-09-11T12:21:42+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\/rule-priority\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/rule-priority\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/rule-priority\/#primaryimage","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Priority-1.jpg","contentUrl":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-content\/uploads\/sites\/261\/2023\/09\/Priority-1.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/rule-priority\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/"},{"@type":"ListItem","position":2,"name":"Rule priority"}]},{"@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\/322","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=322"}],"version-history":[{"count":8,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-json\/wp\/v2\/posts\/322\/revisions"}],"predecessor-version":[{"id":2249,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-json\/wp\/v2\/posts\/322\/revisions\/2249"}],"wp:attachment":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-json\/wp\/v2\/media?parent=322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-json\/wp\/v2\/categories?post=322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-dynamic-pricing-and-discounts\/wp-json\/wp\/v2\/tags?post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}