Hey
I recently installed Entity view mode module to extend the core view mode functionality.
I created a custom view mode for my product display, and would need to use a custom view mode for my product as well in the add to cart form. For instance :
-> Product display default view mode : uses Commerce product default view mode
-> Product display custom view mode : uses Commerce product custom view mode...
I can't see where in the UI I can tell to my product display product reference field whether to use one or another product display mode, am I missing something ?
If there is currently no implementation for this, would it be reasonable to make a feature request to be able to select the product view mode per product display view mode (on the node Display setting > Product reference field using "Add to cart" form, and add a dropdown in the settings, along with display quantity widget ....)
Thanks
Pascal
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | product_display_display_setting.png | 395.84 KB | liupascal |
| #4 | product_entity_display_settings.png | 257.45 KB | liupascal |
Comments
Comment #1
rszrama commentedThe product type should know about any display mode from the referencing node type. You may just need to enable it on your display settings page - it'll use the default display settings otherwise. Look in the "Custom display settings" fieldset.
Comment #2
liupascal commentedI am not sure I understand how i can set up the following :
-> Product display with "default" view mode should use Product entity "default" view mode display setting
-> Product display with "my_custom_product_display_view_mode" view mode should use Product entity "my_custom_product_entity_view_mode" view mode display setting
Comment #3
rszrama commentedI can't help further unless you can provide some screenshots of your manage display page for your custom product type with the fieldset beneath the field table on the "Default" tab expanded.
Comment #4
liupascal commentedHere is a screenshot of the "product display" content type and product entity display settings.
Entity view mode uses hook_entity_info_alter() to declare their view mode so I thought it would be rather well integrated - maybe there is a problem with either commerce or entity view mode module.
Thanks !
Comment #6
denix commentedHi @liupascal, did you solve this issue? if yes, how? I'm facing the same problem with a similar configuration and I did not find any solution yet. I also suggest to reopen the issue, because, at the moment, there is no solution.