Skip to content

Commit

Permalink
Update ContactInformationTrait.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Mar 9, 2022
1 parent a15da37 commit b2baab6
Showing 1 changed file with 9 additions and 4 deletions.
Expand Up @@ -36,11 +36,16 @@ public function contactInformation() {

public function contactInformationSave(Request $request) {

$firstName = strip_tags($request->get('first_name'));
$lastName = strip_tags($request->get('last_name'));
$email = strip_tags($request->get('email'));
$phone = strip_tags($request->get('phone'));

session_append_array('checkout_v2', [
'first_name'=> $request->get('first_name'),
'last_name'=> $request->get('last_name'),
'email'=> $request->get('email'),
'phone'=> $request->get('phone')
'first_name'=> $firstName,
'last_name'=> $lastName,
'email'=> $email,
'phone'=> $phone
]);

$validate = $this->_validateContactInformation($request->all());
Expand Down

0 comments on commit b2baab6

Please sign in to comment.