Additonal fields for customer details

Request for general support related to Logic Invoice.
Post Reply
mambotech
Posts: 8
Joined: Sat Feb 04, 2017 10:39 pm

Additonal fields for customer details

Post by mambotech » Sun Feb 05, 2017 1:23 am

Hi,

Can anyone tell which files control the add customer form. I have worked through all of the files but cannot seem to track down what controls the form. I have added new columns in the database to the xsrou_customer table and added the new columns to various php files but I cannot find how to add the fields to the add new customer form.

Any help would be much appreciated.

Thanks

Mark

User avatar
Esmond
Site Admin
Posts: 285
Joined: Tue Sep 15, 2015 3:08 pm
Location: Singapore
Contact:

Re: Additonal fields for customer details

Post by Esmond » Sun Feb 05, 2017 12:04 pm

These are the files:

- application/controller/account/register.php & update.php
- application/model/billing/customer.php
- application/view/theme/default/template/account/register.tpl & update.tpl
- admin/controller/billing/customer.php
- admin/model/billing/customer.php
- admin/view/template/billing/customer_form.tpl

That should be all.

mambotech
Posts: 8
Joined: Sat Feb 04, 2017 10:39 pm

Re: Additonal fields for customer details

Post by mambotech » Mon Feb 06, 2017 4:24 pm

I think I need to edit the admin files as well, otherwise when adding a new client the fields will not be available.

mambotech
Posts: 8
Joined: Sat Feb 04, 2017 10:39 pm

Re: Additonal fields for customer details

Post by mambotech » Mon Feb 06, 2017 4:42 pm

Hi Esmond

The only issue I have now is working out how you add the field labels. I cannot find how they are generated?

User avatar
Esmond
Site Admin
Posts: 285
Joined: Tue Sep 15, 2015 3:08 pm
Location: Singapore
Contact:

Re: Additonal fields for customer details

Post by Esmond » Tue Feb 07, 2017 6:26 am

The files I listed above includes admin as well. I'm not sure what you meant by adding field labels?

mambotech
Posts: 8
Joined: Sat Feb 04, 2017 10:39 pm

Re: Additonal fields for customer details

Post by mambotech » Tue Feb 07, 2017 4:16 pm

Hi,

The add customer form has labels First name , Last name, company etc ... I am trying to find where they are controlled from?

mm! strange the values are not being added... are these stored in the database? Look at the taxid..

<div class="form-group">
<label class="col-sm-2 control-label" for="input-company">Company</label>
<div class="col-sm-10">
<input id="input-company" class="form-control" name="company" value="" placeholder="Company" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="input-taxid"></label>
<div class="col-sm-10">
<input id="input-taxid" class="form-control" name="taxid" value="" placeholder="" type="text">
</div>

Thanks

Mark

User avatar
Esmond
Site Admin
Posts: 285
Joined: Tue Sep 15, 2015 3:08 pm
Location: Singapore
Contact:

Re: Additonal fields for customer details

Post by Esmond » Tue Feb 07, 2017 10:32 pm

It's from the language file, you can find it there.

mambotech
Posts: 8
Joined: Sat Feb 04, 2017 10:39 pm

Re: Additonal fields for customer details

Post by mambotech » Wed Feb 08, 2017 12:19 am

Hi Esmond,

Thanks for your help.. I now understand how the app functions. Great bit of coding. I am now going to try and get the HTML printing to work.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests