我在查詢字符串像一個生日:通過代碼手動添加生日到客戶帳戶的詳細信息?
?birthdate=1991-01-01
和我的代碼如下:
$customer->setWebsiteId(Mage::app()->getWebsite()->getId());
$customer->loadByEmail($email);
if (!$customer->getId()) {
$customer->setEmail($email);
$customer->setFirstname($name);
$customer->setLastname($lastname);
$customer->setPassword($password);
$customer->setGender(
Mage::getResourceModel('customer/customer')
->getAttribute('gender')
->getSource()
->getOptionId($gender)
);
}
同樣的方式,我想這樣的:
$customer->setBirthday($date);
任何解決方案?
只要你有一個對象,你不知道嘗試$ obj-> getData()或$ obj-> debug()這將提供更多的細節。 – oscprofessionals 2013-02-28 03:24:53
謝謝薩蒂什,我會嘗試。 – LuFFy 2013-02-28 13:15:25