2 replies [Last post]
mccoy's picture
Offline
Joined: 08/13/2009
Juice: 7
Was this information Helpful?

Hi,
I'm from germany - so sorry for my english (I'll try hard...)

In my shop users can't register themselves. All users get imported by CSV regularly. So it's no problem to import users to Drupal with the module "User Imports" (or even with "Node Import", if ur using content profile)

But I have the problem to tell Ubercart to use the address-information from the core userprofile fields (or from CCK) when the customer places an order.(It should be shown in the select box of the checkout pane - as standard)

I know about the module "uc_addresses" which stores the addresses in its own table, but - as I see - there is no connection to the core userprofile fields possible. Well, at least that wouldn't be a problem, but I have no clue how I can import my users to the core profile (for standard information, e.g. username, email, password) and at the same time to the table of uc_addresses (for address information, e.g. street, city etc.) I think the connection of both tables is the "uid", but how can import the data into both tables regulary?

I'm thinking of two solutions:

- write my own import module to handle this, which writes the data in both tables (I never wrote a drupal module yet and it seems to be a tricky job for the first time...)
- modify the checkout pane and tell it to use the created fields in core profile instead (would be a nice solution, because I can use the "user imports" module for the import process.)

Did I miss something? Do u know any other solutions for the problem?

greetings
Andy

mccoy's picture
Offline
Joined: 08/13/2009
Juice: 7
Sorry! I posted to early!

Sorry!

I posted too early! Here is already the solution:

http://www.ubercart.org/forum/development/900/pre_populating_shipping_ad...
(I use the solution of the last comment)

Works like a charm! Ubercart rocks! Smiling

yesct@drupal.org's picture
Offline
Uber Donor
Joined: 11/18/2008
Juice: 294
also module to integrate uc

also

module to integrate uc with profile
http://drupal.org/project/uc_profile

issue to integrate with content profile:
http://drupal.org/node/974070