armboa Posted January 30, 2014 Share Posted January 30, 2014 (edited) Hello everybody, I have a store (upgaraded from 1.4.8) 1.5.6.2 that shows twice the field country on the registration form The trouble is on the array dvl_all_fields, but i don't know where and how it is initialized. the debug console shows: $dlv_all_fields Smarty_Variable Object (3)->value = Array (13) 0 => "firstname" 1 => "lastname" 2 => "company" 3 => "vat_number" 4 => "address1" 5 => "address2" 6 => "postcode" 7 => "city" 8 => "phone" 9 => "country" 10 => "name" 11 => "Country:name" 12 => "State:name"->nocache = false->scope = "Smarty root" As you can see country appears twice in field 9 and 11. I have change the code on authentication.tpl putting the if only comparing with text field 9, but i think this is not the best way. Can anyone tell me what's file is wrong since another store makes the array correct like this: $dlv_adr_fields Smarty_Variable Object (3)->value = Array (9) 0 => "firstname lastname" 1 => "company" 2 => "vat_number" 3 => "address1" 4 => "address2" 5 => "postcode city" 6 => "Country:name" 7 => "phone" 8 => "phone_mobile"->nocache = false->scope = "Smarty root" Now the field is country:name and not only Country, what makes me more ceptic about my workaround. Edited January 31, 2014 by El Patron (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted January 30, 2014 Share Posted January 30, 2014 I don't know that this is the best solution but may be a good work around for now. themes/yourtheme/authentication.tpl create back up now edit this file themes/yourtheme/authentication.tpl Find this line: {elseif $field_name eq "Country:name" || $field_name eq "country"} change to {elseif $field_name eq "Country:name"} This should solve front office display. Note: Country:name is for 1.5. This does not resolve more complex reason of why it is passing both. Are you using a retrofitted 1.4 template for your upgraded 1.5 shop? Link to comment Share on other sites More sharing options...
armboa Posted January 31, 2014 Author Share Posted January 31, 2014 I don't know that this is the best solution but may be a good work around for now. themes/yourtheme/authentication.tpl create back up now edit this file themes/yourtheme/authentication.tpl Find this line: {elseif $field_name eq "Country:name" || $field_name eq "country"} change to {elseif $field_name eq "Country:name"} This should solve front office display. Note: Country:name is for 1.5. This does not resolve more complex reason of why it is passing both. Are you using a retrofitted 1.4 template for your upgraded 1.5 shop? Thank you El Patron I've done something like that but i've choose Country only. I was not very satisfied because it seems that the array sometimes has country and other has country:name, that's why we have the two options Meanwhile after some investigation Eureka: That was the table adress_format that was not allright I think that i could configure on the BO, but i've simply copied a good one from the other database and ... That's it Thank'you for your help and i hope i've help someone too 1 Link to comment Share on other sites More sharing options...
Recommended Posts