Theme specific drupal commerce product form I want to create a .tpl file for each specific product type form. I get that I can create a custom product template and add this code on my theme's template.php:

'commerce_product_ui_product_form' =&gt; array(
               'arguments' =&gt; array(
                    'form' =&gt; NULL,
                    ),
               'template' =&gt; 'templates/products form/node--add--product', // set the path here if not in root theme directory
               'render element' =&gt; 'form',
            )


The problem is this changes all the product type's form. How can I find the Form ID for each specific product type form?
It's the same form ID for every type, but you can find context in the form state, e.g.

function MYMODULE_form_commerce_product_ui_product_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  $product = $form_state['commerce_product'];
  $product_type = commerce_product_type_load($product-&gt;type);

  if ($product_type-&gt;name == 'foo') {
    // ...
  }
}