Commit Graph

104 Commits

Author SHA1 Message Date
JLuis Freitas 5a0f0cf5b4 add PT (Portugal) address format
add $postcode_before_city format to portuguese addresses
2016-08-16 17:10:09 +01:00
Mike Jolley 730019ef18 scrutinizer best practice 2016-06-06 19:39:23 +01:00
Scrutinizer Auto-Fixer 7cef8ae4c9 Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
2016-06-06 16:50:18 +00:00
kreamweb 0a2c0af5ff Add check of $raw_countries before the foreach in WC_Countries 2016-05-14 11:02:05 +02:00
Matheus Lopes f0c26b7439 Refatoring main code 2016-04-28 13:37:30 -03:00
Matheus Lopes 2c191f5bb7 Enable countries exceptions to Billing and Shipping 2016-04-20 14:55:05 -03:00
Mike Jolley 3112c76939 Made postcode non required for ireland
Closes #10663
2016-04-18 11:41:24 +01:00
Caleb Burks c11c0cb51b Add NZ locale labels 2016-04-12 22:39:04 -05:00
Mike Jolley ac122f13b9 Add context to checkout error messages
Closes #10540
2016-03-14 11:54:16 +00:00
Mike Jolley 352184cc06 Merge branch 'master' into shipping-zones
# Conflicts:
#	assets/css/admin.css
#	i18n/languages/woocommerce.pot
#	includes/abstracts/abstract-wc-payment-gateway.php
#	includes/abstracts/abstract-wc-shipping-method.php
#	includes/admin/settings/class-wc-settings-shipping.php
#	includes/wc-core-functions.php
#	uninstall.php
2016-02-05 14:58:48 +00:00
Mike Jolley 8d0591d7c6 [2.5] Prevent notice in get_allowed_countries 2016-02-01 12:04:34 +00:00
Mike Jolley a2fbfec5bf [2.5] Show user country rather than base country in "estimated for" messages
#10148
2016-01-25 10:16:39 +00:00
Jon Koops 7e750716e3 Added autocomplete attributes for checkout fields
This allows browsers to automatically fill in the appropriate fields
for the checkout process. This should significantly improve the
checkout experience for a lot of users, especially those that
frequently shop online in different shops.

The following fields now have proper autocomplete attributes:
 - First name
 - Last name
 - Company name
 - County
 - Address line 1 (Street name)
 - Address line 2 (Apartment, suite, unit etc.)
 - City
 - State / Country
 - Postcode / ZIP
 - Email address
 - Phone number

