Skip to content

Commit

Permalink
Merge pull request #10 from mention-me/fix/add-firstname-surname-to-d…
Browse files Browse the repository at this point in the history
…ashboard-tag-INT-1113

Added firstname and surname to dashboard tag
  • Loading branch information
alexoanea authored Oct 13, 2022
2 parents b5c44ba + 92f38c5 commit ae88432
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/code/MentionMe/MentionMe/Model/UrlBuilder/Dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,24 @@ protected function _getParams()
{
return [
'locale' => $this->paramsHelper->getLocale(),
'situation' => self::SITUATION
'situation' => self::SITUATION,
'firstname' => $this->getCustomerFirstname(),
'surname' => $this->getCustomerLastname(),
];
}

private function getCustomerEmail()
{
return $this->paramsHelper->getCurrentCustomer()->getEmail();
}

private function getCustomerFirstName()
{
return $this->paramsHelper->getCurrentCustomer()->getFirstname();
}

private function getCustomerLastName()
{
return $this->paramsHelper->getCurrentCustomer()->getLastname();
}
}

0 comments on commit ae88432

Please sign in to comment.