I need to remove the stock status for particular product type in admin product form.

enter image description here


  • Sorry, donot understand what you means by remove the stock status – Amit Bera Dec 19 '18 at 4:24
  • I need to remove the stock status attribute for some product type in product form – Mano M Dec 19 '18 at 4:26
  • From admin or frontend? – Amit Bera Dec 19 '18 at 4:26
  • Admin end ..... – Mano M Dec 19 '18 at 4:27
  • Just remove quantity_and_stock_status attribute from attribute set, or you can new Attribute Set and remove it. which prodct type you much assign to the attribute set have no quantity_and_stock_status attribute. – HoangHieu Dec 19 '18 at 4:38

You don't need to remove This attribute from Products.Just goto Advance Inventory Section and make Manage Stock ToNo`.

enter image description here

  • It removed the stock status for all product types ... But i need to remove it only for custom product type. – Mano M Dec 19 '18 at 4:34
  • You can do for the specific products also just make checkbox = trick and select 'No` – Amit Bera Dec 19 '18 at 4:39
  • If i select no the stock status attribute remove for all product types.. How to do this for specific product – Mano M Dec 19 '18 at 4:42
  • If you make manage stock to No then Stock Status attribute will be remove from that product\ – Amit Bera Dec 19 '18 at 4:52
  • Yes.. i have created custom product type like Simple product type and i need to remove this attribute for all products under custom product type – Mano M Dec 19 '18 at 5:01

For remove the stock status attribute for specific product type

 $meta['product-details']['children']['container_quantity_and_stock_status']['children']['quantity_and_stock_status']['arguments']['data']['config'] = [
            'componentType' => 'container',
            'label' => __('Stock Status'),
            'visible' => false,

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.