向magento中的特定客户群发送帐户确认电子邮件 如何向magento中的特定客户群发送帐户确认电子邮件
我只想向特定的客户群发送确认电子邮件。请在这个问题上任何人都能帮忙 在注册或创建新帐户期间,我已使用以下链接保存客户组:-向magento中的特定客户群发送帐户确认电子邮件 如何向magento中的特定客户群发送帐户确认电子邮件,magento,Magento,我只想向特定的客户群发送确认电子邮件。请在这个问题上任何人都能帮忙 在注册或创建新帐户期间,我已使用以下链接保存客户组:- 创建客户时会发送帐户确认电子邮件。 客户组在创建客户帐户后添加到客户 因此,不可能只向特定的客户群发送确认电子邮件。我认为如果不在magento中进行一些定制,您就无法发送确认电子邮件 试一试 禁用所有电子邮件确认。看 然后为客户保存创建一个观察者。看 检查客户是否为新客户,是否属于正确的组(可能需要检查之前是否收到确认电子邮件) 将base magento发送电子邮件确认
创建客户时会发送帐户确认电子邮件。 客户组在创建客户帐户后添加到客户
因此,不可能只向特定的客户群发送确认电子邮件。我认为如果不在magento中进行一些定制,您就无法发送确认电子邮件 试一试
转到\app\code\core\Mage\Customer\Model\Customer.php 更换 How to send account confirmation email to specific customer group in magento public function isConfirmationRequired() {
if ($this->canSkipConfirmation()) { return false; } if (self::$_isConfirmationRequired === null) { $storeId = $this->getStoreId() ? $this->getStoreId() : null; if($this->getGroupId() == 2) { self::$_isConfirmationRequired = (bool)Mage::getStoreConfig(self::XML_PATH_IS_CONFIRM, $storeId); } }
return self::$_isConfirmationRequired;
}
</pre>
公共功能需要确认()
{
如果($this->canSkipConfirmation()){
返回false;
}
if(self::$\u isConfirmationRequired==null){
$storeId=$this->getStoreId()?$this->getStoreId():null;
self::$\u isConfirmationRequired=(bool)Mage::getStoreConfig(self::XML\u PATH\u IS\u CONFIRM,$storeId);
}
返回self::$\u需要确认;
}
与:
public function isConfirmationRequired()
{if ($this->canSkipConfirmation()) { return false; } if (self::$_isConfirmationRequired === null) { $storeId = $this->getStoreId() ? $this->getStoreId() : null; if($this->getGroupId() == 2) { self::$_isConfirmationRequired = (bool)Mage::getStoreConfig(self::XML_PATH_IS_CONFIRM, $storeId); } }
return self::$_isConfirmationRequired;
}
</pre>
公共功能需要确认()
{如果($this->canSkipConfirmation()){ 返回false; } if(self::$\u isConfirmationRequired==null){ $storeId=$this->getStoreId()?$this->getStoreId():null; 如果($this->getGroupId()==2){ self::$\u isConfirmationRequired=(bool)Mage::getStoreConfig(self::XML\u PATH\u IS\u CONFIRM,$storeId); } }
返回self::$\u需要确认;
}
其中2是批发组Id。如何在Magento 2中管理相同的Id