cancel
Showing results for 
Search instead for 
Did you mean: 

billing taxvat from order

billing taxvat from order

Hi all,

 

I did write an Observer, after an order is placed I have to call a web service with all the data from the order. So everything is fine until now except if the customer chooses a new billing address instead of using the default one: in this case, in the same way I get the telephone:

 

$order->getBillingAddress()->getTelephone()

which works perfectly, I try to get the VAT:

 

$order->getBillingAddress()->getTaxvat()

which doesn't work at all. I also tried:

 

$order->getBillingAddress()->getData('taxvat')

with the same result. This is weird to me because the name of the telephone field, for example, is billing[telephone], and the vat's field is billing[taxvat], so I expected that to work.

Any hint?

 

Thanks a lot

1 REPLY

Re: billing taxvat from order

I do the same thing I'm asking too much to post the code?