Jump to content
  • 0

Database modifications


killerasp

Question

I am working on an app and i wanted to use WHMCS to handle the ticketing and billing system.

 

i havent used the actual product yet but from what i gather from the API functions, the basic field in the client table include:

 

clientid

firstname

lastname

companyname

email

address1

address2

city

state

postcode

country

phonenumber

password2

currency

 

Is this accurate as to the columns in the client table? What if i wanted to add a new column to the client table? Would that be possible without breaking WHMCS?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
I am working on an app and i wanted to use WHMCS to handle the ticketing and billing system.

 

i havent used the actual product yet but from what i gather from the API functions, the basic field in the client table include:

 

clientid

firstname

lastname

companyname

email

address1

address2

city

state

postcode

country

phonenumber

password2

currency

 

Is this accurate as to the columns in the client table? What if i wanted to add a new column to the client table? Would that be possible without breaking WHMCS?

 

I attached a dump from the tblclients table. As you can see the fields that you name up are correct.

 

I don't recommend you to create new fields to the current table. I advise to create an extra table and store the userid so you can link information from both tables, without damaging your WHMCS environment.

dump.txt

Link to comment
Share on other sites

  • 0

From a developers perspective custom fields in WHMCS are very clunky to work with, so I tend not to use them on any of my add-ons. Yes, they have their place and work well for what their intended to do.

 

I would also avoid making any changes to any of the WHMCS. Such changes could cause problems with upgrading WHMCS down the road. MySQL is a relational database; use that to your advantage, create an indexed field for clientid, accountid., or whatever unique WHMCS field you need to establish the relation to your own database tables.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated