Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:microweber/microweber into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Feb 17, 2022
2 parents 9dc9a12 + 5f18075 commit 3aa082b
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';
$rules['first_name'] = 'required|max:1000';
}

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

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

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

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

0 comments on commit 3aa082b

Please sign in to comment.