dintchev New Member Apr 18, 2019 #1 Hello members! Is it possible at backend? To make "PHONE" field at Customer Registration Page - required ? Thank you very much in advance
Hello members! Is it possible at backend? To make "PHONE" field at Customer Registration Page - required ? Thank you very much in advance
L laurentiu Well-Known Member Staff member Support Staff MailWizz 2.0 Tester Apr 19, 2019 #2 @dintchev - create init-custom.php file in apps folder and insert this code: PHP: <?php Yii::app()->hooks->addFilter('customer_model_customer_rules', function($rules){ $rules[] = array('phone', 'required'); return $rules; });
@dintchev - create init-custom.php file in apps folder and insert this code: PHP: <?php Yii::app()->hooks->addFilter('customer_model_customer_rules', function($rules){ $rules[] = array('phone', 'required'); return $rules; });
dintchev New Member Apr 19, 2019 #3 laurentiu said: @dintchev - create init-custom.php file in apps folder and insert this code: PHP: <?php Yii::app()->hooks->addFilter('customer_model_customer_rules', function($rules){ $rules[] = array('phone', 'required'); return $rules; }); Click to expand... Hey, laurentiu - thank you a lot! I made it so now it is working
laurentiu said: @dintchev - create init-custom.php file in apps folder and insert this code: PHP: <?php Yii::app()->hooks->addFilter('customer_model_customer_rules', function($rules){ $rules[] = array('phone', 'required'); return $rules; }); Click to expand... Hey, laurentiu - thank you a lot! I made it so now it is working