How to make some fields are not required to be filed

vch

Avatar: vch

2011-12-16 12:57

Hello.
How I can make some fields are not required to be filed in order form?
I would like not delete them, but only make not required for fill.
p.s.
I d`nt find answer in FAQ or searching forum.

» Quick.Cart v4.x

treewood (OpenSolution)

Avatar: treewood

2011-12-16 13:53

edit: templates/orders_form.tpl and delete:

alt="simple"

from those fields you won't to be required.

For example if you don't want to require Phone then change:

<input type="text" name="sPhone" value="$aUser[sPhone]" maxlength="40" class="input" onblur="saveUserData( this.name, this.value )" id="oPhone" alt="simple" />

and change to

<input type="text" name="sPhone" value="$aUser[sPhone]" maxlength="40" class="input" onblur="saveUserData( this.name, this.value )" id="oPhone" />


After edit core/orders.php and find function checkFields() and with example of phone delete this line

&& throwStrLen$aForm['sPhone'] ) > 2

vch

Avatar: vch

2011-12-17 20:14

thank you.

Back to top
about us | contact