I'm getting the following error after creating a new product type:

Notice: Undefined index: commerce_pdm_product_display_type in commerce_pdm_form_commerce_product_ui_product_type_form_submit() (line 240 of /var/aegir/platforms/{platform}/sites/all/modules/commerce_product_display_manager/commerce_pdm.module).

Note that I uninstalled the stable version prior to installing after (after upgrading the 1.x-dev on commerce which doesn't seem to be compatible with commmerce_pdm stable).

Thanks!

DW

Comments

dpearcefl’s picture

Just installed the latest dev version and I'm getting the same error message.

dpearcefl’s picture

Question - Should this be changed from:

variable_set('commerce_pdm_default_new_' . $product_type, $form_values['commerce_pdm_product_display_type']);

to

variable_set('commerce_pdm_default_new_' . $product_type, $form_values['product_type']['type']);
bogeyman’s picture

Hi, I just want to inform you that there is a module named Commerce Auto Product Display which does similar thing like this module. You might want to use it because this module is no longer maintained.

netsensei’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce this. As far as I can see, the code in commerce_pdm_form_commerce_product_ui_product_type_form_alter() and the corresponding submithandler do work and look sane to me.

Postponing this until I get more information about this issue.