سؤال

How to create an attribute set set of the set attribute inherited from default and add a simple attribute to it that will be in the 'Content' group of the product

Use UpgradeData because magento 2.2.2

enter image description here

I found such a method, but I do not see the inheritance from the Default Attribute set

How to create attribute set and attribute in Magento 2 programtically

هل كانت مفيدة؟

المحلول

Please find below screenshot the code is already there to create attribute set from default attribute set.

enter image description here

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى magento.stackexchange
scroll top