this is cool module but i think we are lacking of displaying the profile form in admin section while creating new customers

right now we can create the customers with only email field. i tried to insert the profile form using hook_form_alter into customer creation form.

but i am lost while submitting how to call profile_save_profile api function.

Please help me in this regard

i am ready to give more information if you require any......

CommentFileSizeAuthor
#6 uc_profile_add_order_pane.patch2.92 KBsinn

Comments

EvanDonovan’s picture

Title: is there any way to display the profile fields in admin create customer page » Add the profile fields to the create customer page in Ubercart admin

Do you mean "create order" rather than "create customer"? I don't see a "create customer" page in the Ubercart admin in Ubercart 2.4.

sinn’s picture

"customer info" pane exists on the admin/store/orders/%uc_order/edit. There is "Create a new customer" icon.

EvanDonovan’s picture

Ah, thanks for the clarification. I've never used that feature before.

sinn’s picture

there isn't "profile pane" on the admin/store/orders/%uc_order/edit. I think good way to resolve all this problems - to add "profile pane" with profile fields on this page, and to add on this pane icons "Create a new customer" like ubercart.

sinn’s picture

sinn’s picture

StatusFileSize
new2.92 KB

I've added profile panes for order. Profile fields may be edited in this pane.

EvanDonovan’s picture

Thanks for the code. This is more sophisticated than what is in #606366: Make it possible for uc_profile to include fields from different profile categories (see the hook_order_pane implementation in the last patch of that issue).

If that patch gets committed, though, this will have to re-rolled based on what is in there.