For more information about how autocomplete can improve user
experience: https://developers.google.com/web/updates/2015/06/checkout-faster-with-a
utofill
A complete overview can be found in the WHATWGHTML specification: https://html.spec.whatwg.org/multipage/forms.html#autofill
2016-01-11 22:55:38 +01:00
Mike Jolley 1076854608 Merge branch 'master' into shipping-zones
# Conflicts:
#	assets/css/admin.css
#	includes/abstracts/abstract-wc-shipping-method.php
#	includes/class-wc-shipping.php
#	includes/shipping/flat-rate/class-wc-shipping-flat-rate.php
#	includes/shipping/flat-rate/includes/class-wc-eval-math.php
#	includes/shipping/free-shipping/class-wc-shipping-free-shipping.php
#
includes/shipping/legacy-international-delivery/class-wc-shipping-legacy
-international-delivery.php
#
includes/shipping/legacy-local-delivery/class-wc-shipping-legacy-local-d
elivery.php
2016-01-11 11:48:18 +00:00
Fredrik Forsmo 0f0d40ceff Improve docblock comments WC_Countries class
* Added comment to `get_allowed_country_states` and
`get_shipping_country_states`
* Added missing param tags to `country_dropdown_options`
* Fixed param tag for `trim_formatted_address_line`
2016-01-06 15:51:58 +01:00
Mike Jolley ea84096b69 Remove inconsistent usage of placeholders
State field has no placeholder, yet some fields had a duplicate of the
label. This removes those placeholders so all fields remain consistent.
cc @claudiosmweb @jameskoster Also removes commented out code.
2016-01-06 12:22:01 +00:00
Mike Jolley a0e0bb1e55 Load instance methods for calculations 2015-12-15 15:00:45 +00:00
Mike Jolley 091a8a7641 Zone matching functions 2015-12-15 12:39:52 +00:00
Mike Jolley 485a127778 get_continents 2015-12-08 11:15:02 +00:00
Coen Jacobs bae582e3ff End function requires variable to prevent strict standards errors
Just a temporary variable that is only used to pass an actual variable
to the PHP end function (as that takes a reference as argument). This
prevents strict standard errors.
2015-12-07 08:10:19 +01:00
roykho 9078e30ea4 Fix acronym zip to be all capitals fixes #9641 2015-11-18 15:32:23 -08:00
Mike Jolley aeb48e35a7 [2.4] Removes Switzerland from VAT definition
Confirmed outside of EU and not applicable to things such as EU VAT
@hussong
2015-11-16 16:00:51 +00:00
Maxwell Morgan da6eeebf81 Update class-wc-countries.php
Typo on ether -> either
2015-11-10 11:51:26 -05:00
Nicola Mustone c9da4f928a check if ABSPATH is defined 2015-11-06 10:22:19 +01:00
Shiva Poudel 8300192bf7 Zone and postal code updated 2015-11-05 23:25:30 +05:45
Shiva Poudel a1550fab77 Updated Nepal local settings 2015-11-05 23:06:15 +05:45
Claudio Sanches 5893875b0c Removed period for file headers 2015-11-03 11:53:50 -02:00
Claudio Sanches ee30b5b308 Fixed php docs standards 2015-11-03 11:31:20 -02:00
Mike Jolley 66c0d8f009 Swiss
Fixes #9001
2015-09-01 13:50:14 +01:00
Claudio Sanches d976cd8340 Disabled states for AX, closes #8594 2015-07-17 16:29:21 -03:00
Claudio Sanches 9e41552342 Removed all "@return void" 2015-07-16 16:55:48 -03:00
Mike Jolley 9843608cd4 Move country field with other address fields
Closes #8263
2015-06-17 10:17:41 +01:00
James Koster 56b1699e14 placeholder. closes #7885 2015-04-09 15:17:59 +01:00
James Koster 944723d7ac tel input #7827 2015-04-01 17:36:58 +01:00
James Koster 33a3940501 email input 2015-03-27 11:49:36 +00:00
Mike Jolley a017ebfff2 [2.3] Chile address format
Closes #7754
2015-03-18 11:35:20 +00:00
James Koster 90a78780be state placeholders. closes #7729 2015-03-16 12:56:22 +00:00
Mike Jolley 66e6366be0 Shipping calculator - Made state/postcode respect country locale like checkout.
Fixes #7637
2015-03-06 12:37:21 +00:00
Claudio Sanches 25944c9086 Fixed the WC_Countries::get_formatted_address() default args
@mikejolley
2015-03-06 00:05:40 -03:00
Mike Jolley 4d8d4310bf Tidyup #7627 2015-03-05 09:20:24 +00:00
Rasmus 13f6e442df Fix missing fields in get_formatted_address
Fixes missing fields in get_formatted_address in WC_Countries so it doesn't throw a notice about undefined variable when argument is missing.
2015-03-04 15:02:35 +01:00
shivapoudel 16047b7808 Added Nepal(NP) country locale used by the checkout 2015-01-19 00:45:19 +05:45
shivapoudel 5ce1e1e8a6 Refactor WC_Countries Class 2015-01-19 00:44:17 +05:45
Bryce f3328ac601 Shows VN postcode field and moves before city
Closes #7094
2015-01-13 10:18:48 +07:00
Hector Tolmo 6f4f289c7e Update class-wc-countries.php
State = Region validate Chile line 667 and postcode null
2015-01-06 22:24:23 -03:00
Mike Jolley 6e5ec55374 Option for get_european_union_countries() to return eu_vat countries 2015-01-05 17:29:01 +00:00
Mike Jolley f847b92a0f Merge branch 'wc-geolocation' 2015-01-05 10:18:25 +00:00
Mike Jolley 395107fc72 MC (monaco) and IM (isle of man, part of UK) also use VAT.
Closes #7013
2015-01-03 16:48:29 +00:00
Mike Jolley 6800ee0ec3 Base vs default 2014-12-23 17:34:05 +00:00
Mike Jolley e6b94e486b Leave postcode before city swapping to JS
Fixes #6842
2014-12-09 09:07:28 +00:00