How to get billing details on checkout page?
-
Hi,
How can I access the billing details entered by a customer?
If I print $woocommerce->customer. I get the following output:
WC_Customer Object ( [_data:protected] => Array ( [country] => BE [state] => [postcode] => 5555 [city] => dummy [address] => dummy 100 [address_2] => [shipping_country] => BE [shipping_state] => [shipping_postcode] => dummy [shipping_city] => dummy [shipping_address] => dummy 00 [shipping_address_2] => [is_vat_exempt] => [calculated_shipping] => ) [_changed:WC_Customer:private] => 1 )
It just shows the shipping details, but I was wondering if it was possible to also get the customers name, e-mail, phone number & company name?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to get billing details on checkout page?’ is closed to new replies.