Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to add a field to the Address Book?


grwd

Recommended Posts

Assumption ... you have phpMyAdmin Open

 

Table to Add Field to: address_book

New Field to Add: entry_pager_number

 

Click on the table address_book

 

Now you see all the fields in the address_book

 

Scroll down to ... Add new field:

 

Type in 1 and select end of table and click GO

 

Now type in the new field name: entry_pager_number

 

Define its definition: varchar 32 is a nice setting for a phone number field and matches the field definition in the customer table

 

Now save your changes.

 

All done --- I hope :lol:

 

Yell if you need something more specific

Link to comment
Share on other sites

Linda,

I should have been more specific. :oops:

I know how to add a field to the database table.

 

:?: What I don't know: is how to add it to the shopping cart so that it is displayed everywhere that the other Address Book fields are displayed.

grwd

Thank you,

Tim

Link to comment
Share on other sites

Well ... find a field in the address_book table ...

 

Do a

Start ...

Search ...

For Files and Folders ...

Enter the field name in the Containing text: box

Type in your directory for your catalog

 

Click search ...

Get a cup of coffee ...

Voila! :D

Link to comment
Share on other sites

Ok, that's got us adding a new field for the address and everything, now, how do we change the order in which the input fields appear?

 

instead of

Street

Suburb

Postcode

City

Country

State

 

I would like (as most in USA)

Street

City

State

Postcode

Country

((no need for suburb))

 

Which file(s) do I need to edit to change the layout of all address forms?

 

Seems like it should be easy, I have been looking, but not really making any progress.

 

TIA

 

Bill

Link to comment
Share on other sites

((no need for suburb))

Which file(s) do I need to edit to change the layout of all address forms?

catalogincludesmodulesaddress_book_details.php

To remove suburb look into applicaton_top. There you can unset it.

Cu Henri

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   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.

×
×
  • Create New...