|
Adding custom fields to customer
|
|
08-23-2010, 09:50 AM
Post: #1
|
|||
|
|||
|
Adding custom fields to customer
Hi,
I looking at THT for doing basic functions of an EU based customer. I would like to be able to add some fields to the customer registration page like: -) company name -) VAT registration ID -) etc These fields must be visible in -) the registration page -) invoices Also, EU vat calculation must be implemented (that is: Pay VAT only if the customer resides in the country of origin of the provider). this is fairly standard stuff but it doesn't seem to be implemented. Thank you ispcomm |
|||
|
08-24-2010, 02:46 AM
Post: #2
|
|||
|
|||
|
RE: Adding custom fields to customer
You will have to edit the tpl in /includes/tpl/orderform.tpl to show on the form. Then you will have to edit the users table in phpmyadmin so that it has somewhere to save. Then you will have to edit /includes/class_server.php to write the data to the sql. Use bits and pieces from the code in each file to see how to do it.
|
|||
|
08-24-2010, 04:02 AM
Post: #3
|
|||
|
|||
RE: Adding custom fields to customer
(08-24-2010 02:46 AM)xpack Wrote: You will have to edit the tpl in /includes/tpl/orderform.tpl to show on the form. Then you will have to edit the users table in phpmyadmin so that it has somewhere to save. Then you will have to edit /includes/class_server.php to write the data to the sql. Use bits and pieces from the code in each file to see how to do it. Thanks for pointing to class_server.php. I was missing this. Do you happen to know what are the policies for accepting changes back to tht? I prefer to merge back my changes in the main trunks as over time they become unmanageable. ispcomm |
|||
|
08-24-2010, 07:56 AM
Post: #4
|
|||
|
|||
|
RE: Adding custom fields to customer
If you want changes accepted, complete them for yourself, and then contact Kevin here on the forums with the changes you've made for review. He'll take care of the rest from that point.
Nick - TheHostingTool Staff Coordinator ![]() |
|||
|
08-24-2010, 10:02 AM
Post: #5
|
|||
|
|||
|
RE: Adding custom fields to customer
Let us know if you have any other errors, we'll be happy to help
|
|||
|
08-25-2010, 08:03 PM
Post: #6
|
|||
|
|||
|
RE: Adding custom fields to customer
Feel free to submit a enhancement request and include a subversion patch file if possible on our bug tracker at Google Code.
Kevin Mark - TheHostingTool Lead Developer |
|||
|
08-26-2010, 03:16 AM
(This post was last modified: 08-26-2010 03:16 AM by ispcomm.)
Post: #7
|
|||
|
|||
|
RE: Adding custom fields to customer
Kevin, thank you for the hint.
Since I'm working on a new installation based on ispconfig, I have implemented the change against your sibling bnpanel project. It works and I'm testing it on a pilot installation. It's a very simple change but requires modifying many files (templates, classes and ajax and javascript verification). It will probably be pushed in your trunk by jmontoya/jwarnier. ispcomm |
|||
|
08-31-2010, 02:08 AM
Post: #8
|
|||
|
|||
RE: Adding custom fields to customer
(08-26-2010 03:16 AM)ispcomm Wrote: Kevin, thank you for the hint. Oh this is pretty interesting, if you've got THT configured for ispconfig. Keep us posted. |
|||
|
08-31-2010, 02:30 AM
Post: #9
|
|||
|
|||
RE: Adding custom fields to customer
(08-31-2010 02:08 AM)tysontomko Wrote: Oh this is pretty interesting, if you've got THT configured for ispconfig. Keep us posted.There's a branch of tht called bnpanel, specifically for ispconfig integration (and issues that are needed to make it a working panel). It's callen bnpanel. It's not production ready, but you can get the snapshot here: http://code.google.com/p/bnpanel/ ispcomm. |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)





![[Image: standard.png]](http://twitstamp.com/thehostingtool/standard.png)

![[Image: standard.png]](http://twitstamp.com/kmark937/standard.png)