English 中文(简体)
Magento: 登记客户也需要通讯双选择上网
原标题:Magento: Newsletter double opt-in also needed for registered customers

我成功地设立了客人通讯订阅费,这样,如果是通讯的客人签名,他就会收到通讯确认要求电子邮件,他必须点击确认链接。 在德国这里的每一份法律通讯都需要“双重选择权”。

问题在于已经登记的客户:他们可以在其账户中订阅通讯,但这里没有双重选择。 因此,在核对签名之后,他们立即在未收到确认要求电子邮件的情况下订阅通讯。

我只找到了老的理论,说明如何改变这一方向,使注册客户的选入率翻一番,但这些理论与我目前版本的Magento(1.5)相比没有作用。

因此,我如何改变<编码>应用/编码/核心/Mage/Newsletter/Model/Subuser.php的功能,以促成这种行为?

最佳回答

如果它们有与1.6相同的法典(或至少非常相似),那么你就应当能够在<条码>上对我说的是第291条。

$isOwnSubscribes = ($customerSession->isLoggedIn() && $ownerId == $customerSession->getId());

And it will mark the subscription as "not active" rather than immediately "subscribed". For reference, here s that chunk of code:

// if user subscribes own login email - confirmation is not needed
$ownerId = Mage::getModel( customer/customer )
     ->setWebsiteId(Mage::app()->getStore()->getWebsiteId())
     ->loadByEmail($email)
     ->getId();
 $isOwnSubscribes = ($customerSession->isLoggedIn() && $ownerId == $customerSession->getId());
 if ($isOwnSubscribes == true){
      $this->setStatus(self::STATUS_SUBSCRIBED);
 }
 else {
      $this->setStatus(self::STATUS_NOT_ACTIVE);
 }

更不用说,它制定了<条码>(sisOwn Subregs 国旗至false,因此,这只会让它继续不实。 您也可发表以下声明:$ Owner Id 装载,因为只有部分用于检查用户是否自行发送电子邮件。

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签