我打开了选项系统 - >配置 - >客户配置 - >需要电子邮件确认 ,现在当用户通过常规表单注册时,他们会收到带有所需帐户确认的电子邮件。 但是现在我需要为Magento API创建的用户做同样的事情。 我设置了这个选项:
$result = $proxy->customerCustomerCreate($sessionId, [ 'email' => 'mycustomemail@gmail.com', 'firstname' => 'testfirstname', 'lastname' => 'testlastname', 'password' => 'testpassword', 'website_id' => 1, 'store_id' => 1, 'group_id' => 4, ]);当我将数据库中的记录与表单和API创建的用户进行比较时,它们完全相同。 我的意思是字段website_id和store_id是相同的。 我该怎么调试这个,或者你可以告诉我如何在Magento的API中实现这个功能?
PS: 系统 - >配置 - >客户配置 - >共享客户帐户设置为全局 。
I turned on the option System -> Configuration -> Customer Configuration -> Require Emails Confirmation and now when users registered by usual form they get the email with required account confirmation. But now I need to do the same for users created by Magento API. I set this options:
$result = $proxy->customerCustomerCreate($sessionId, [ 'email' => 'mycustomemail@gmail.com', 'firstname' => 'testfirstname', 'lastname' => 'testlastname', 'password' => 'testpassword', 'website_id' => 1, 'store_id' => 1, 'group_id' => 4, ]);When I compared records in database for user created by form and API, they were exactly the same. I mean fields website_id and store_id were the same. How can I debug this or maybe you can tell me how to implement this feature into Magento's API?
P.S: System -> Configuration -> Customer Configuration -> Share Customer Accounts is set to Global.
最满意答案
那么,解决方案是覆盖Model Mage / Customer / Model / Customer / Api.php。 更多关于这里 !
Well, the solution is to override Model Mage/Customer/Model/Customer/Api.php. More about that here !
更多推荐
发布评论