melotel Posted August 3, 2021 Share Posted August 3, 2021 I am helping an organization move from their offline spreadsheet billing system to WHMCS. They have all their client data in a spreadsheets. So I am wondering if anyone has any clear instructions for the best way to inject client profiles into the DB or WHMCS or know of any plugins that make this easier when coming from CSV. 0 Quote Link to comment Share on other sites More sharing options...
Remitur Posted August 3, 2021 Share Posted August 3, 2021 Just rearrange your CSV, inserting right fields name, and import it using phpmyadmin ... 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted August 5, 2021 Share Posted August 5, 2021 Quick search didn't find a module in the marketplace or like a thread here but didn't go to deep in the results. Would say not to muck with the default database tables directly and in 8 that changes anyhow with users and a client not having a user could be an issue. An addon module should be able to do this with csv parsing and API calls. 0 Quote Link to comment Share on other sites More sharing options...
blakeh Posted January 7, 2022 Share Posted January 7, 2022 I've had the same issue and tried finding some code samples for just using the API to import them but no such luck. 0 Quote Link to comment Share on other sites More sharing options...
string Posted January 8, 2022 Share Posted January 8, 2022 11 hours ago, blakeh said: tried finding some code samples for just using the API to import them but no such luck. I have made this script for importing products: That should give you a good sample which you can rewrite. Regarding adding clients, I wouldn't recommend a manual CSV import via phpMyAdmin, because you need to import data not only in tblclients, but also in tblusers. And you can't set the password via a MySQL import. Use the AddClient API instead. 0 Quote Link to comment Share on other sites More sharing options...
blakeh Posted January 8, 2022 Share Posted January 8, 2022 5 hours ago, string said: I have made this script for importing products: That should give you a good sample which you can rewrite. Regarding adding clients, I wouldn't recommend a manual CSV import via phpMyAdmin, because you need to import data not only in tblclients, but also in tblusers. And you can't set the password via a MySQL import. Use the AddClient API instead. Thanks, I'll take a look. I was planning on using the AddClient API. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.