At the beginning I would like to thank the creator of this module. For me it is one of the most anticipated additions to Drupal. It solve a lot of my problems! Thank you very much! ;)
Right now I'm building a page for restaurant with the possibility of ordering by phone. Orders are added by the employee.
I would like to give them the ability to quickly customer choose and automatically filling in the fields at checkout .
To achieve this, I created an additional Client Profile (using the module: Customer Profile Type UI) where I gathered all the necessary information. This profile will contain two fields : Telephone Number and Street. Let's call this profile: Information Profile.
Now I'm going to set the fields in the customer profile "Billing Information" which appears during checkout. ( store > Customer profiles> Profile types > Billing information> Fields). I add the field "entity reference", TargetType: Commerce Customer Profile, and choose "Information Profile".
Of course I also add fields: Telephone Number and Street.
So now during the checkout process there is new "entity reference" field referring to the profile "Information Profile" which should automaticly filled Telephone Number and Street when i select a different profile.
At the opening of checkout page I get the following error:
Notice: Undefined index: field_myfield in entityreference_autofill_field_attach_form() (line 129 of /home/(...)/sites/all/modules/entityreference_autofill/entityreference_autofill.module).
Notice: Undefined index: field_myfield in entityreference_autofill_field_attach_form() (line 130 of /home/(...)/sites/all/modules/entityreference_autofill/entityreference_autofill.module).When I try to choose something from entity reference field i get this warning in popup:
An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /mysite/system/ajax
StatusText: Internal Server Error
ResponseText: I also tried to reference to User profile or Basic page, but the problem remains.
Comments
Comment #1
Kolo commentedComment #3
jgullstr commentedHi Kolo,
Thanks for your kind words and your report. I've reviewed the issue and the latest commit should hopefully solve these issues.
//Josef
Comment #4
jgullstr commentedComment #5
Kolo commentedThank you for the quick reply. I updated the module to newest dev, but unfortunately the problem persists:
Comment #6
jgullstr commentedTry downloading the newest dev again. The newest commit might not have been packaged when you updated, as that error is not possible any more. I checked that the newest is available now.
//Josef
Comment #7
Kolo commentedOn clean instal it works perfect! Thank you!
Comment #8
jgullstr commentedGreat! Setting this to fixed then.
//Josef