Jump to content
  • 0

Add New Fields To Signup Form, Client Area And Admin Area


mario

Question

Hello,

 

We've successfully modified the invoice template and the "contacts" table, but we still need to add these fields to any form involved with that table, in each area: Signup form, Client Area and Admin Area. Which files are the ones involved on these forms?

 

Any help on this will be appreciated, Also if you've got any doubts modifiying the invoice template we're willing to help out :)

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0

You are probably looking for this mate: admin/settings/company/customfields/ That allows you to make fields for general (or another group) and you select the same group on the registration form. Then on registration they will be asked them questions.

 

I use them for "How did they find us?" and their date of birth.

Link to comment
Share on other sites

  • 0

We've tried that option, but still we need to delete a couple of fields that doesn't work out for our country. That "How did you find us" is a nice idea, with your permission, we'll steal it hehe :)

Haha feel free it's what most of us webhosts use. What fields are you looking at removing, I'm sure the dev's can help you turn them off for you.

Link to comment
Share on other sites

  • 0

You could remove non-required fields on the order form by editing the template and setting them to style="display:none;", but modifying them, depending on what you are trying to do may be an issue. Of course, if you disable the field from displaying, and then create a custom client field to replace it with your changes, that may work out.

Link to comment
Share on other sites

  • 0

The deal is that we need to store them in the "contacts" table, We've already modified the "contacts" table to adjust the legal requirements in our country to print the invoices. Not sure how to add these fields to the invoice using the "Custom Client Field" to the invoice template

Link to comment
Share on other sites

  • 0

The deal is that we need to store them in the "contacts" table, We've already modified the "contacts" table to adjust the legal requirements in our country to print the invoices. Not sure how to add these fields to the invoice using the "Custom Client Field" to the invoice template

 

 

Any ideas?

 

I guess I'm confused about how you're storing the data. Did you actually modify a table structure in the database, or are you using the built in custom client field feature?

 

In any case, you will likely have to fetch the information in the invoice template. See components/invoice_templates/TEMPLATENAME/

Link to comment
Share on other sites

  • 0

We've modify the table structure in "contacts"

 

Then you'll have to fetch the information for the invoice template by doing a query yourself, the data will not be available automatically and there is no method that you can invoke to fetch the information.

 

We suggest only making changes to the database structure or core files if necessary as it may eliminate an upgrade path.

 

All of the areas you may need to modify to allow the field you added to be updated via the interface, and during check out, etc may be quite significant. Cody or Tyson may be able to point you in the right direction, but we can't provide any official support for this.

Link to comment
Share on other sites

  • 0

We altered successfully the default invoice template using the vars available without using any extra query with "$this->invoice->billing->xxxxx" also modified the design to fit our local goverment regulations. But still we need to add those fields to any form involved with that table.

 

We know that on each update if needed we'll have to alter what we have done before, but it's the only way we can use Blesta in our country due to these mandatory standards.

 

If we could use this "$this->invoice->billing->xxxxx" using the built in custom client field feature, I think we won't have to alter that much the core.

Link to comment
Share on other sites

  • 0

There's no mechanism in place to associate custom fields with contacts. Custom fields can only be associated with clients. I don't really have any suggestions on how you might use custom fields for contacts as the database is simply not designed to work that way, and there's currently no event that would allow plugins to associate custom fields with contacts.


If you're modifying the default invoice template you should instead clone it and rename it. Then you should have no problem customizing it as much as you need.

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.

Loading...
×
×
  • Create New...