Question: I've scanned many posts but cannot get to bottom of this one.
I have created a custom Customer Information attribute and I need it to display on the New Order transactional email.

Any ideas? I have tried `{{var customer.getAccountno()}}` and a few others but it won't display.

My Code:

```
$installer = $this;
$installer->startSetup();

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

    ));

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

$used_in_forms=array();

$used_in_forms[]="adminhtml_customer";
        $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)
        ;
        $attribute->save();

$installer->endSetup();

```

Answer: 
There could be two reasons for this:

1) In the past, whenever you would visit the Magento URL "checkout/cart/add" to automatically add something to cart, the Magento session was not initialized properly. Within MageBridge, the Add To Cart Menu-Item therefore performs a little trick, that first visits a temporary page simply to initialize the Magento session and then redirects to the Magento add-to-cart URL and then redirects to the cart (or whatever redirect you have configured here). This only is an issue in the browser if the browser has no Magento cookie set - so most likely this issue can be replayed by flushing all Joomla / MageBridge / Magento cookies from the browser. However, I don't know if this is really the cause of issues, because it works in fine in all 6 testing sites I've just tested this in.

2) In Magento 1.9, the secret form key (which has already been in some forms for some time) was implemented in numerous other forms. Without the proper form key sent in the POST request, the POST request simply fails and redirects to some other default URL. This also happened for the add-to-cart URL, which means that all Magento URLs with "checkout/cart/add" also need to have an additional parameter "form\_key/XXX" in it. With a Magento page, this link is automatically generated. But if you have a link in a newsletter (or a Joomla page that is not loading Magento yet), this fails. For this specific condition, there is the MageBridge option to disable the Magento form key entirely, but this will also drop security on other forms. Instead, I will build a new feature that automatically fixes this for the add-to-cart URL specifically. This will be implemented in the next MageBridge build (today).

**I hope this will help you.**
There may be some possibilities for occurs this type of problem
1> Session Cookie Lifetime: you can increase it from `system/configuration/General/Web/Session Cookie Management/Cookie Lifetime`.
2> Use of observer: Some time this type of issue occurs due to our magento `observer` so if you are use it then please check by disabled it.