Re: Additional fields for address book
There should be only "id" field in the address book table, no "addressid" one (it is indeed means "addressid", but called "id").
The "addressid" field should be added to the "xcart_register_field_values" table. Hope it helps. |
Re: Additional fields for address book
Quote:
For some reason my installation was causing php errors saying addressid was a missing field within address_book - unfortunately i don't have the error messages anymore, but adding addressid to the table stopped the error. |
Re: Additional fields for address book
Brilliant! This is really useful!
|
Re: Additional fields for address book
I'm getting this:
Code:
|
Re: Additional fields for address book
Actually there's a set of errors on each completed order, from the same URL specified above
Code:
SQL query : SELECT COUNT(id) FROM xcart_address_book WHERE userid='0' AND addressid='0' LIMIT 1 |
Re: Additional fields for address book
Oh, sorry. There seem to be an issue with the patch.
Please edit the include/func/func.user.php script and replace this code: Code:
$_address_exists = func_query_first_cell("SELECT COUNT(id) FROM $sql_tbl[address_book] WHERE userid='$user' AND addressid='$address'") == 0 ? false : true; with this: Code:
$_address_exists = func_query_first_cell("SELECT COUNT(id) FROM $sql_tbl[address_book] WHERE userid='$user' AND id='$address'") == 0 ? false : true; |
Re: Additional fields for address book
I've update the patch. So, it contains the fix provided above.
|
Re: Additional fields for address book
Thank you, this solved the problem.
For some reason though, the extra fields are invisible, even if the HTML code is there. Please see: http://www.blueneon.ro/alinush/hidden.jpg Also, how can we insert these fields between the other address book fields? For example, I need Address line 3 after Address line 2, but I can't insert it there: http://www.blueneon.ro/alinush/fields.jpg |
Re: Additional fields for address book
Repositioning is not supported, unfortunately.
Additional customization will be rquired e.g. in this template -> skin/%skin%/(main/modules)/address_fields.tpl |
Re: Additional fields for address book
What browser do you use? Please clarify.
|
All times are GMT -8. The time now is 04:48 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.