自定义客户属性可能影响客户登录

时间:2014-05-19 11:46:04

标签: magento magento-1.7

我在Magento 1.7中的Customer对象上使用了以下自定义属性,由于某种原因,它创建了相应的列,我无法再登录到Magento站点的前端(后端工作正常)

当我尝试登录时,它基本上会重定向回页面,但我没有登录

任何人都可以建议在以下安装程序脚本中阻止我登录该网站吗?

$installer->addAttribute("customer", "organisation_id",  array(
    "type"     => "int",
    "backend"  => "",
    "label"    => "Organisation ID",
    "input"    => "int",
    "source"   => "",
    "visible"  => false,
    "required" => false,
    "default" => "",
    "frontend" => "",
    "unique"     => false,
    "note"       => ""
));


$installer->addAttribute("customer", "is_school",  array(
    "type"     => "tinyint",
    "backend"  => "",
    "label"    => "Is School?",
    "input"    => "int",
    "source"   => "",
    "visible"  => false,
    "required" => false,
    "default" => "",
    "frontend" => "",
    "unique"     => false,
    "note"       => ""
));

$installer->addAttribute("customer", "organisation_name",  array(
    "type"     => "varchar",
    "backend"  => "",
    "label"    => "Organisation Name",
    "input"    => "text",
    "source"   => "",
    "visible"  => false,
    "required" => false,
    "default" => "",
    "frontend" => "",
    "unique"     => false,
    "note"       => ""
));

0 个答案:

没有答案