Commit Graph

421 Commits

Author SHA1 Message Date
Kevin Killingsworth 7e951afbae Cart AJAX: Add shipping form support.
Add support for making an AJAX call for updating the shipping options.
2016-02-15 10:52:25 -06:00
Kevin Killingsworth b330813306 Cart AJAX: Clean up form handling for cart form.
The coupon and update cart logic was tripping on each other
between the click handling and form submit handling.
This commit combines the event handler, then splits off from there.
2016-02-15 10:27:47 -06:00
Kevin Killingsworth 4b8cf5cd1f Cart ajax: Fix html5 validation checks for quantities.
The form button click event handling was subverting the validation
checks. Moving the event to the actual form submit event fixed it.
2016-02-15 09:53:11 -06:00
Kevin Killingsworth 62c141ff5d Cart AJAX: Fix block UI for remove item.
The JQuery selector was incorrect and needed to go
further up the DOM tree.
2016-02-15 09:41:58 -06:00
Kevin Killingsworth a8e51cfb66 Style: Add spaces between closing braces and parens. 2016-02-15 08:40:46 -06:00
Kevin Killingsworth ef4debace7 Cart AJAX: Block form during update
Apply the JQuery Block UI to the form during an AJAX update.
Also correct a few small style issues.
2016-02-15 08:10:25 -06:00
Kevin Killingsworth e416ba0e2b Cart AJAX: Add cart item remove.
Add cart item remove, using same technique as the cart update.
Make the normal call via AJAX and update the HTML afterwards.
2016-02-14 22:55:47 -06:00
Kevin Killingsworth 9a43b897da Cart AJAX: Add update call.
Since the code is built to use a form submit for all the quanitities
already, I just made this an ajax call instead of a whole page call.
The result is the exactly the same and the .woocommerce div is replaced
with the resulting HTML.
2016-02-14 21:57:14 -06:00
Kevin Killingsworth 1c361bb29f cart.js: Consolidate url calculation.
DRY the url calculation code within a single function to make
the code more readable and succinct.
2016-02-12 15:43:05 -06:00
Kevin Killingsworth 30a272e58a Add remove coupon ajax handling in cart.
Add code to handle ajax call for removing a coupon from the cart.
2016-02-12 15:43:05 -06:00
Kevin Killingsworth 191b58eba0 Block cart form while applying coupon.
Add code to block the cart form during the apply operation
until completion. Refactor block/unblock into local methods
for reuse.
2016-02-12 15:43:05 -06:00
Kevin Killingsworth 4cc7e99ab7 Add notice to add coupon in cart.
Add the notice to when a coupon is added to the cart,
or the error if the coupon was not added for some reason.
2016-02-12 15:43:05 -06:00
Kevin Killingsworth ce90c440cb Cart ajax: apply coupon
Adds an ajax call for applying coupons while on the cart
screen (not checkout, as it already has this.)

This is the first commit to add ajax calls to the cart update
functions. See issue #6734
2016-02-12 15:43:05 -06:00
Kevin Killingsworth 07db701e91 Add minified js file for add-to-cart-variation.js
Adding missing minified version of js file from
commit f1bf89db2b
2016-02-12 09:54:21 -06:00
Mike Jolley 2c86574785 Merge pull request #10328 from KristoferN/single-product-image-alt-tag-content-error
Corrected content in alt-tag
2016-02-11 13:17:46 +00:00
Kristofer Norén f1bf89db2b Corrected content in alt-tag
Previously both the alt-tag and the title-tag of the variations main image used content from variation.image_title. The alt-tag should use variation.image_alt.
2016-02-11 13:40:56 +01:00
Justin Shreve 37ad8ccbed Minified checkout.js 2016-02-10 10:41:23 -08:00
Justin Shreve 6a8abc9f28 Keep track of terms & conditions state and recheck the box if necessary. 2016-02-10 10:38:39 -08:00
Mike Jolley 4c29b7607f Show notices on variation button clicks
Closes #10281
2016-02-08 16:21:02 +00:00
Mike Jolley 6dd01fc839 Better way to find wrapper for stateboxes
Closes #8255
2016-02-08 14:47:42 +00:00
Claudio Sanches 5f2d769567 Minify 2016-02-03 15:02:32 -02:00
Claudio Sanches 2596b888a2 [2.5] Include new triggers when remove and add the password strength meter, closes #10257 2016-02-03 13:24:11 -02:00
Mike Jolley 254c8cf677 Prevent default in variation script
Closes #10223
2016-02-01 12:16:17 +00:00
Mike Jolley 089b8aff68 Disable button (again) but not on checkout 2016-01-28 15:53:08 +00:00
Mike Jolley 26a7d04c07 Unused var 2016-01-28 15:38:27 +00:00
Mike Jolley 6a8e89da2f [2.5] HTML5 validation message on weak password, and append to indicator 2016-01-28 15:36:24 +00:00
Mike Jolley 32b6e05eb1 [2.5] docblock 2016-01-27 11:07:44 +00:00
Mike Jolley a2843c03c7 [2.5] Added password hint text and error messages 2016-01-27 10:54:03 +00:00
Mike Jolley 5db85c6ef7 [2.5] Compatibility with w3 total cache inline minification 2016-01-25 20:14:45 +00:00
Claudio Sanches 7d627e105c Don't stop conversions because password strength meter
cc @mikejolley
2016-01-22 17:46:15 -02:00
Claudio Sanches c1c6ef0271 Added support password strength meter lost password page
Still part of #10103
2016-01-22 17:37:34 -02:00
Claudio Sanches 4f3ef79b8c Added password strength meter to my account > edit account page
Closes #10103
2016-01-22 17:33:35 -02:00
Mike Jolley 0b6fdf5fe8 Use data-placeholder for selects since placeholder is not to W3C spec
Closes #9986
2016-01-06 12:20:06 +00:00
Mike Jolley aab4e1cfa0 Min 2015-12-16 11:05:01 +00: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
Mike Jolley 1b5af9e188 Output the wp.template instead of passing in 2015-12-04 14:28:32 +00:00
Mike Jolley 3ae614c5a8 Wrap is Always visible since 2.5.0 2015-12-04 13:45:47 +00:00
Mike Jolley b7d8091a44 pass full variation object into script instead of parts 2015-12-04 13:31:36 +00:00
Mike Jolley 2c023a2847 Pass the wp.template to the script and append so its added to the page once when needed 2015-12-04 13:26:44 +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
Claudio Sanches b9624290e1 Minify 2015-12-02 13:26:09 -02: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
Tiago Noronha 105105db06 Adds support for srcset and sizes attributes in variation images. 2015-11-23 16:35:11 +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
Claudio Sanches e1c2054b5c Improved how geolocation js check for pages where shouldn't load
Simplified all checks in just one
Less PHP and JS conditionals

cc @mikejolley
2015-11-04 01:51:54 -02:00