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?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | commerce_product_display_manager.zip | 24.37 KB | george esper |
Comments
Comment #1
george esper commentedI 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)
Comment #2
netsensei commentedHm. 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.
Comment #3
netsensei commentedOkay. I realised this is a duplicate of #1323376: No products and displays found when having multiple fields