Commit Graph

35 Commits

Author SHA1 Message Date
Mike Jolley 35a01fd06a Update select placeholders on locale change 2019-01-15 15:50:55 +00:00
Mike Jolley f6fe8d1abc Priority should use integers
#22227
2019-01-14 14:58:00 +00:00
Mike Jolley 3922d186e0 trigger event when ready (wc_address_i18n_ready) 2019-01-14 14:44:14 +00:00
Gerhard ba90c531c7 Remove the change trigger as that is causing other issues as per ##20640 2018-10-31 07:29:35 +02:00
Gerhard c0acd73d31 Trigger a country select on page load to ensure the address-i18n is fired on first page load. 2018-10-29 13:39:54 +02:00
Ewout Fernhout 292be93403
Update address-i18n.js
fixes #20194
2018-05-24 14:37:21 +02:00
Mike Jolley 3a6c3e002b Add option to choose if the checkout marks either required or optional fields, and style these options. 2018-04-05 14:12:59 +01:00
Peter Fabian 80dc183880 Use nbsp to separate * denoting required fields. 2018-04-04 16:45:40 +02:00
Mike Jolley 4e4ca2145f Remove logging 2017-10-27 13:30:55 +01:00
Mike Jolley 538bbac3ec Handle defaults + locale without clearing defaults
Rather than loop defaults, then loop locale fields, this merges both
and applies rules after this.

To test, switch countries on the checkout and ensure fields are marked
required/hidden/labelled correctly.

Closes #17353
2017-10-27 13:29:23 +01:00
claudiulodro b757f0db28 Fix #16868 on Cart page 2017-09-22 14:22:53 -07:00
claudiulodro 877a8491ad Cleanup 2017-09-22 14:14:00 -07:00
claudiulodro b3f70bb7b5 Make labels work on Cart page again 2017-09-22 12:31:08 -07:00
Mike Jolley eb3396328b Apply default locale before country locale 2017-09-20 16:03:26 +01:00
claudiulodro a3c876a2ef Extra i18n address handling for cart page compatibility 2017-09-06 12:42:12 -07:00
Mike Jolley 3b6e7d9d14 Address field sorting was not working due to wrong data name
Fixes #14533
2017-04-19 16:33:32 +01:00
Mike Jolley 31b10d861e Add wrappers around sortable checkout fields
Fixes #13432
Fixes #13434
2017-03-02 15:08:02 +00:00
JeroenSormani 8abd814212 Fix #13432 - Order notes field not showing by default (hidden under 'ship to different address') 2017-03-02 15:23:03 +01:00
Mike Jolley df967f912a More spaces and min 2016-12-14 19:32:01 +00:00
Mike Jolley 0531bd72ea Spaces 2016-12-14 19:31:26 +00:00
Mike Jolley 852db2bfb6 spacing 2016-12-13 18:49:56 +00:00
Mike Jolley d32797b733 Handle BW compat priority. 2016-12-13 18:48:39 +00:00
Mike Jolley 74f3972e26 Add sort parameter to checkout fields to aid with sorting per locale. 2016-12-12 15:23:28 +00:00
Mike Jolley 6ac4201b01 Make state label revert after change
Fixes #11014
2016-06-01 11:22:55 +01:00
Mike Jolley 6f04ff1fa0 Replace size with length
Fixes #10444
2016-03-01 13:08:25 +00:00
Mike Jolley 1971bd448a [2.4] Fix locale switching for city field
Fixes #9237
2015-10-01 13:24:53 +02:00
Mike Jolley f2d4a47da1 Add required postcode marker after label replace
Fixes #8857
2015-08-17 13:35:17 +01:00
Claudio Sanches f8dfc64db7 Fixed postcode/zip reset in address i18n script, closes #8646 2015-07-24 18:24:33 -03:00
Claudio Sanches 62d879e86c Fixed all jshint errors #4680 2015-07-10 02:13:30 -03:00
James Koster 0d4db4b610 post code before city alignment. closes #8443 2015-07-01 15:13:02 +01:00
Mike Jolley 2e2ec824f0 Set field required class
Fixes #7859
2015-04-10 15:43:39 +01:00
David 40326e388a Ensure script that references global objects safe on pages where global is not enqueued 2014-06-02 16:34:55 +01:00
splashingpixels cbb5a2fb55 address-il8n jshinted and standard coding fixes 2014-03-17 19:51:53 -07:00
toddlahman 13c24b410e Removed (document).ready from jQuery scripts
jQuery(document).ready(function($) { is equivalent to calling
jQuery(function($) {.

http://api.jquery.com/ready/
2014-01-30 18:44:17 -08:00
Mike Jolley 7ddd4d012a Move localisation to address-i18n.js for account page. Closes #4446 2014-01-08 14:38:20 +00:00