I have created a custom attribute set "Fabric". So now there are 2 attribute set's exists Default, and Fabric. When i went to create a configurable, there is option to select attribute set either Default or Fabric.

I want to write a condition which allow only simple product with Fabric means while creating configurable product only 1 option needs be there which is Default and while creating simple product there needs to 2 attribute set in dropdown Fabric and Default.

How can we achieve it?

  • Found a solution. Created a plugin "/Plugin/Ui/DataProvider/Product/Form/Modifier/Abc.php " inside afterModifyMeta function if($currentProductType == 'configurable' && isset($result['product-details']['children']['attribute_set_id'])){ unset($result['product-details']['children']['attribute_set_id']); } – Preetesh Aug 22 '18 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.