Hi
Thank you for this module, it's very useful.
I'm trying to merge commerce 'add product' with content 'product display'.
In product display form i have a field set i created with field group module.
It works fine with field that is not in field group, But it doesn't show fields that in field group.
I searched in google about this issue but i don't find anything.
please help me
thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | field_groups_fix-1992890-2.patch | 1.99 KB | vhin0210 |
| #6 | field_groups_fix-1992890-2.patch | 1.99 KB | vhin0210 |
Comments
Comment #1
mahyarsbt commentedcommerce_apd_form_commerce_product_ui_product_form_alter in file commerce_apd.module used "field_attach_form()" for attach product display node form to product entity form.
I think this function not support fieldset or 'field group' module.
Comment #2
mahyarsbt commentedI can fix my problem with using field group fieldsets but i don't know this is a good solution or not.
in function commerce_apd_form_commerce_product_ui_product_form_alter(&$form, &$form_state, $form_id)
I added new code before and after second field_attach_form for support field_group module:
to
it works for me, and show my field set i made with field group.
only when 'Show product display form automatically' set no in configuration
fieldsets not showing in 'Create product display' fieldset.
i hope help for path
thanks
Comment #3
bogeyman commentedThank you for your response, I will evaluate your code.
Comment #4
achikas commentedi also need fieldgroups, but there are none.
i added your solution, but that doesnt give me my fieldgroups back.
would be great to have a solution.
Comment #5
khiminrm commentedHi! I had the same bug. I've investigated that after
field_attach_form('node', $node, $form, $form_state);the variable $form losts information about fieldgroups. I fixed it so:to the begining of function commerce_apd_form_commerce_product_ui_product_form_alter I've inserted such code:
and to the end of current function:
Hope it will help somebody. Good luck!
Comment #6
vhin0210 commentedUpdated the version to 7.x-1.6 and created the patch based on #2
Comment #7
vhin0210 commentedComment #8
vhin0210 commentedComment #9
bogeyman commentedI think this could be related to : https://www.drupal.org/node/1993614
I change the way the module displayed the form field. Please test the 7.x-1.x.
Comment #10
bogeyman commentedComment #11
bogeyman commented