The Display Manager query (in "commerce_pdm_product_display_manager_form") didn't output any $record result if I had more than 1 Product Type.
I went through it and seems to me that it hasn't been built to be able to handle tho use case.
Everything worked well back when I deleted the the second product type (but that wasn't sufficient) and every reference product field that was referencing to that product in the appropriate product displays. I guess that besides all the functions in charge to define the query conditions might be redesigned, if should be able to handle more than 1 Product Type …

Am I wrong?

Comments

george esper’s picture

StatusFileSize
new24.37 KB

I ran into the same problem. Here's a quick fix that works for our site, which has two product display types.

I also folded in 2 patches:
- Problem with commerce_pdm_display_node_products_form and languages (http://drupal.org/node/1220286)
- Cloning a product via the display manager gives error's (http://drupal.org/node/1536842)

netsensei’s picture

Category: bug » task
Status: Active » Postponed

Hm. I can't reproduce this. I created a 2 product types: "Product" and "File" and linked them to the same product display type "product". Then I created Product products and File products referencing them to product display nodes. The product display manager works and shows all products regardless of product type.

I do agree, though, that the query should be rewritten. Perhaps it should rather use EntityFieldQuery (http://api.drupal.org/api/drupal/includes%21entity.inc/class/EntityField...) or even rely on the Entity API module for a more sane approach.

Not gonna fix this, unless someone can give me an exact procedure on how to reproduce this with a standard Commerce and pdm installation.

netsensei’s picture

Status: Postponed » Closed (duplicate)