How to transforme a required field into a non required one in order form ?

Orlando123

Avatar: Orlando123

2017-09-18 00:02

Hy
How to transforme a required field into a non required one in order form ?
I want to clone some fields in order form and make some of them non required
I can make this in version v3.3 but version v6.7 seems to be much heavy to edit
Somebody can help me?

» Quick.Cart v6.x

Tank33

Avatar: Tank33

2017-09-21 17:32

Did You remove data-form-check="required" form input ??

Orlando123

Avatar: Orlando123

2017-10-18 22:48

Thank you for your help . Your answer inspired me. I went to core - orders.php and I find this :

if(
checkFormFields( $aForm, Array( 'sFirstName' => true, 'sLastName' => true, 'sStreet' => true, 'sZipCode' => true, 'sCity' => true, 'sPhone' => true, 'sEmail' => Array( 'email' ), 'sComment' => Array( 'textarea', false ) ), true )
&& isset( $sPrice )
&& ( ( isset( $aForm['iRules'] ) && isset( $aForm['iRulesAccept'] ) ) || !isset( $aForm['iRules'] ) )
){
return true;

I erased 'sStreet' => true, because I want to make street non required , then the erase of street produced two error messages in 2 files , I solved the errors then i edited another 4 files and the problem is solved.

Back to top
about us | contact