1

Is there a way to disable all the product types in the "add product" -> "product type"-dropdown, so that the shop owner only can add simple products?

thx in forward

1 Answer 1

0

You can rewrite the block Mage_Adminhtml_Block_Catalog_Product_Edit_Tab_Settings and replace the product type dropdown with a hidden input.
Remove this:

 $fieldset->addField('product_type', 'select', array(
    'label' => Mage::helper('catalog')->__('Product Type'),
    'title' => Mage::helper('catalog')->__('Product Type'),
    'name'  => 'type',
    'value' => '',
    'values'=> Mage::getModel('catalog/product_type')->getOptionArray()
 ));

and add this:

$fieldset->addField('product_type', 'hidden', array(
    'name'  => 'type',
    'value' => 'simple',
));

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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