Hello Magento Friends,

In today’s blog, I will explain How to Set Product Custom Attribute Set as Default in Magento 2.

In Default Magento 2, the “Default” option is selected for the attribute set field when you create a new product. Checkout below image

If you want to change the default selection and set the “Custom attribute set” as the default selection in the Attribute Set field, you can use the below method. Before that learn

How to Create New Attribute Sets in Magento 2

Let’s get started,

Steps to Set Product Custom Attribute Set as Default in Magento 2:

Step 1: Create di.xml at the below path

app\code\Vendor\Extension\etc\adminhtml

And add the following code

Step 2: Create AttributeSet.php in the following path

Vendor\Extension\Ui\DataProvider\Product\Form\Modifier

And add the code as follows

Result:

after attribute set

 

Conclusion:

This way, you can set the product custom attribute set as default in Magento 2. If you are unable to set the custom attribute set as default, let me know through the comment section. Share the solution with your friends and stay in touch with us.

Happy Coding!

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