Title: Postcode is always &#8216;0&#8217;
Last modified: November 8, 2018

---

# Postcode is always ‘0’

 *  Resolved [martinfabl](https://wordpress.org/support/users/martinfabl/)
 * (@martinfabl)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/postcode-is-always-0/)
 * When submiting a none numerical postcode value returned is always ‘0’
 * from looking at gift-voucher-pro.php it appears on line 184 that the column is
   created as an integer field.
 * postcode int(10) NOT NULL,
 * Should this not be a text field?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Codemenschen](https://wordpress.org/support/users/codemenschen/)
 * (@codemenschen)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/postcode-is-always-0/#post-10862527)
 * Hello [@martinfabl](https://wordpress.org/support/users/martinfabl/),
 * Thanks for your feedback.
 * Yes, postcode is a number field right now and also set as not null. So always
   if user don’t enter postcode the value automatically add as 0.
 * You are right that we should change the postcode as text field. We will update
   this field as text field in our next update.
 * _[ [Signature deleted](https://wordpress.org/support/guidelines/#do-not-spam)]_
    -  This reply was modified 6 years, 5 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).

Viewing 1 replies (of 1 total)

The topic ‘Postcode is always ‘0’’ is closed to new replies.

 * ![](https://ps.w.org/gift-voucher/assets/icon-256x256.png?rev=2433083)
 * [Gift Cards (Gift Vouchers and Packages) (WooCommerce Supported)](https://wordpress.org/plugins/gift-voucher/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gift-voucher/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gift-voucher/)
 * [Active Topics](https://wordpress.org/support/plugin/gift-voucher/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gift-voucher/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gift-voucher/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Codemenschen](https://wordpress.org/support/users/codemenschen/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/postcode-is-always-0/#post-10862527)
 * Status: resolved