Commit Graph

91 Commits

Author SHA1 Message Date
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
Bryce 3fd7997413 Move locale to new method in BACS gateway 2014-11-24 21:26:33 +07:00
Bryce 7abd1358fc Fix whitespace 2014-11-21 16:13:03 +07:00
Bryce 6dad8fdc59 #6026 - Introduction of Sort Code 'locale' for BACS
In the admin, it will use the store’s base country to determine the
term for ‘Sort Code’.

In the front-end, it will use the customer’s billing country to
determine the term for ‘Sort Code’.

In all cases, if a locale does not have a sortcode label set, it will
use ‘Sort Code’.

**Locales have been added for:**
* AU
* CA
* IE
* IN
* IT
* NZ
* SE
* US
* GB
* ZA

But may need adjusting based on user feedback.
2014-11-21 16:10:12 +07:00
claudiosmweb 8eeb6fc204 Removed more some unused code 2014-11-19 22:43:09 -02:00
Mike Jolley 3ccd54f268 English version of Taiwan address format
Closes #6651
2014-11-12 15:28:33 +00:00
Vachan Kudmule 755d065107 Added Address Format for India
In India the Postcode is at the city level, thus updated the file in accordance with the Indian Standard of Address Formatting.
@line#382: Hyphenated Postcode to the City Name & State then Country.
REF: 
1) I am an Indian Citizen myself
2) http://en.wikipedia.org/wiki/Address_(geography)#India
3) http://www.addressdoctor.com/en/countries-data/address-formats.html#fbid=Bv4FMyXjoPh
4) http://www.bitboost.com/ref/international-address-formats/india/
2014-10-27 18:12:51 +05:30
Mike Jolley d68cab0eec In the US address format, use state code rather than the full state name. 2014-10-13 18:28:38 +01:00
Mike Jolley 229d9135ef Prevent errors when country field is disabled
Fixes #6336
2014-09-22 13:23:31 +01:00
Mike Jolley 509c10f7e5 Removed postcode for Bahamas.
Fixes #6223
2014-09-11 14:26:22 +01:00
Mike Jolley c4ef86d44e scrutinizer patches 2014-09-08 00:37:55 +01:00
James Collins 1288a45eeb Add Australian checkout locale
Town / City -> Suburb
State / Country -> State
Postcode / Zip -> Postcode
2014-08-14 12:07:41 +08:00
Shohei Tanaka 7c10c4442e Correct the order of Japanese address fields
The order was incorrect. Changing the order of the input address field.
2014-07-01 16:52:45 +09:00
Shohei Tanaka 19b5d8073e Update class-wc-countries.php for Japanese State
I don't use the word of Province for the largest administrative divisions of Japan, like the state in USA.
Sometimes I use the word of State for 都道府県. But I search some site, It seems to say that "Prefecture"
 is formally. Perhaps Prefecture is best.

Please check following site.
1. One of Most Popular Japanese to English dictionary site:
http://ejje.weblio.jp/content/%E9%83%BD%E9%81%93%E5%BA%9C%E7%9C%8C

2. Official Japanese law Translation site(Please click 都道府県)
http://www.japaneselawtranslation.go.jp/dict/list?re=02&ft=1&dn=1&ky=%E9%83%BD%E9%81%93%E5%BA%9C%E7%9C%8C&x=63&y=8&co=1
2014-06-24 19:00:03 +09:00