1
Magento ver。 1.7.0.2創建帳戶 - 即使當給定值時也需要姓氏
創建帳戶(/ customer/account/create)時出現錯誤「姓氏不能爲空」。即使我輸入了姓氏。
在控制器...
/app/code/core/Mage/Customer/controllers/AccountController.php
..我加入在線的var_dump()277(createPostAction)
// die(var_dump($_POST));
// result
array(7) {
["success_url"]=> string(0) ""
["error_url"]=> string(0) ""
["firstname"]=> string(3) "Jon"
["lastname"]=> string(8) "Chambers"
["email"]=> string(21) "[email protected]"
["password"]=> string(8) "password"
["confirmation"]=> string(8) "password"
}
「姓氏」在$ _POST中傳遞,但它不會被添加到$ customerData中。
// die(var_dump($customerData));
// Result
array(2) {
["firstname"]=> string(3) "Jon"
["email"]=> string(21) "[email protected]"
}
有沒有人遇到過這種情況,或知道它的解決方法?
謝謝。
編輯:
這是一條漫長的道路......感謝殺手Birden誰得到我在正確的方向開始。 從那裏我看到姓氏沒有在任何輸入中註冊(創建帳戶,客戶信息等)。
我結束了所有[database]_customer_...
表。 這讓我回到了正軌,這一切都工作,唷!
謝謝Slayer,解釋就在上面。 – jchambers 2013-05-08 20:37:10