Magento Tutorials

How to Add Product Attribute to Sales Rules Conditions in Magento 2

Hello Magento Friends,

In this tutorial, I will be justifying How to Add Product Attribute to Sales Rules Conditions in Magento 2. Just in case, you failed to check out the previous blog, How to Add Orders and Returns Widget in Magento 2.

Introduction:

Product attributes in Magento 2 are used to describe a product, its appearance, and behavior. Sales rules conditions are used to set discounts on particular products. But if the Magento store owners want to offer discounts on a product and that also for a specific product attribute. To do this, you need to set sales rules conditions for product attributes.

Let’s learn the steps for How to Add Product Attribute to Sales Rules Conditions in Magento 2.

Steps to Add Product Attribute to Sales Rules Conditions in Magento 2:

Step 1: Log in to Admin Panel and go to Stores > Attributes > Product

Step 2: Select your desired Product Attribute. Then, go to Storefront Properties from the left panel and set Yes to Use for Promo Rule Conditions. Lastly, Save Attribute.

Step 3: Now, navigate to Marketing > Promotions > Cart Price Rules

Step 4: Select your desired Cart Price Rules. Expand the Conditions option. Now, add the condition as per the requirement and click Save.

Conclusion:

Hence, with the help of the above steps, you can Add Product Attributes to Sales Rules Conditions in Magento 2. If you face any challenges with the execution of the above code, notify me in the comment part below. Share the tutorial with your Magento fellow colleagues. Will be back with another solution, till then stay in touch. 

Happy Reading!

Click to rate this post!
[Total: 3 Average: 5]
Gaurav Jain

Gaurav Jain is Co-Founder and Adobe Certified Expert-Magento Commerce Business Practitioner. Being Computer Engineer?‍? and possessing Extensive Marketing skills he handles all kinds of customer Queries and his Happy? & Helping? Nature makes customer's day Delightful. When he isn’t working, you’ll find Gaurav Reading on Books? or Traveling?. Also, he is Speaker at Magento Meetups.

Recent Posts

How to Add Tooltip in Checkout Shipping Field in Magento 2?

Hello Magento Friends, In today’s blog, I will explain How to Add Tooltip in Checkout…

3 days ago

How to Integrate and Use MongoDB with Laravel?

MongoDB is a popular NoSQL database that offers flexibility and scalability when handling modern web…

4 days ago

NodeJS | Callback Function

In NodeJS, callbacks empower developers to execute asynchronous operations like reading files, handling requests, and…

5 days ago

How to Show SKU in Order Summary in Magento 2?

Hello Magento Friends, In today’s blog, we will learn How to Show SKU in Order…

7 days ago

Best Colors to Use for CTA Buttons

The "Buy Now" and "Add to Cart" buttons serve as the primary call-to-action (CTA) elements…

1 week ago

Magento 2: How to Save Custom Field Value to quote_address for Multi-Shipping Orders

Hello Magento Friends, In Magento 2, the checkout process allows customers to choose multiple shipping…

1 week ago