{"action":"opened","issue":{"url":"https://api.github.com/repos/woocommerce/woocommerce/issues/19328","repository_url":"https://api.github.com/repos/woocommerce/woocommerce","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/19328/labels{/name}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/19328/comments","events_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/19328/events","html_url":"https://github.com/woocommerce/woocommerce/issues/19328","id":303741721,"number":19328,"title":"Checkout doesn't work for UAE customers","user":{"login":"ashishcodeswell","id":14011275,"avatar_url":"https://avatars1.githubusercontent.com/u/14011275?v=4","gravatar_id":"","url":"https://api.github.com/users/ashishcodeswell","html_url":"https://github.com/ashishcodeswell","followers_url":"https://api.github.com/users/ashishcodeswell/followers","following_url":"https://api.github.com/users/ashishcodeswell/following{/other_user}","gists_url":"https://api.github.com/users/ashishcodeswell/gists{/gist_id}","starred_url":"https://api.github.com/users/ashishcodeswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashishcodeswell/subscriptions","organizations_url":"https://api.github.com/users/ashishcodeswell/orgs","repos_url":"https://api.github.com/users/ashishcodeswell/repos","events_url":"https://api.github.com/users/ashishcodeswell/events{/privacy}","received_events_url":"https://api.github.com/users/ashishcodeswell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-09T06:49:23Z","updated_at":"2018-03-09T06:49:23Z","closed_at":null,"author_association":"NONE","body":"Hi Mike,\r\n\r\nI have built an eCommerce site on WooCommerce for a client last year. It is working fine however, there is an issue specifically for United Arab Emirates customers as when they try to checkout they can't proceed or click continue button. Since, there are no postal codes, I thought it was the issue so, I tried to remove validation of Postal Code using a hook i.e. \r\n\r\nadd_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );\r\nfunction custom_override_checkout_fields( $fields ) {\r\n    $fields['billing']['billing_postcode']['required'] = false;\r\n    $fields['shipping']['shipping_postcode']['required'] = false;\r\n    return $fields;\r\n}\r\n\r\nAbove hook didn't made any changes so I added another hook to deregister wc-address-i18n script using this: \r\n\r\nadd_action('wp_enqueue_scripts', 'override_woo_frontend_scripts');\r\nfunction override_woo_frontend_scripts() {\r\n    wp_deregister_script('wc-address-i18n');\r\n}\r\n\r\nIt worked but it raised another issue i.e. \" Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements. \"\r\n\r\nNow, the very important thing when I selected another country without Post Code i.e. Republic of Ireland, it showed me a Postal Code field (optional) and I am able to complete the order. It's completely vice-versa when I select UAE as country. \r\n\r\nSo, my question is when I select United Arab Emirates as  country, why it removes the Postal Code field? If the field is available for UAE as well then I think I can easily complete the checkout process. \r\n\r\nThe fix could be if we can display the Postal Code field under checkout - billing form for UAE customers. Is there a way to enable a Postal Code? \r\n\r\nIs that something you can help me with? I would appreciate your response in this regards. \r\n\r\nBest,\r\nAshish"}}
{"actor":{"display_login":"ashishcodeswell"}}