Make a change in order form field

asali

No avatar

2008-11-23 12:41

Hi,

I would like to change the field "company" to a field that takes a number combination. The combination is 10 digits, no more no less.
The field should not be mandatory.
How do I change this?

Thanks in advance!

/asali

» Quick.Cart v2.x

asali

No avatar

2008-11-23 13:19

Ok. I managed to change the name of the field in the language file in the folder "lang".
But I don't get the rest of the problem. How do I make the field only to accept 10 digits?

/asali

asali

No avatar

2008-11-23 13:27

found the problem!
In templates/order_delivery I made a change in:

<input type="text" name="sCompanyName" value="$aData[sCompanyName]" class="input" maxlength="100" onblur="saveUserData( this.name, this.value )" />


I changed it to:

<input type="text" name="sCompanyName" value="$aData[sCompanyName]" class="input" maxlength="100" onblur="saveUserData( this.name, this.value )" />



Now it isnt possible to enter more than 10 digits. But if someone started to write in the field I don't want it to accept any less than 10 digits. is that possible to do?

/asali

asali

No avatar

2008-11-23 13:28

ops. I changed maxlength to "10" instead of "100".

/asali

Back to top
about us | contact