Essentially, I want to be able to do something like the following:

$session = Mage::getSingleton('customer/session');
$customer = $session->getCustomer();

And such as this:

$session = Mage::getSingleton('customer/session');
$customer = $session->getCustomer();        
$response["telephone"] = $customer->getTelephone();     

Without having to add a default billing/shipping address, since the customer will need to enter his mobile number on registration, but not a billing/shipping address.

Is that possible?


1 Answer 1


There are no exit which function which will do it.

  • Need to add an customer attribute to Customer entity type which will save the telephone to customer table. Which will show on customer registration,edit,checkout form.

See how to install an Customer attribute in magento Adding custom attribute to Customer

There it should no relation between billing/shipping telephone.

Also. need more detail checkout at http://excellencemagentoblog.com/blog/2011/10/02/customer-registration-fields-magento1-6/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.