| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Additional fields for address book | ||||
|
|
Thread Tools | Search this Thread |
#101
|
|||||||
|
|||||||
Re: Additional fields for address book
Thanks Steve!
In version 4.6.3, the setting up the company address field as an "additional address field" in user profile doesn't allow it to be put in the correct field order for address labels (as many now know). So I used your hard coding of the Company field as per your coding (slightly modified as 4.6.3 has the bugs removed). I don't really understand why but I just couldn't get the company field to show anywhere, even after clearing caches. None of the array functions would pick it up. Then, in PHPMyadmin I searched xcart_config table for "address_book_fields" I decided to manually insert the company field Quote:
So it now contains : Quote:
and everything started working correctly - including the field showing in User Profiles and it the avail/req'd checkboxes also work - see attached. In 4.6.3, userprofiles.php call for $default_address_book_fields; but func.user.php calls for $default_address_fields - I think this is where the hard-coding of the fields is complicated a little. Hope this helps someone!
__________________
Ben X-Cart 4.6.6 Gold Plus - lots of modules X-Cart 4.7.9 Gold Plus - lots of modules |
|||||||
|
#102
|
|||||||||
|
|||||||||
Re: Additional fields for address book
Quote:
Just delete the entry for address fields in config table - XC will generate it again from the init.php values and include the changes you have made for "company" field
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#103
|
|||||||
|
|||||||
Re: Additional fields for address book
Cheers & Thanks.
So it is another cache - DB cache. As you replied I read http://forum.x-cart.com/showthread.php?t=58832&page=2&highlight=func_get_d efault_fields Appears you need to do this in PHPMyAdmin, as clearing x-cart cache doesn't do it. Much appreciated
__________________
Ben X-Cart 4.6.6 Gold Plus - lots of modules X-Cart 4.7.9 Gold Plus - lots of modules |
|||||||
|
|||
X-Cart forums © 2001-2020
|