Page 1 of 1

Having trouble with import and custom fields

PostPosted: June 15th, 2011, 5:07 pm
by lindseytyner
I am having trouble importing users into the system with the custom fields. I've made a CSV, with double-quotes and the import works fine except that the custom fields don't come through. I'm not getting any errors, it's just that when I view any of the users all of the custom fields are blank. When I export, no custom fields come through. Has anyone had this issue and found a solution?

Thanks for your help.

Re: Having trouble with import and custom fields

PostPosted: June 15th, 2011, 9:08 pm
by Cristián Lávaque
Hi Lindsey.

Could you please show me a row with custom fields from your CSV file? (x'ing out any private information)

Re: Having trouble with import and custom fields

PostPosted: June 16th, 2011, 9:12 am
by lindseytyner
Sure, it looks like this:

"","MeredithSchneider","","Meredith","Schneider","","mlschneider@xxxxxxx.com","","s2member_level2","","7/31/09","","","","","","","Donna Zxxxxx","Specialist","111 Main St. #111","","Austin","TX","12345","USA","512-xxx-xxxx","","F","","TRUE","TRUE","","","TRUE"

Here is the column list showing the custom fields:
"id","Username","Password","First Name","Last Name","Display Name","Email","Website","Role","Custom Capabilities","Registration Date","First Payment Date","Last Payment Date","Auto-EOT Date","Custom Value","Paid Subscr. ID","Paid Subscr. Gateway","business_name","title","street_address1","street_address_2","city","state","zip_code",
"country","phone_number","fax_number","gender","birthdate","email_list","text_updates",
"committee_interest","other_orgs","terms"

Thanks for your help.

Re: Having trouble with import and custom fields

PostPosted: June 16th, 2011, 11:19 am
by Cristián Lávaque
Thank you. I see...

Read the documentation for the Import tool at WP Admin -> s2Member -> Import / Export -> User/Member Import Files. You'll find how to format the custom fields.

Additional extended information can also be included; even Custom Fields:
"ID","Username","Password","First Name","Last Name","Display Name","Email","Website","Level[0-4] or Role ID","Custom Capabilities","Registration Date ( mm/dd/yyyy )","First Payment Date ( mm/dd/yyyy )","Last Payment Date ( mm/dd/yyyy )","Auto-EOT Date ( mm/dd/yyyy )","Custom Value ( starts w/domain )","Paid Subscr. ID","Paid Subscr. Gateway","Custom Field ID #1","Custom Field Value #1","Custom Field ID #2","Custom Field Value #2", ...


So your custom fields would go in pairs of ID (name) and value, and you only need to have in each row those fields with a value, if the field is empty you can skipt that pair.

... ,"text_updates","TRUE","terms","TRUE"


This format may change in a future release, but for now that's how it is.

I hope that helps. :)

Re: Having trouble with import and custom fields

PostPosted: June 16th, 2011, 2:15 pm
by lindseytyner
Ah, I see. I guess I got confused when I read it. Thanks for that. Count this as vote to change it in future releases! :)

Re: Having trouble with import and custom fields

PostPosted: June 16th, 2011, 5:02 pm
by Cristián Lávaque
:)