digest2006-02-22 14:40 | How to disable obligation of filling some fields (for example tel. number)? |
2006-02-22 15:00 | function checkOrderFields in "core/orders.php" and few first lines in "templates/orders_delivery.tpl" file there is array like
Array( 'sFirstName' ) ,Array( 'sLastName' ) ,Array( 'sStreet' ) ,Array( 'sZipCode' ) ,Array( 'sCity' ) ,Array( 'sTelephone' ) ,Array( 'sEmail', 'email' ) ,Array( 'iCourier', 'simple', '$lang[Choose_courier]' )
|
digest2006-02-23 08:21 | i've removed telephone line, but in shop is still telephone required! hm... |
digest2006-02-23 08:22 | now it looks like this:
function checkOrderFields( $aForm ){ if( checkLength( $aForm['sFirstName'], 0 ) && checkLength( $aForm['sLastName'], 0 ) && checkLength( $aForm['sStreet'], 0 ) && checkLength( $aForm['sZipCode'], 0 ) && checkLength( $aForm['sCity'], 0 ) && checkEmail( $aForm['sEmail'] ) && checkLength( $aForm['iCourier'], 1 ) ) return true; else return false; |
digest2006-02-28 08:35 | yep, array line in orders_delivery.tpl must be removed... |
2006-02-28 11:10 | for telephone remove just that line with it, like that:
Array( 'sFirstName' ) ,Array( 'sLastName' ) ,Array( 'sStreet' ) ,Array( 'sZipCode' ) ,Array( 'sCity' ) ,Array( 'sEmail', 'email' ) ,Array( 'iCourier', 'simple', '$lang[Choose_courier]' )
|