Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add extra fields for Customer details


Duroniel

Recommended Posts

Posted

Hello there!

 

I am using the latest version of OSC, 2.3.3.

Today I received my first order with different shipping and payment addresses, and realized that I need to be able to have a field for telephone and email for the delivery-address as well as the one making the order.

 

How can I add this? It doesn't have to have the "title", just the input info. Ex. I don't need to see Telephone: 000000, just 00000. I tried just changing titles of the "state" and "suburb", since I won't use these, but they end up in the wrong place. If it would be easier to change where these get placed I'm up for it! (obviously I need these two informations at the bottom, at a new line after country.)

 

 

Thanks!

Posted

Take a look at your database table 'address_format' and change the content of field 'address_format'. For example, if the field 'address_format' for 'address_format_id' 2 looks like this:

 

$firstname $lastname$cr$streets$cr$city$state$postcode$cr$country

 

and you want to use 'state' as 'telephone' and then put 'telephone' at the end of the address, you can change the above line to:

 

$firstname $lastname$cr$streets$cr$city$postcode$cr$country$cr$state

 

This is just the idea, not an accurate example. Your database table 'address_format' should be very different as my shop is heavily modified.

 

Backup your database before you make any changes to it.

 

Best wishes, Eddy

Posted

Well, I didn't work when I only changed the id #2, but when I changed ALL 5 of them, it seems to have done the trick. Is that incredible stupid to do? :P

Posted

Each country has an 'address_format_id' attached to it. So if you change id #2, it only affects certain countries.

 

Cheers, Eddy

Posted

Oh, that's really handy to know! And that would also mean that to change all is not incredibly stupid ;) I only have my store open to people in Sweden, so I don't think it would matter for the rest of the world..

 

Thank you so much for all the help! Really appreciate it! :D

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...