Shiva Poudel
00cc3711ac
Minor tweaks and JSHint ignore for update notice script
2016-06-06 23:05:10 +05:45
Claudio Sanches
e39274e753
HTTPS for everybody
2016-05-26 22:48:49 -03:00
Mike Jolley
3893d0ec19
Fixes tokenisation form when > 1 are used at once.
...
@claudiosmweb can you give this a check over since it was missed?
2016-05-24 17:52:32 +01:00
Brent Shepherd
aa2b97cb4c
Allow string indexes for shipping packages
2016-05-23 17:34:43 -07:00
Mike Jolley
6f04ff1fa0
Replace size with length
...
Fixes #10444
2016-03-01 13:08:25 +00:00
Justin Shreve
6a8abc9f28
Keep track of terms & conditions state and recheck the box if necessary.
2016-02-10 10:38:39 -08:00
Phil Young
ee54e040df
Chrome autocomplete to update checkout shipping. Closes #9850
...
When using Chrome's autocomplete to alter an address field in the
checkout, the shipping selection in the order review will now update.
Closes #9850 .
2015-12-16 10:02:18 +00:00
Jeff Stieler
e334d75591
Allow plugins to force a reload of the checkout page without an error condition.
2015-12-03 18:20:22 -08:00
Mike Jolley
9f76a61bcd
Extra comments, fix JS Lint issue, and log fixes for debugging purposes.
2015-12-03 10:51:39 +00:00
Max Rice
b50e830b54
[ #9655 ] Recover from malformed JSON checkout response
...
If a plugin or other code produces output during checkout processing,
it breaks the JSON parsing. This commit makes use of jQuery’s Ajax
dataFilter which allow us to sanitize the raw response before it’s
parsed by the Ajax handler.
2015-12-02 17:31:43 -05:00
Mike Jolley
327cf87191
Merge pull request #9728 from woothemes/issue/9727-order-review-payment-method-change-ui
...
Hook up payment method change UI on “Pay for Order” forms.
2015-12-02 10:45:26 +00:00
mitogh
0808bbf1ba
Update variable to use the cached version
2015-11-30 22:12:26 -06:00
Jeff Stieler
8adc422034
Hook up payment method change UI on “Pay for Order” forms.
2015-11-30 11:09:09 -07:00
Mike Jolley
27a7793f00
Min and POT
2015-11-25 18:46:57 +00:00
Mike Jolley
c8ef6902f5
Allow checkout to be updated without posting shipping methods
...
Fixes #9552 @claudiosmweb
2015-11-20 14:51:38 +00:00
Mike Jolley
77054e11fa
Improve appearance when only 1 gateway is active.
...
Closes #8982
2015-10-30 15:23:16 +00:00
Mike Jolley
58b01886c9
Add validation handling for checkboxes
...
@jameskoster set label color red too so this is indicated
Fixes #9464
2015-10-30 13:45:59 +00:00
Claudio Sanches
eedff144e7
Created assets/js/frontend/password-strength-meter.js #9319
2015-10-09 13:31:47 -03:00
nishitlangaliya
f468f16e29
fixes: changes as per suggestion given by claudiosmweb ref #8938
2015-10-09 13:25:47 +05:30
nishitlangaliya
a45ef9f814
fixes: done changes using dom operation. ref #8938
2015-10-08 20:14:53 +05:30
Mike Jolley
34a568aea8
manual update trigger for checkout
...
Closes #9119
2015-10-06 12:40:23 +01:00
Claudio Sanches
79cd558c38
Fixed conflicts
2015-10-01 17:41:49 +02:00
Mike Jolley
3a8fd365d8
[2.4] IE doesn't like 'input' events for inputs with placeholders
...
Fixes #8992
2015-09-16 13:17:39 +01:00
Florian Ludwig
35655f8544
Fixed all inefficient selector usages
...
Use find for more efficient selectors - more information on e.g.
https://24ways.org/2011/your-jquery-now-with-less-suck/
2015-09-07 19:51:10 +02:00
Emil Kjær Eriksen
733a9a2fe5
checkout.js now looks for payment method in entire checkout form
2015-08-12 18:03:59 +02:00
Mike Jolley
d0c2c10c47
Made the linter happy
2015-07-27 17:55:37 +01:00
Mike Jolley
0ab151562a
Fix issues with trailing slashes on permalinks
...
Closes #8658
2015-07-27 11:56:07 +01:00
Mike Jolley
2834eff221
Merge branch 'variations-8477'
...
Conflicts:
assets/js/frontend/add-to-cart-variation.js
assets/js/frontend/add-to-cart-variation.min.js
assets/js/frontend/add-to-cart.min.js
assets/js/frontend/checkout.min.js
assets/js/frontend/geolocation.min.js
2015-07-10 11:37:05 +01:00
Claudio Sanches
3c409e07e1
Fixed js coding standards in assets/js/frontend/checkout.js
2015-07-09 15:04:00 -03:00
Mike Jolley
65f19d5ca7
Ajax variation handling
...
If there are more variations than the threshold allows (set to 20
currently) this loads the matching variation via ajax instead of inline
in the HTML. #8477
2015-07-09 15:56:20 +01:00
Jake Johnson
afe3e1f236
Update checkout when changing address text fields. Fixes #8308
2015-06-05 11:27:44 -07:00
Mike Jolley
c1e3da8bcb
Return real json response during checkout
...
Closes #8086
2015-05-15 13:51:51 +01:00
Claudio Sanches
1dadbb2842
Fixed coding standards for #7879
2015-04-13 12:37:22 -03:00
Danny van Kooten
88f2e690bb
Changing all inefficient selectors of $('body') to $(document.body), which is about 80% faster (and even more on mobile, see https://jsperf.com/jquery-body-vs-document-body-selector/2 ).
2015-04-03 14:21:47 +02:00
Mike Jolley
21c5513526
Added endpoint for faster ajax requests
2015-03-20 12:28:26 +00:00
Mike Jolley
492c8e361b
No selected payment method? Check the first.
2015-02-24 10:43:11 +00:00
Mike Jolley
600b561fd9
Small timeout on checkout update action to prevent several triggering at once.
...
Closes #7423
2015-02-16 15:45:25 +00:00
Mike Jolley
4cfabb8e16
Only update checkout when form.checkout exists
...
Fixes #7422
2015-02-16 14:57:04 +00:00
Mike Jolley
68049d08fd
Fix place order button text on init
...
Closes #7435
Fixes #7428
2015-02-16 12:46:00 +00:00
Jack Gregory
5ea03dc8df
Update form selector
2015-02-02 11:53:07 +00:00
Jack Gregory
b468710ab0
Fix coupon message output during checkout
2015-02-01 14:08:20 +00:00
Brent Shepherd
3a1dc68ff9
Fix typo
2015-01-27 14:42:36 -08:00
Jack Gregory
acfc4f5b55
Typo in assets/js/frontend/checkout.js:437
2015-01-27 09:22:38 +00:00
Mike Jolley
0f5c6c4219
Add error handler/debug info in checkout ajax #7176
2015-01-26 14:24:03 +00:00
Mike Jolley
741ef73b99
Only hide messages when placing order - not when updating fields.
...
Closes #6964 Pending @barrykooij approval
2015-01-06 17:49:22 +00:00
Mike Jolley
054d499636
Made checkout JS more modular
2015-01-06 17:49:22 +00:00
Barry Kooij
3f0a8be3d2
Merge branch 'master' into enhancement/checkout-order-review-error-handling
2014-12-11 12:10:53 +01:00
splashingpixels
25b6377298
ajaxified coupon removal on checkout page for better UX closes #6881
2014-12-07 22:15:03 -08:00
Barry Kooij
438988d9c7
Added the possibility to display notices and/or force reload on order review.
2014-12-04 09:40:49 +01:00
Kathy Darling
62db978078
stray console.log
2014-12-01 16:34:38 +01:00
Mike Jolley
2e398a3a79
Decoupled the order summary and payments area. Both are updated independently via ajax fragments and can be moved around via actions. TEMPLATES OVERRIDING THESE TEMPLATES WILL NEED TO UPDATE THEIR FILES.
...
Closes #5781
Closes #6570
2014-11-26 14:19:53 +00:00
claudiosmweb
c683720b02
Removed old ajax_loader_url param from all js files
2014-11-14 09:52:44 -02:00
Mike Jolley
cf867fec35
Decode redirect URL only when needed to prevent PayPal issues
...
Fixes #5798
2014-10-23 15:33:12 +01:00
Mike Jolley
91149c4ac3
Backwards ship-to-different-address logic on checkout.
...
When you choose the option to ship to billing only, the second
condition would make the checkout try to set shipping address to
non-existent fields. cc @claudiosmweb
2014-09-01 10:54:16 +01:00
justinstern
ce3ac21ab3
Checkout Update Totals for Radio Fields
2014-06-11 12:32:23 -04:00
Mike Jolley
aeeb68f3ff
[2.2] Respect login hidden toggle Fixes #5479
2014-05-14 11:38:06 +01:00
Mike Jolley
5d872918d6
Change the way order review data is appended to checkout to reduce likelihood of error
...
Fixes #5332
2014-04-24 15:08:38 +01:00
Mike Jolley
5810fe97a6
Prevent totals refreshing on every keydown event on the checkout
...
Fixes #5240
2014-04-07 12:42:54 +01:00
JDGrimes
f3ab25c12c
Check wc_checkout_params.is_checkout against string '1' instead of int 1
...
This was causing `’init_checkout’` not to be triggered on page load. I
noticed this when the taxes for an order weren’t being shown on the
checkout page until changing the billing address.
Introduced in b85b1ab03b
2014-03-28 16:46:33 -04:00
Mike Jolley
995f6a48f1
Trigger click event correctly in checkout
2014-03-24 11:16:07 +00:00
splashingpixels
b85b1ab03b
frontend checkout jshinted and coding standards
2014-03-18 20:42:53 -07:00
jmotes
1be965cdf9
Fix for #5106 - allow checkout in older IE
2014-03-11 18:54:37 -05:00
Niko Wicaksono
e1d3cb6dd8
Allow city field to use another input method
2014-03-10 10:05:35 +07:00
Marc Pfister
e365413cfc
trim whitespace so parseHTML only contains HTML
2014-02-28 08:18:41 -07:00
Mike Jolley
3b8cbe350b
Ensure button text stays changed
2014-02-24 15:39:15 +00:00
Mike Jolley
9a115dc1f4
Use parseHTML and enforce 1.8 jquery Closes #4899
2014-02-24 15:34:28 +00:00
Mike Jolley
9f7363a717
Turn off cursor for IE Closes #4824
2014-02-17 12:09:35 +00: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
39344f2ed5
Allow gateways to change the checkout place order button text on selection. Closes #4573
2014-01-28 11:25:57 +00:00
Mike Jolley
c6cd7e4017
Sliding payment boxes tweaks Closes #4538
2014-01-20 15:18:47 +00:00
splashingpixels
74f0d1c4c6
fixes shipping total not updating when select method is used on checkout page
2014-01-15 21:22:43 -08:00
Mike Jolley
7ddd4d012a
Move localisation to address-i18n.js for account page. Closes #4446
2014-01-08 14:38:20 +00:00
Jared Cobb
9fc47db17f
Make frontend scripts safe to run on non WC pages (check for objects)
...
For a more detailed explaination of why this is helpful, see
Issue #4202 . In short, from a dev ops perspective, if we want to build /
concatonate our front end scripts into a single application.js file, we
need to ensure scripts first check for dependent global object helpers
before trying to use them. For example, there are several objects
(created via PHP using `wp_localize_script`) which generate objects such
as `wc_single_product_params`. These objects will not exist on most
other pages, however these scripts attempt to execute code that
references these objects.
2013-12-04 12:15:24 -07:00
Mike Jolley
af34b43ee6
Tweaks for #4239
2013-12-03 12:14:12 +00:00
Ewout Fernhout
bfa4ce53ff
Allow custom checkout fields to be localized
2013-11-28 15:46:08 +01:00
Mike Jolley
5f7753b343
Checkout error hook
...
@coenjacobs useful for .15 IMO
2013-09-16 14:55:21 +01:00
Mike Jolley
e1631bd084
Reloads checkout after registration which fixes #3612 , removes some notices preventing login cookie being set, moves cart check for #3162
...
No perfect solution for #3162 . DB locking would probably cause more
issues that its worth, we cannot reliably use transactions as some
clients still use MyIsam. Best to accept orders and deal with stock
conflicts after the fact.
2013-09-04 11:26:19 +01:00
Mike Jolley
54b3d53a1b
Flag a refresh when creating an account to prevent nonce issues. Fixes #3612 .
...
@coenjacobs Might be for .14? Part of it anyway, can't cherry pick this
one.
2013-09-02 17:43:57 +01:00
Mike Jolley
e01df544ec
Reworked total templates to support coupon lines, and started support for multiple shipping methods per order.
...
@todo store shipping methods in the order
@todo test with PP shipping real world
cc @coe
2013-08-14 21:00:34 +01:00
Legradi Szabolcs
94f8baee1a
Coupon slidedown animation clipping effect, fixes #3590
2013-08-06 10:36:28 +02:00
Mike Jolley
19674a3d15
Allow autofill and use 'input' event to detect changes. Closes #3503
2013-07-21 10:38:22 +01:00
Justin Stern
d8ba734d4f
Bugfix: Always Submit Selected Shipping Method on Update Checkout
...
Fixes a bug where the shipping method was not posted on update checkout
if only a single shipping method is available (it's a hidden input
rather than a select or radio group)
2013-06-13 00:28:46 -04:00
Mike Jolley
4f0320fdb2
Refactor frontend scripts #3165
2013-06-11 13:31:41 +01:00
Mike Jolley
ac51ebf2b8
Revised checkout shipping process. Checkbox within heading. Closes #2571 .
2013-05-28 14:19:08 +01:00
Mike Jolley
36acab671f
Check typeof Closes #2811 .
2013-03-26 12:22:59 +00:00
Mike Jolley
c9b6b4a302
Refresh totals on field change, and format tax price if numeric.
2013-03-25 11:41:43 +00:00
Mike Jolley
559ef34005
Tweaked default locale to include all fields so that checkout fields can fallback if specific properties are not set e.g. required. Closes #2681 .
2013-03-18 12:02:36 +00:00
Mike Jolley
bf8feefb6d
WC_START in checkout json requests to prevent notices breaking checkout.
2013-03-08 12:24:25 +00:00
Mike Jolley
0c3cc15c21
Fix animation. Closes #2603 .
2013-03-05 19:14:10 +00:00
Jonathan Desrosiers
52f827a3cf
IE8 Fix - Review order was being deleted because there are two #order_review on the page. Better practice to never have two of the same IDs on the same page anyways.
2013-03-01 15:53:27 -05:00
Mike Jolley
15e6b14b58
Focus Closes #2479 .
2013-02-20 18:20:28 +00:00
Mike Jolley
8742d83f72
Open payment box Closes #2357 .
2013-02-05 10:46:31 +00:00
Geert De Deckere
891d8f9bdb
Small optimisation for postcode/city field reordering
2013-01-28 14:28:32 +01:00
Mike Jolley
484f1e4192
Restore fields after postcode before city. Closes #2293 .
2013-01-28 12:28:27 +00:00
Mike Jolley
34966373ad
When editing checkout fields, only refresh totals if required address fields are filled.
2013-01-20 15:36:25 +00:00
Mike Jolley
2dd5abd416
Fix pay form Closes #2225
2013-01-14 16:53:55 +00:00
Mike Jolley
1ef704140e
Changing this was a mistake; files were out of date.
2013-01-07 14:18:17 +00:00
Mike Jolley
b2f5cee7cb
Classes were changed. Closes #2160 .
2013-01-07 13:19:02 +00:00
Mike Jolley
454be82469
Tab index issue Closes #2163 .
2013-01-07 13:07:01 +00:00
Mike Jolley
b6387a152e
New checkout field layout Closes #2120 .
2013-01-03 12:37:07 +00:00