{"version":"1.0","provider_name":"Magento Tutorials for Beginners &amp; Professionals","provider_url":"https:\/\/plumrocket.com\/learn","author_name":"Anastasiia Yaremchuk","author_url":"https:\/\/plumrocket.com\/learn\/author\/anastasiia-tomashivska","title":"How to Add Product Attribute to Rule Conditions in Magento 2 - Magento Tutorials for Beginners &amp; Professionals","type":"rich","width":600,"height":338,"html":"<blockquote class=\"wp-embedded-content\"><a href=\"https:\/\/plumrocket.com\/learn\/magento-rule-conditions\">How to Add Product Attribute to Rule Conditions in Magento 2<\/a><\/blockquote>\n<script type='text\/javascript'>\n<!--\/\/--><![CDATA[\/\/><!--\n\t\t\/*! This file is auto-generated *\/\n\t\t!function(c,d){\"use strict\";var e=!1,n=!1;if(d.querySelector)if(c.addEventListener)e=!0;if(c.wp=c.wp||{},!c.wp.receiveEmbedMessage)if(c.wp.receiveEmbedMessage=function(e){var t=e.data;if(t)if(t.secret||t.message||t.value)if(!\/[^a-zA-Z0-9]\/.test(t.secret)){for(var r,a,i,s=d.querySelectorAll('iframe[data-secret=\"'+t.secret+'\"]'),n=d.querySelectorAll('blockquote[data-secret=\"'+t.secret+'\"]'),o=0;o<n.length;o++)n[o].style.display=\"none\";for(o=0;o<s.length;o++)if(r=s[o],e.source===r.contentWindow){if(r.removeAttribute(\"style\"),\"height\"===t.message){if(1e3<(i=parseInt(t.value,10)))i=1e3;else if(~~i<200)i=200;r.height=i}if(\"link\"===t.message)if(a=d.createElement(\"a\"),i=d.createElement(\"a\"),a.href=r.getAttribute(\"src\"),i.href=t.value,i.host===a.host)if(d.activeElement===r)c.top.location.href=t.value}}},e)c.addEventListener(\"message\",c.wp.receiveEmbedMessage,!1),d.addEventListener(\"DOMContentLoaded\",t,!1),c.addEventListener(\"load\",t,!1);function t(){if(!n){n=!0;for(var e,t,r=-1!==navigator.appVersion.indexOf(\"MSIE 10\"),a=!!navigator.userAgent.match(\/Trident.*rv:11\\.\/),i=d.querySelectorAll(\"iframe.wp-embedded-content\"),s=0;s<i.length;s++){if(!(e=i[s]).getAttribute(\"data-secret\"))t=Math.random().toString(36).substr(2,10),e.src+=\"#?secret=\"+t,e.setAttribute(\"data-secret\",t);if(r||a)(t=e.cloneNode(!0)).removeAttribute(\"security\"),e.parentNode.replaceChild(t,e)}}}}(window,document);\n\/\/--><!]]>\n<\/script><iframe sandbox=\"allow-scripts\" security=\"restricted\" src=\"https:\/\/plumrocket.com\/learn\/magento-rule-conditions\/embed\" width=\"600\" height=\"338\" title=\"&#8220;How to Add Product Attribute to Rule Conditions in Magento 2&#8221; &#8212; Magento Tutorials for Beginners &amp; Professionals\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"wp-embedded-content\"><\/iframe>","description":"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 \"\"","thumbnail_url":"https:\/\/plumrocket.com\/learn\/wp-content\/uploads\/2023\/03\/addind-product-attribute-to-magento-2-conditions-1.png"}