I have to add a custom field called "Mobile number" in Customer registration page and checkout registration the code working perfectly in customer registration but in checkout registration the value is not save i struggle on this for a month can any one help me

here is my config.xml

 <?xml version="1.0"?>

and my sql setup code

$installer = $this;

$installer->addAttribute("customer", "mobile_reg",  array(
    "type"     => "varchar",
    "backend"  => "",
    "label"    => "Mobile Number",
    "input"    => "text",
    "source"   => "",
    "visible"  => true,
    "required" => true,
    "default" => "",
    "frontend" => "",
    "unique"     => false,
    "note"       => ""


        $attribute   = Mage::getSingleton("eav/config")->getAttribute("customer", "mobile_reg");


        $attribute->setData("used_in_forms", $used_in_forms)
        ->setData("is_used_for_customer_segment", true)
        ->setData("is_system", 0)
        ->setData("is_user_defined", 1)
        ->setData("is_visible", 1)
        ->setData("sort_order", 100)

  • Please add to your mobile number in your checkout session. customer register working from customer session. but checkout customer billing and shipping are stored in checkout session. – Rama Chandran M Jun 12 '17 at 12:43
  • @ Rama Chandran how can i add this? – amith lal Jun 13 '17 at 4:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.