Skip to content

Commit

Permalink
fix split name
Browse files Browse the repository at this point in the history
  • Loading branch information
benyrfg committed Oct 18, 2023
1 parent 88655e9 commit 7fd08b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ Subscribe users during registration on the website.

### How to add subscribe checkbox to the registration form
Follow this instructions if you choose **opt-in** mode
- create a user custom field type *checkbox* (Users->Fields->New)
- add a checkbox text you wish and value, value **__must be exact "subscribe"__**
- create a user custom field type *checkboxes* (Users->Fields->New)
- in the field *Checkbox values* click on the plus button
- fill the text and value fields, value **__must be exact "subscribe"__**

Example:

Expand Down
2 changes: 1 addition & 1 deletion ecomail.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function onUserAfterSave($user, $isnew, $success, $msg)
if($fullName['firstName'] != ""){
$params["subscriber_data"]["name"] = $fullName['firstName'];
}
if($fullName['lastName'] != ""){
if($fullName['surname'] != ""){
$params["subscriber_data"]["surname"] = $fullName['surname'];
}
}
Expand Down

0 comments on commit 7fd08b7

Please sign in to comment.