I will try to explain this
Create an account - Login page
In 1.5.4.
I have these settings (in customer details):
State true
State - Always display as pulldown? true
Set up - now if the zone files DO NOT contain a STATE for the Country that they pick the form displays an "OTHER" box to be filled in with the State "Type a choice below" it says
This is the HTML created
Code:
<input type="text" name="state" value=" " size = "33" maxlength = "32" id="state" />
As you can see that is the issue! So if you fill in that extra field when it get inserted into the database an extra space at the start of the State appears
Whilst not a big issue it is when tying with a sage accounting package as it cannot recognise the State as it starts with a space!
So trying to find where this extra space is coming from (not sure if my set up or a bug)
In looking at includes/templates/my template/templates/tpl_modules_create_account.php but I cannot see where the "other" box appears - it seems to be looking at the code in the JS files as I can see this
Code:
} else {
theForm.zone_id.options[0] = new Option("Type a choice below ...", "");
showStateField(theForm);
}
but I still cannot see where its actually creating the form field
Any ideas of where else I can look ?? Its tough hunting for a space but its throwing out the sage system so NOT finding it is not an option at present
I have looked in the modules/pages/create_account files and not spotting any spaces!
Can some one tell me where that "other" form field is actually created - as I can see the extra space on the website before I type something in! Just not where the HTML code is to create it!
Thank you
Sarah
Bookmarks