Skip to content

Commit

Permalink
Merge pull request #407 from mageplaza/2.4-develop
Browse files Browse the repository at this point in the history
2.4 develop
  • Loading branch information
HuyPhuc98 authored Aug 28, 2023
2 parents 1ea31a5 + 28ec660 commit 54dd5e9
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
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
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "mageplaza/module-smtp",
"description": "SMTP Extension for Magento 2 helps the owner of store simply install SMTP (Simple Mail Transfer Protocol) server which transmits the messages into codes or numbers",
"require": {
"mageplaza/module-core": "^1.5.3"
"mageplaza/module-core": "^1.5.4"
},
"type": "magento2-module",
"version": "4.7.7",
"version": "4.7.8",
"license": "proprietary",
"authors": [
{
Expand Down
54 changes: 27 additions & 27 deletions etc/email_templates.xml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
<?xml version="1.0"?>
<!--
/**
* Mageplaza
*
* NOTICE OF LICENSE
*
* This source file is subject to the Mageplaza.com license that is
* available through the world-wide-web at this URL:
* https://www.mageplaza.com/LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Mageplaza
* @package Mageplaza_Smtp
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
* @license https://www.mageplaza.com/LICENSE.txt
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
<template id="mpsmtp_resend_email_template" label="SMTP Resend Email" file="resend_email_template.html" type="html" module="Mageplaza_Smtp" area="frontend"/>
<template id="mpsmtp_test_email_template" label="SMTP Test Email" file="test_email_template.html" type="html" module="Mageplaza_Smtp" area="frontend"/>
<template id="mpsmtp_abandoned_cart_email_template" label="SMTP Abandoned Cart Email" file="abandoned_cart_email_template.html" type="html" module="Mageplaza_Smtp" area="frontend"/>
</config>
<?xml version="1.0"?>
<!--
/**
* Mageplaza
*
* NOTICE OF LICENSE
*
* This source file is subject to the Mageplaza.com license that is
* available through the world-wide-web at this URL:
* https://www.mageplaza.com/LICENSE.txt
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Mageplaza
* @package Mageplaza_Smtp
* @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/)
* @license https://www.mageplaza.com/LICENSE.txt
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
<template id="mpsmtp_resend_email_template" label="SMTP Resend Email" file="resend_email_template.html" type="html" module="Mageplaza_Smtp" area="frontend"/>
<template id="mpsmtp_test_email_template" label="SMTP Test Email" file="test_email_template.html" type="html" module="Mageplaza_Smtp" area="frontend"/>
<template id="mpsmtp_abandoned_cart_email_templates" label="SMTP Abandoned Cart Email" file="abandoned_cart_email_template.html" type="html" module="Mageplaza_Smtp" area="frontend"/>
</config>

0 comments on commit 54dd5e9

Please sign in to comment.