cancel
Showing results for 
Search instead for 
Did you mean: 

Custom fields for billing address not visible in Admin

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Custom fields for billing address not visible in Admin

Hi,

I have created custom fields for billing address. Data entered in the these fields during checkout is getting stored in the database successfully. But are not visible in the Admin? In the admin html templates there is a 

$_order->getBillingAddress()

 How can include my custom field to it ?

Thanks

1 REPLY 1

Re: Custom fields for billing address not visible in Admin

Hi @archix007,


I guess you're talking about this method:

 

    /**
     * Retrieve order billing address
     *
     * @return Mage_Sales_Model_Order_Address
     */
    public function getBillingAddress()
    {
        foreach ($this->getAddressesCollection() as $address) {
            if ($address->getAddressType()=='billing' && !$address->isDeleted()) {
                return $address;
            }
        }
        return false;
    }

Is located on app/code/core/Mage/Sales/Model/Order.php, line 952.

You should check that $address has your attributes.