We have a product that is being sold with Drupal Commerce (using Drupal 7). This specific product is going to be advertised in more ways than just the Drupal site (e.g. email, other sites).
These other sites can have a form in which the user enters some basic information (Name, phone, email). This data is sent to Drupal (curl), a cart and session is created (anonymous unless the user is logged in our site) and the session ID is sent back to the calling website.
The user is redirected to our Drupal site, and the session is restored using the id that was passed.
Everything is working fine, but the user has enter the name, phone and email twice because Drupal tries to pre-populate the checkout fields with the user data, and in this case the user is anonymous, even though I have the user data from the first call.
Is it possible to add this information (name, email, phone) after calling commerce_cart_product_add()
for anonymous users? The fields in checkout should get pre-populated even if the user is anonymous.