因此,在我们的新客户注册页面上,我们为希望接收我们的时事通讯的人设置了一个复选框。
你可以在这里看到:http: //screencast.com/t/B2PUrelvnm1X
唯一的问题是我们将 GetResponse 用于我们的时事通讯。无论如何,如果用户选中该复选框,它们将被添加到 GetResponse 而不是 Magento 内置通讯系统的后端?
到目前为止,我们只是手动导入它们,但如果能简化/自动化它会很好。
谢谢!
因此,在我们的新客户注册页面上,我们为希望接收我们的时事通讯的人设置了一个复选框。
你可以在这里看到:http: //screencast.com/t/B2PUrelvnm1X
唯一的问题是我们将 GetResponse 用于我们的时事通讯。无论如何,如果用户选中该复选框,它们将被添加到 GetResponse 而不是 Magento 内置通讯系统的后端?
到目前为止,我们只是手动导入它们,但如果能简化/自动化它会很好。
谢谢!
You can observe the event <customer_register_success>.
See here how to create an observer..
Now, your method that observes the event should look something like this:
public function checksubscription($observer) {
$customer = $observer->getCustomer();
if ($customer->getIsSubscribed()) {
//if the customer subscribed to the newseltter send it to GetResponse
//sorry but I don't know how the GetResponse API works.
}
}