Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #32 from mageplaza/2.3-develop
Browse files Browse the repository at this point in the history
2.3 develop
  • Loading branch information
phamcuongmp authored Jun 11, 2021
2 parents 86fd4cf + 66b04f0 commit 71fecc4
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 34 deletions.
12 changes: 4 additions & 8 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,16 +345,14 @@ public function getEmailTemplate($type, $storeId = null)
/**
* @param $customer
* @param $emailType
*
* @throws NoSuchEntityException
*/
public function emailApprovalAction($customer, $emailType)
{
$storeId = $customer->getStoreId();
$sendTo = $customer->getEmail();
$sender = $this->getSenderCustomer();
$sender = $this->getSenderCustomer($storeId);
if ($this->getAutoApproveConfig()) {
$sender = $this->getConfigValue('customer/create_account/email_identity');
$sender = $this->getConfigValue('customer/create_account/email_identity', $storeId);
}

if ($this->getEmailEnable($emailType)) {
Expand All @@ -365,15 +363,13 @@ public function emailApprovalAction($customer, $emailType)

/**
* @param $customer
*
* @throws NoSuchEntityException
*/
public function emailNotifyAdmin($customer)
{
$storeId = $customer->getStoreId();
$sender = $this->getSenderAdmin();
$sender = $this->getSenderAdmin($storeId);
if ($this->getAutoApproveConfig()) {
$sender = $this->getConfigValue('customer/create_account/email_identity');
$sender = $this->getConfigValue('customer/create_account/email_identity', $storeId);
}
$sendTo = $this->getRecipientsAdmin();
$sendToArray = explode(',', $sendTo);
Expand Down
52 changes: 26 additions & 26 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"name": "mageplaza/module-customer-approval",
"description": "Magento 2 Customer Approval Extension",
"require": {
"mageplaza/module-core": "^1.4.5"
},
"type": "magento2-module",
"version": "1.0.4",
"license": "proprietary",
"authors": [
{
"name": "Mageplaza",
"email": "[email protected]",
"homepage": "https://www.mageplaza.com",
"role": "Technical Support"
}
],
"autoload": {
"files": [
"registration.php"
],
"psr-4": {
"Mageplaza\\CustomerApproval\\": ""
}
}
}
{
"name": "mageplaza/module-customer-approval",
"description": "Magento 2 Customer Approval Extension",
"require": {
"mageplaza/module-core": "^1.4.5"
},
"type": "magento2-module",
"version": "1.0.5",
"license": "proprietary",
"authors": [
{
"name": "Mageplaza",
"email": "[email protected]",
"homepage": "https://www.mageplaza.com",
"role": "Technical Support"
}
],
"autoload": {
"files": [
"registration.php"
],
"psr-4": {
"Mageplaza\\CustomerApproval\\": ""
}
}
}
1 change: 1 addition & 0 deletions etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<module name="Mageplaza_CustomerApproval" setup_version="1.0.2">
<sequence>
<module name="Mageplaza_Core"/>
<module name="Magento_Eav"/>
<module name="Magento_Customer"/>
</sequence>
</module>
Expand Down

0 comments on commit 71fecc4

Please sign in to comment.