Title: Postcode with a dash
Last modified: December 1, 2016

---

# Postcode with a dash

 *  Resolved [cokolwiekbartosz](https://wordpress.org/support/users/cokolwiekbartosz/)
 * (@cokolwiekbartosz)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/postcode-with-a-dash/)
 * Hi there, I’m using it for Polish invoices and in Poland we’re using 5 digit 
   postcode with a dash “-” after first two digits, so it’s like 12-345. On my website
   I’m selling only to polish customers so… I need that dash so hard, instead of
   current 12345 format at generated invoice – how can I change the format of postcode
   before the invoice will be generated from 12345 to 12-345?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * (@baaaaas)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/postcode-with-a-dash/#post-8506543)
 * You will need to create a custom template and customize the billing and/or shipping
   addresses. Check FAQ for custom template.
 * You can get all data individually like below examples:
    `$this->order->billing_postcode``
   $this->order->shipping_postcode`
 * To place a `-` on second position in string use:
    `<?php echo substr_replace(
   $this->order->billing_postcode, '-', 2, 0); ?>`
 * For all properties check [WooCommerce doc](https://docs.woocommerce.com/wc-apidocs/source-class-WC_Abstract_Order.html#20).
 * If you would like me to help you out with the complete template, just shoot me
   an [email](http://wcpdfinvoices.com/contact).
    -  This reply was modified 9 years, 6 months ago by [Bas Elbers](https://wordpress.org/support/users/baaaaas/).

Viewing 1 replies (of 1 total)

The topic ‘Postcode with a dash’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices/assets/icon-128x128.png?rev=1128583)
 * [Invoices for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices/reviews/)

## Tags

 * [dash](https://wordpress.org/support/topic-tag/dash/)
 * [Poland](https://wordpress.org/support/topic-tag/poland/)
 * [postcode](https://wordpress.org/support/topic-tag/postcode/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bas Elbers](https://wordpress.org/support/users/baaaaas/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/postcode-with-a-dash/#post-8506543)
 * Status: resolved