If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / How can I add more fields like these in the registration to show in admin 'Costomers'

How can I add more fields like these in the registration to show in admin 'Costomers'

Started by oavs on 2 Jul 2013, 12:57 AM · Views: 805

Results 1 to 3 of 3
2 Jul 2013, 12:57 AM
#1
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

How can I add more fields like these in the registration to show in admin 'Costomers'

Can anyone please explain how this can be done?

How can I add more fields like these in the registration to show in admin 'Costomers'

Is it possible to add under company name a field for their ABN.

And a new box under that for Student
College Name
College address & phone number
Student ID

[Attachment no longer available]

Downunder QLD

9 Jul 2013, 10:49 PM
#2
oavs avatar

oavs

Totally Zenned

Join Date:
Jan 2006
Location:
Downunder - QLD - Gold Coast
Posts:
921
Plugin Contributions:
0

Re: How can I add more fields like these in the registration to show in admin 'Costomers'

Sorry to bump but I really need some one to show me how this can be accomplished.

Downunder QLD

10 Jul 2013, 3:55 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: How can I add more fields like these in the registration to show in admin 'Costomers'

  1. add the fields to the database
    Gotta pick the right tables and right field types and right lengths.

  2. add those fields to the SQL queries extracting data for display on that page
    Depending how you do it, you might need to write extra queries too.

  3. Add more HTML to the page to display the fields, and the corresponding PHP to display the content in the database
    To some extent you can copy existing patterns for inspiration.

  4. Add logic to handle submissions of changes you make to that information, if you intend to allow that
    Make sure you properly sanitize any submitted changes, and of course write those changes back to the database.

  5. Then consider repeating steps 2-4 on the storefront side for both the create-account and my-account (both "info" and "edit") screens, if you intend to let customers supply and view this info
    This involves not only the modules files but also the template files

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.