Skip to content

Commit

Permalink
fix: fix bug access the abandon cart page
Browse files Browse the repository at this point in the history
  • Loading branch information
HuyPhuc98 committed Aug 28, 2023
1 parent f26d229 commit 7de11b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/EmailMarketing.php
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ public function getCustomerName(Quote $quote)
if ($customer && $customer->getId()) {
$customerName = trim($customer->getFirstname() . ' ' . $customer->getLastname());
} else {
$customerName = explode('@', $quote->getCustomerEmail())[0];
$customerName = explode('@', $quote->getCustomerEmail() ?: '')[0];
}
}

Expand Down

0 comments on commit 7de11b6

Please sign in to comment.