4

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

5

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, privacy policy and cookie policy

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