Question

I'm studying the Magento process to pick the value from vat_id field and would like to ask you some questions to which I could not find an answer:

  • In the function public function getCustomerGroupIdBasedOnVatNumber($customerCountryCode, $vatValidationResult, $store = null) That is present in data.php, where are defined $customerCountryCode and $vatValidationResult? Where is Their origin?

  • How works Magento for take the value of the field "vat_id"?

Thanks for any help guys

Was it helpful?

Solution

getCustomerGroupIdBasedOnVatNumber() This function is defined in Mage/Customer/Helper/Data.php. And this function is called from below files, so you can check depending upon your need:

1) Mage/Sales/Model.Observer.php

2) Mage/Customer/Model/Observer.php

3)Mage/Adminhtml/controllers/Customer/System/Config/ValidatevatController.php

Hope this will help you.. :)

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top