I want Tax/VAT number in my custom form field. how to get this number in my custom module and if i m change this number than how to save Tax/VAT number please give me suggestion

1 Answer 1


Using this you can get Tax/VAT number

$customer = Mage::getModel('customer/customer')->load($customerId);
$vatNumber = $customer->getData('taxvat');

Save Tax/VAT number like this

$vatId = Mage::getModel('customer/customer')->load($customerId);
$vatId->setTaxvat($data["vat_tin_no"]); //vat_tin_no" is form field name

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.