Skip to content

Commit

Permalink
Update ContactInformationTrait.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Feb 17, 2022
1 parent 5f18075 commit 6005147
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -58,19 +58,19 @@ private function _validateContactInformation($inputData = [])
$rules = [];

if (get_option('shop_require_first_name', 'website') == 1) {
$rules['first_name'] = 'required|max:1000';
$rules['first_name'] = 'required|max:500';
}

if (get_option('shop_require_last_name', 'website') == 1) {
$rules['last_name'] = 'required|max:1000';
$rules['last_name'] = 'required|max:500';
}

if (get_option('shop_require_email', 'website') == 1) {
$rules['email'] = 'required|email|max:1000';
$rules['email'] = 'required|email|max:500';
}

if (get_option('shop_require_phone', 'website') == 1) {
$rules['phone'] = 'required|max:1000';
$rules['phone'] = 'required|max:500';
}

// $rules['phone-testing'] = 'required';
Expand Down

0 comments on commit 6005147

Please sign in to comment.