草庐IT

loadByEmail

全部标签

php - 客户模型中 Magento 中的 loadByEmail 和加载方法问题

我尝试在客户/客户模型对象中使用获取实体ID(getEntityId())方法时出现错误。请检查我的波纹管代码。我想使用波纹管的代码。但是显示错误。$customer=Mage::getModel("customer/customer");$customer->setWebsiteId(Mage::app()->getWebsite()->getId());$customer->loadByEmail('email@example.com');//loadcustomerbyemailid虽然波纹管的​​代码工作正常。使用getEntityId()$id=3;$customer=Mag