无法将自定义字段添加到注册表单中进行保存

时间:2012-08-05 13:34:03

标签: magento-1.7

我使用this manual在magento 1.7.0.2上为magento客户注册表添加了两个新字段。

字段似乎可以很好地添加到数据库中,也可以在管理员下看到,但只是没有保存。在客户对象上运行var转储($ this-> getCustomer())不会显示我添加的新属性。

任何人都可以在这里给我一个领先,因为我在圈子里跑

1 个答案:

答案 0 :(得分:3)

您好我找到了解决此问题的方法,请在以下文件中添加db fields collection

app\code\core\Mage\Review\Model\Resource\Review\collection.php on line 104

更改

 array('detail_id', 'title', 'detail', 'nickname', 'customer_id'));

 array('detail_id', 'title', 'detail', 'nickname','pros','cons','city','age', 'customer_id'));