{"id":1252,"date":"2023-03-16T15:16:26","date_gmt":"2023-03-16T13:16:26","guid":{"rendered":"https:\/\/plumrocket.com\/learn\/?p=1252"},"modified":"2024-10-10T11:10:31","modified_gmt":"2024-10-10T08:10:31","slug":"how-to-add-product-attribute-to-rule-conditions-in-magento-2","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/learn\/magento-rule-conditions","title":{"rendered":"How to Add Product Attribute to Rule Conditions in Magento 2"},"content":{"rendered":"\n<p>One of the key benefits of Magento 2 is the ability to create complex rules and conditions for pricing and promotions based on the product attribute. This allows you to target only specific products or groups of products that have this specific attribute. Also, conditions are widely used in other marketing techniques, such as hiding product prices. <\/p>\n\n\n\n<p>In this tutorial, we will help you solve the problem of the product attribute not showing in the rule conditions drop-down. Note that this guide on adding a product attribute to Magento 2 Rules Conditions can be applied to all Magento Rules, as well as any custom rules, such as <a href=\"\/magento-call-for-price\" target=\"_blank\" rel=\"noreferrer noopener\">Call for Price<\/a> Rules, <a href=\"\/magento-product-labels\" target=\"_blank\" rel=\"noreferrer noopener\">Product Labels<\/a> rules, and others offered by Plumrocket&#8217;s Magento 2 extensions. <\/p>\n\n\n\n<h2 id=\"h-steps-to-add-product-attribute-to-magento-2-conditions\">Steps to Add Product Attribute to Rule Conditions<\/h2>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-step guide:<\/p>\n\n\n\n<ol><li>Go to&nbsp;<strong>Stores &gt; Attributes &gt; Product<\/strong> &gt; Select the Product Attribute you want to add to the Conditions.<\/li><li>Go to&nbsp;<strong>Storefront Properties<\/strong>&nbsp;from the left panel<\/li><li>Locate <strong>Use for Promo Rule Conditions<\/strong> and set it to <em>Yes<\/em>.<\/li><li>Click&nbsp;<strong>Save Attribute<\/strong>.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1206\" height=\"752\" src=\"https:\/\/plumrocket.com\/learn\/wp-content\/uploads\/2023\/03\/addind-product-attribute-to-magento-2-conditions-1.png\" alt=\"Steps to Add Product Attribute to Rule Conditions\" class=\"wp-image-1253\" srcset=\"https:\/\/plumrocket.com\/learn\/wp-content\/uploads\/2023\/03\/addind-product-attribute-to-magento-2-conditions-1.png 1206w, https:\/\/plumrocket.com\/learn\/wp-content\/uploads\/2023\/03\/addind-product-attribute-to-magento-2-conditions-1-300x187.png 300w, https:\/\/plumrocket.com\/learn\/wp-content\/uploads\/2023\/03\/addind-product-attribute-to-magento-2-conditions-1-1024x639.png 1024w, https:\/\/plumrocket.com\/learn\/wp-content\/uploads\/2023\/03\/addind-product-attribute-to-magento-2-conditions-1-768x479.png 768w\" sizes=\"(max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<h2>Setting Up Rule Conditions<\/h2>\n\n\n\n<p>After performing the steps above to enable an attribute for <strong>Use for Promo Rule Conditions<\/strong>, you can proceed to create your Magento 2 Rule Conditions based on this attribute.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-info\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Step-by-step guide:<\/p>\n\n\n\n<ol><li>Navigate to&nbsp;<strong>Marketing &gt; Promotions &gt; Catalog Price Rules<\/strong> (or other rules you need), and select the specific rule from the grid. <\/li><li>Expand the&nbsp;<strong>Conditions<\/strong>&nbsp;tab. <\/li><li>Now, add the condition using the attribute.<\/li><li>Click <strong>Save<\/strong>.<\/li><\/ol>\n<\/div><\/div>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1206\" height=\"700\" src=\"https:\/\/plumrocket.com\/learn\/wp-content\/uploads\/2023\/03\/addind-product-attribute-to-magento-2-conditions-2-1.png\" alt=\"Setting Up Rule Conditions in Magento 2\" class=\"wp-image-1259\" srcset=\"https:\/\/plumrocket.com\/learn\/wp-content\/uploads\/2023\/03\/addind-product-attribute-to-magento-2-conditions-2-1.png 1206w, https:\/\/plumrocket.com\/learn\/wp-content\/uploads\/2023\/03\/addind-product-attribute-to-magento-2-conditions-2-1-300x174.png 300w, https:\/\/plumrocket.com\/learn\/wp-content\/uploads\/2023\/03\/addind-product-attribute-to-magento-2-conditions-2-1-1024x594.png 1024w, https:\/\/plumrocket.com\/learn\/wp-content\/uploads\/2023\/03\/addind-product-attribute-to-magento-2-conditions-2-1-768x446.png 768w\" sizes=\"(max-width: 1206px) 100vw, 1206px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Congratulations, now you can successfully add a product attribute to Rule Conditions in Magento 2! This will allow you to create more advanced rules and conditions for your store, giving you greater control over the pricing and promotions of specific products.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the key benefits of Magento 2 is the ability to create complex rules and conditions for pricing and promotions based on the product attribute. This allows you to target only specific products or groups of products that have this specific attribute. Also, conditions are widely used in other marketing techniques, such as hiding &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/learn\/magento-rule-conditions\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Add Product Attribute to Rule Conditions in Magento 2&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[122],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Add Product Attribute to Rule Conditions in Magento 2 - Magento Tutorials for Beginners &amp; Professionals<\/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:\/\/plumrocket.com\/learn\/magento-rule-conditions\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add Product Attribute to Rule Conditions in Magento 2 - Magento Tutorials for Beginners &amp; Professionals\" \/>\n<meta property=\"og:description\" content=\"One of the key benefits of Magento 2 is the ability to create complex rules and conditions for pricing and promotions based on the product attribute. This allows you to target only specific products or groups of products that have this specific attribute. Also, conditions are widely used in other marketing techniques, such as hiding &hellip; Continue reading &quot;How to Add Product Attribute to Rule Conditions in Magento 2&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/learn\/magento-rule-conditions\" \/>\n<meta property=\"og:site_name\" content=\"Magento Tutorials for Beginners &amp; Professionals\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-16T13:16:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-10T08:10:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/plumrocket.com\/learn\/wp-content\/uploads\/2023\/03\/addind-product-attribute-to-magento-2-conditions-1.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/plumrocket.com\/learn\/wp-json\/wp\/v2\/posts\/1252"}],"collection":[{"href":"https:\/\/plumrocket.com\/learn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/learn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/learn\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/learn\/wp-json\/wp\/v2\/comments?post=1252"}],"version-history":[{"count":9,"href":"https:\/\/plumrocket.com\/learn\/wp-json\/wp\/v2\/posts\/1252\/revisions"}],"predecessor-version":[{"id":1949,"href":"https:\/\/plumrocket.com\/learn\/wp-json\/wp\/v2\/posts\/1252\/revisions\/1949"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/learn\/wp-json\/wp\/v2\/media?parent=1252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/learn\/wp-json\/wp\/v2\/categories?post=1252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/learn\/wp-json\/wp\/v2\/tags?post=1252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}