Tags/topics: 
1
Answers
Vote up!
1
Vote down!

Create An Order

I may be going mad because I have been searching for this for half a day and can't find it. I am trying to create orders for users (customers), I want to be able to generate orders for existing users using their billing & shipping profiles. I know I can create an order but that would involve manually adding the customers details and then changing the owner to that user but that seems like a really long winded way of doing it. I am sure this capability must exist and I just can't find it, any help would be really appreciated

Asked by: andyhazlewood
on June 7, 2012

1 Answer

Vote up!
1
Vote down!

Hmm, I'm not sure why it's longwinded to create an order and then change the owner to the user in question. That part seems pretty straightforward Drupal. I do it for creating nodes as Admin for other user accounts, for example.

However, to reference existing customer profiles for the user, you're going to need the Commerce Addressbook module, as that's the module that right now allows customers to specify default shipping / billing addresses that should be populated whenever new orders are created for them. I'm not sure if it has a select widget on the order edit form let to let you choose alternate addresses for them, but at least the default addresses would get you most of the way there.

Ryan Szrama
Answer by: Ryan Szrama
Posted: Jun 8, 2012

Comments