View Single Post
  #76  
Old 11-01-2012, 11:05 AM
 
GreatLakesVacuum GreatLakesVacuum is offline
 

eXpert
  
Join Date: Jan 2009
Posts: 286
 

Default Re: Additional fields for address book

Quote:
Originally Posted by totaltec
Re-ordering the fields is not easy to figure out, but in theory it should be simple to do. It looks like the fields are defined in two places, once in init.php and again in the database under xcart_config>address_book_fields.

Initially I don;t believe any values are stored in the db at all, but once you have used the Settings> user profiles page in the admin it stores the value in the db. Theoretically you could change the order of the fields by altering the order in init.php.

If you already have a value stored in the xcart_config table it will override this setting, and since it is serialized it is harder for humans to read. So I would just delete this entry from the db. Once the field order is loaded from init.php, it should store the value correctly in the db for later adjustment of what is active/required. So if you want to use fax as company, you can just move it to the top of the list.

Keep in mind that I have not tested this at all. For most businesses Company is best left at the end in my opinion, putting it at the top would only be good for b2b.

Hope that helps,

Ours is 100% B2B. Often it is shipped to a different plant/building/city/company completely.

I'll look this over in more detail in the morning. Thanks.
__________________
X-Cart 4.5.4 Gold (Live Business Site)
X-Cart 5.1.9 Business (In Development Now)
Reply With Quote