Vote up!
Vote down!

How to use Billing information values to populate user fields at account creation at checkout

I've added a field to the user entity (field_first_name)

Now I'd like to populate it at account creation during checkout (default Rule commerce_checkout_new_account)

with billing information values the user entered during checkout, specifically 'First name'.

I'm using the 'Name (First name, Last name)' widget on the 'billing information' customer profile type.

Asked by: S1L
on April 2, 2013

1 Answer

Vote up!
Vote down!

Thank you for all your wonderful blog posts recently :D

This Question & Answer gets close: http://www.drupalcommerce.org/questions/5370/how_do_i_base_new_account_u...

Josh Miller
Answer by: Josh Miller
Posted: Apr 2, 2013


:) Thank you Josh.
I saw that Q&A before I created this one, but was unable to solve my usecase with that information.
I'm unable to get to the individual addressfield fields (with both data selection mode and direct input mode)

- S1L on April 2, 2013

I haven't figured this out yet, but once I do (or someone else does) I'll create a blogpost tutorial about this.
Greeting a customer with their name in (welcome) emails and throughout the site seems like something every customer appreciating store would do.

- S1L on April 5, 2013

I have added those function into .module file.But it says undefined variable error, How can i define these variable. Please help me

- sajeevp on June 16, 2013