Title: format billing address
Last modified: October 23, 2021

---

# format billing address

 *  Resolved [krishs](https://wordpress.org/support/users/krishs/)
 * (@krishs)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/format-billing-address/)
 * Dear team,
 * I’m using this plugin on one of my sites, i’m using customization hooks for the
   invoice, but while displaying the billing address what i’m getting is billing
   name + billing address. I don’t want to display billing name with billing address.
   below i’m adding code which i’m using for displaying billing address. Please 
   help me resolve my query ASAP.
 * `$this->billing_address();`
 * Thanks in advance.
    -  This topic was modified 4 years, 9 months ago by [krishs](https://wordpress.org/support/users/krishs/).

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [alexmigf](https://wordpress.org/support/users/alexmigf/)
 * (@alexmigf)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/format-billing-address/#post-15003151)
 * Hi [@krishs](https://wordpress.org/support/users/krishs/)
 * You could use the default WooCommerce functions using the order object inside
   a [custom PDF template](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/creating-a-custom-pdf-template/):
 *     ```
       $this->order->get_billing_first_name();
       $this->order->get_billing_last_name();
       $this->order->get_billing_company();
       $this->order->get_billing_address_1();
       $this->order->get_billing_address_2();
       $this->order->get_billing_city();
       $this->order->get_billing_state();
       $this->order->get_billing_postcode();
       $this->order->get_billing_country();
       $this->order->get_billing_email();
       $this->order->get_billing_phone();
       $this->order->get_shipping_first_name();
       $this->order->get_shipping_last_name();
       $this->order->get_shipping_company();
       $this->order->get_shipping_address_1();
       $this->order->get_shipping_address_2();
       $this->order->get_shipping_city();
       $this->order->get_shipping_state();
       $this->order->get_shipping_postcode();
       $this->order->get_shipping_country();
       ```
   
 * If you don’t want to mess with code you could [format the address using placeholders](https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/changing-the-address-format/)
   with [Professional extension](https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-professional/).

Viewing 1 replies (of 1 total)

The topic ‘format billing address’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [alexmigf](https://wordpress.org/support/users/alexmigf/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/format-billing-address/#post-15003151)
 * Status: resolved