Manos Psychogyiopoulos
90b4d6090e
use existing $form var to block/unblock
...
Existing code could cause other `variations_form` elements on the same page to block/unblock as well.
2016-07-07 11:07:20 +03:00
Claudio Sanches
561cdd35e5
Apply validation for checkbox while update and submit errors #11360
2016-07-05 19:21:51 -03:00
Claudio Sanches
41f3deb665
Apply validation for checkboxes, closes #11360
2016-07-05 18:29:17 -03:00
James Koster
d0865bdcc7
Don't perform cart update on search submit
...
If you have a search widget on the cart page which is wrapped in a div
(the default wrapper for widgets) the ajax cart would try to update on
search submit. This change ensures the search form is excluded on
`submit_click`.
2016-07-04 11:10:02 +01:00
Mike Jolley
f3932e1c9e
Removes specificity of shop table rules and triggers different events if on checkout
2016-06-27 11:42:28 +01:00
Mike Jolley
6649500b79
Merge branch 'group-notices-11226'
...
# Conflicts:
# assets/js/frontend/checkout.min.js
2016-06-24 16:01:03 +01:00
Mike Jolley
117990d95f
Merge branch 'pr/11219'
...
# Conflicts:
# assets/js/frontend/cart.min.js
2016-06-24 12:39:47 +01:00
Mike Jolley
5a564bac02
Code tidy
2016-06-24 12:39:13 +01:00
Mike Jolley
b9eb873229
minify
2016-06-24 12:28:50 +01:00
Mike Jolley
15400fc5f5
Prevent blocking the same element multiple times
...
Fixes #11242
2016-06-24 12:18:31 +01:00
Mike Jolley
a44bc8bec8
min
2016-06-23 13:47:29 +01:00
Mike Jolley
f6a42e55ac
Remove all notices on fail
2016-06-23 13:47:24 +01:00
Mike Jolley
7513f40a9d
Notice group for order review notices
2016-06-23 13:31:34 +01:00
Andrew Benbow
5a20addd8a
Update tokenization-form.js
2016-06-22 10:39:03 +01:00
Andrew Benbow
2cdb4361e4
Update tokenization-form.js
...
When the checkout form is loaded for guests the save card option is shown, this fix hides it until the Create Account checkbox is checked.
2016-06-22 10:37:36 +01:00
Kevin Killingsworth
230ba6e5bf
Cart.js: Only prevent submit for specific buttons
...
Fixes #11148
Only prevent default submit actions for our own
"Update Cart" and "Add Coupon" operations.
2016-06-15 14:13:46 -05:00
Kevin Killingsworth
265a4faa10
Cart.js: Use currentTarget for events.
...
Some themes add internal HTML to links, so this adjusts
to use currentTarget, which should always be the node on which
the event is subscribed instead of the target which triggered
the event.
2016-06-15 12:02:58 -05:00
Mike Jolley
f8f065bad9
Adjusted triggers for cart.js
...
Closes #11119
2016-06-15 15:51:53 +01:00
Mike Jolley
99f6540fe9
Trigger fragment refresh after updating ajax cart
...
Fixes #11064
2016-06-08 12:06:40 +01:00
Shiva Poudel
00cc3711ac
Minor tweaks and JSHint ignore for update notice script
2016-06-06 23:05:10 +05:45
Mike Jolley
0cb2f2760c
block ui when switching variation with ajax
2016-06-06 14:37:52 +01:00
Mike Jolley
81195e876f
Add trigger to update cart and totals area
...
Closes #11020
Example: jQuery(document).trigger('wc_update_cart');
2016-06-01 12:45:14 +01:00
Mike Jolley
6ac4201b01
Make state label revert after change
...
Fixes #11014
2016-06-01 11:22:55 +01:00
Claudio Sanches
e39274e753
HTTPS for everybody
2016-05-26 22:48:49 -03:00
Mike Jolley
2ba9029624
Suit CSS and method tidyup for saved methods form
...
cc @jameskoster
2016-05-26 12:42:32 +01:00
Mike Jolley
6fe37fff33
Remove the need for token script when logged out
2016-05-26 12:42:32 +01:00
Kevin Killingsworth
543e091c2c
Fix for #10940 - wc_cart_hash
...
wc_cart_hash was used as a key for localStorage
for all WooCommerce sites. If you were to load your
cart for two different sites in the same browser,
the two WooCommerce pages would contend over this key
and loop on trying to set this key in the localStorage
This commit prepends the site's ajax URL onto the wc_cart_hash
key name in localStorage, providing a unique key for each
WooCommerce site. This ends contention over the keys.
2016-05-24 14:36:43 -05: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
843e540ed5
Add classes to variation button wrapper
2016-05-19 11:17:34 +01:00
Mike Jolley
986bd5abc7
Fix save and striping
2016-05-12 12:18:35 +01:00
Zach Stepek
c96cd1e4d3
Merge branch 'master' into variation-sku-fix
...
# Conflicts:
# assets/js/frontend/add-to-cart-variation.min.js
2016-05-11 14:41:39 -05:00
Zach Stepek
50a7b07496
Update specificity of jQuery selector used to reset SKU in product-meta
2016-05-11 12:25:56 -05:00
Mike Jolley
0927cbee8d
Tweaks saved card markup and styling to improve CC form.
2016-05-10 15:43:39 +01:00
Claudio Sanches
8c09a52be0
Minify
2016-05-09 17:13:56 -03:00
Kathy Darling
9926afbebf
removed_coupon trigger. follow up to #10863 .
2016-05-09 10:39:21 -05:00
Mike Jolley
83844fd55b
Added applied_coupon trigger to cart page
...
#10863
2016-05-06 12:05:59 +01:00
Mike Jolley
b39ec6b2d6
Fix undo on storefront
...
Closes #10816
2016-05-03 17:03:46 +01:00
Kevin Killingsworth
2e6d37c1c3
Fix cart ajax submit buttons for Safari.
...
Fixes #10813
This adds a "clicked" attribute to clicked form buttons,
which augments Safari specifically since it sets activeElement
to the page body when a button is clicked.
2016-05-02 15:26:14 -05:00
Mike Jolley
9eb32a2bd8
Keeps undo message in view
...
@coderkevin there was another case where the undo message would be gone
after refresh. This loads the content via ajax still preserving the
message.
2016-04-20 11:21:32 +01:00
Mike Jolley
3a59e3cbad
Enable update cart button only when qty's change
2016-04-20 11:10:39 +01:00
Kevin Killingsworth
f45a4cd57d
Reload cart page upon emptying.
...
The server shows a different page for the cart
when the cart is completely empty. The Cart AJAX
update subverted this and caused issue #10736 as
a result. Not to mention, the page just didn't look
good or functional with no items left in the cart.
This commit forces a reload any time the cart becomes
empty, which shows the empty page generated from
the server.
Fixes #10736
2016-04-19 23:36:48 -05:00
Kevin Killingsworth
069eca0b32
Fix: Ensure cart gets updated
...
The cart was not getting updated in all cases
when products were removed or shipping was
updated. This ensures those changes update the
cart as well.
Fixes #10734
2016-04-19 13:00:18 -05:00
Mike Jolley
120a62cd90
minify
2016-04-19 13:44:20 +01:00
bucketpress
dfccfce705
Grouping of delegated events together
...
As suggested by @claudiosmweb
2016-04-19 10:00:16 +08:00
bucketpress
6cca7029fc
Make product tabs and ratings work when product page is loaded via ajax
...
.wc-tabs-wrapper, .woocommerce-tabs, #rating set as delegated events, so that on ajax loading a product page, we can call
$( '.wc-tabs-wrapper, .woocommerce-tabs, #rating' ).trigger('init'); to make them work.
2016-04-18 18:08:42 +08:00
Mike Jolley
65f2c24358
Handle tab-reviews click
2016-04-15 18:25:18 +01:00
Kevin Killingsworth
00c3bf9ce3
Fix: Update message on update cart/shipping
...
This adds the messages to the ajaz update cart
and shipping operations.
2016-04-08 12:02:45 -05:00
Kevin Killingsworth
3073437ea1
Fix: Make cart ajax selectore more specific
...
The previous jQuery selector was on div.woocommerce,
which was also selecting other divs on the page.
This is more specific to the cart table on the page.
2016-04-06 12:14:54 -05:00
Mike Jolley
495aac2df1
Remove backslash
2016-03-23 14:28:45 +00:00
gonssal
523ded8358
Fixed password-strength-meter.js' checkPasswordStrength function not being encapsulated into the wrapper
2016-03-21 17:26:33 +01:00
Mike Jolley
699e007659
Wrap export in quotes to preserve commas
...
Fixes #10541
2016-03-14 12:26:18 +00:00
Mike Bronner
de85e5be25
Add tests for localStorage
...
Some spiders will not error out on sessions storage, but will throw an exception on localstorage. For example, my site has been hit with the following almost on an hourly basis:
```
TypeError: Cannot call method 'setItem' of null
1
File https://maureentaylor.com/app/plugins/woocommerce/assets/js/frontend/cart-fragments.min.js line 1 in [anonymous]
```
2016-03-13 08:42:35 -07:00
Mike Jolley
71f32383f8
Comment and minify
2016-03-12 08:37:02 +00:00
Mike Jolley
7e712ee09a
Tweak preserveComments and re-minify
2016-03-12 08:14:37 +00:00
Claudio Sanches
ede64f7aa9
Minify and POT
2016-03-11 14:42:34 -03:00
Claudio Sanches
1aa796390a
Minify
2016-03-10 00:02:50 -03:00
Mike Jolley
25d6a93c07
Merge pull request #10479 from shivapoudel/gtm-listener
...
Tweak - GTM listener for single products tabs
2016-03-07 12:04:38 +00:00
Shiva Poudel
25e1d72017
Tweak - GTM listener for single products tabs, Closes #10478
2016-03-04 23:52:39 +05:45
Justin Shreve
e94a60d4c3
Update minified JS
2016-03-01 11:49:43 -08:00
Justin Shreve
ccb2c90ef3
Update references for the tokenization UI script (hiding/showing inputs) to use the correct file.
2016-03-01 11:49:43 -08:00
Justin Shreve
a2aa20bcb5
Rename payment-gateway JS to tokenization-form.
2016-03-01 11:49:42 -08:00
Justin Shreve
eff4e297f9
First pass at showing saved payment methods on checkout
2016-03-01 11:49:40 -08:00
Mike Jolley
6f04ff1fa0
Replace size with length
...
Fixes #10444
2016-03-01 13:08:25 +00:00
Kevin Killingsworth
7fc0932e33
Fix state input box for cart shipping.
...
Input box wasn't reappearing when switching from a hidden input
to a text input. Changed the JQuery selector to go off the input
type.
2016-02-27 00:50:05 -06:00
Kevin Killingsworth
45b2f7eae3
Remove console.log calls
...
Some left-over console log calls were removed.
2016-02-22 11:12:05 -06:00
Kevin Killingsworth
b7f365982e
cart objects: refactor into objects
...
This update actually takes the code and refactors it into
two object handlers, cart and cart_shipping.
Also, more block comments are added to each function.
2016-02-22 10:15:47 -06:00
Kevin Killingsworth
02b7c1edc4
cart objects: Create cart_shipping object.
...
This commit creates a cart shipping object which handles all shipping
code in this file.
2016-02-19 14:33:28 -06:00
Kevin Killingsworth
7c82a6b1f1
cart objects: Add block comments
...
Add block comments to functions in the file.
2016-02-19 14:26:27 -06:00
Kevin Killingsworth
e7fa89cdf9
cart objects: split off events
...
Step one of implementing objects in carts is splitting off
the event handlers to separate named functions.
2016-02-19 14:13:48 -06:00
Justin Shreve
328ad226e8
[2.5] Correct the 'unavailable template' call for variations so the message is displayed correctly, fixing a JS error.
2016-02-17 07:50:38 -08:00
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
Claudio Sanches
0a9929146d
Minifiy
2015-11-04 01:23:45 -02:00
Claudio Sanches
fde904b27a
[2.4] Fixed redirection loop on customizer screen
...
It's caused an redirection loop on the customizer page when
activated "Geolocate (with page caching support)" option
cc @mikejolley
2015-11-04 01:20:16 -02:00
Mike Jolley
7fdb93329c
Merge branch 'revised-single-variation-cart-template'
...
Conflicts:
includes/admin/views/html-admin-page-status-report.php
2015-11-02 11:26:49 +00:00
Kathy Darling
856d192bff
Use generic `ajax_add_to_cart` class for adding items in the loop to the cart via ajax.
2015-10-30 12:54:49 -05: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
034871a395
Fixed js coding standards
2015-10-28 16:52:31 -02:00
Mike Jolley
dddca9b7a6
Avoid animation when no text is present
2015-10-28 15:43:06 +00:00
Mike Jolley
edd2e4f2cb
wp.template is not required for cart button
2015-10-28 14:59:40 +00:00
Mike Jolley
f7a065fb53
Button initial state
2015-10-28 14:27:02 +00:00
Mike Jolley
6f5aaa69da
Fix single variable
2015-10-28 13:53:51 +00:00
Mike Jolley
1ff6a27951
Split button from variation display
2015-10-28 13:09:34 +00:00
Mike Jolley
a28da6eabc
Remove wc_variations_description_update effects
2015-10-28 13:04:45 +00:00
Mike Jolley
f050c804e1
Use wp.template for variation and variation button
2015-10-28 13:04:28 +00:00
Claudio Sanches
ad5264d40b
Fixed initial tax rate settings pagination
...
Pagination need to be set up to 1, since is first page.
This fix a bug where is impossible to insert rates when don't have any rate saved before.
cc @mikejolley
2015-10-27 19:36:57 -02:00
Claudio Sanches
9b47f3866a
Prevented reset to default option when click in any attribute option
...
Improvement for #9335
2015-10-27 17:59:26 -02:00
Claudio Sanches
9877ce99b5
Minify
2015-10-27 17:24:54 -02:00
Claudio Sanches
2f0f8f5b3e
Fixed focus on attributes select fields for variable products
...
This is an issue on IE 11, since we test for "focusin touchstart", IE 11
can't loses the focus and need to this "snippet" to make IE work like
another browsers.
Closes #9335
2015-10-27 17:24:32 -02:00
Mike Jolley
7012ef5608
When updating cart hash, refresh all open tabs
...
Closes #8708
2015-10-26 11:50:25 +00:00
Claudio Sanches
9c10a6fc16
Better name for password strength meter element #9319
...
cc @jameskoster
2015-10-13 14:42:26 -06:00
Claudio Sanches
d7a928b4c1
Improved stylesf ro passworkd strength meter
2015-10-09 14:10:02 -03:00
Claudio Sanches
821b2f5cbe
Improved place order button behavior when necessary password check #9319
2015-10-09 13:43:08 -03:00
Claudio Sanches
eedff144e7
Created assets/js/frontend/password-strength-meter.js #9319
2015-10-09 13:31:47 -03:00
Claudio Sanches
c4bd6b25c1
Merge pull request #9319 from nishitlangaliya/Issue-8938
...
Issue 8938
2015-10-09 11:12:56 -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
James Koster
0cc109f67a
Replaces the old star rating selector with a new slimline version. closes #8826
...
The old one was 5 separate buttons. This new one consolidates the 5
options into one element making it leaner visually and more intuitive.
Works in IE9+ with a graceful degradation for IE8.
2015-10-08 11:27:25 +01:00
nishitlangaliya
2dcd391c21
fixes: If password field is enabled, enforce strong passwords ref #8938
2015-10-07 16:47:13 +05:30
Jeff Stieler
d04dac6ba6
Update minified cart fragments javascript.
2015-10-06 12:50:44 -06:00
Jeff Stieler
55dae383af
Use named cart fragment refresh callback.
2015-10-06 12:16:15 -06:00
Jeff Stieler
61e6f708d5
Set timers to refresh cart fragments before they expire.
2015-10-06 12:14:17 -06:00
Jeff Stieler
e94969f5dd
Expire the mini cart fragment if it’s more than a day old.
2015-10-06 11:12:18 -06:00
Jeff Stieler
b2cbae6508
Assume we need to refresh a mini cart with items if there is no session creation timestamp.
2015-10-06 10:04:21 -06:00
Jeff Stieler
da573be59a
Store the cart session creation timestamp for expiration purposes.
...
Consider the cart session “created” when it’s refreshed and has items, or when the first item is added to cart.
2015-10-06 09:54:06 -06:00
Mike Jolley
34a568aea8
manual update trigger for checkout
...
Closes #9119
2015-10-06 12:40:23 +01:00
Mike Jolley
1f6260a880
Use tax settings in backend and default to base country
...
Closes #9186
2015-10-05 15:31:58 +01:00
roykho
52ec35cab6
tweak to use product class function instead of body class function
2015-10-02 10:26:53 +02:00
roykho
5ba6ff1dac
fix variation image flicker issue when default variations are set closes #7904
2015-10-02 03:45:11 +02:00
Claudio Sanches
79cd558c38
Fixed conflicts
2015-10-01 17:41:49 +02:00
Claudio Sanches
0966fedb12
Moved JS vendor libraries for our own directories #8488
2015-10-01 15:46:08 +02:00
Mike Jolley
1971bd448a
[2.4] Fix locale switching for city field
...
Fixes #9237
2015-10-01 13:24:53 +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
Mike Jolley
e863c4678a
min
2015-09-07 16:58:13 +01:00
Mike Jolley
821434cbb7
Fix geolocation redirect with querystring
2015-09-07 16:58:05 +01:00
Mike Jolley
779e23dfe3
Check for method
2015-09-07 11:38:24 +01:00
Claudio Sanches
1f484e09ed
Fixed jslint issues
...
@mikejolley
2015-09-01 22:10:00 -03:00
Mike Jolley
2f2ae4b6d4
Check href is set
2015-09-01 16:49:03 +01:00
Mike Jolley
f7e4bf224d
Exclude cart and account pages from geolocation
...
Closes #8967
2015-09-01 15:41:05 +01:00
Mike Jolley
c7a7db4679
For geolocation with static cache support, ensure hash is appended during form submission.
...
@claudiosmweb Closes #8967
2015-09-01 13:17:59 +01:00
Mike Jolley
b9381d1495
Revert uniform fix - looking into doing it in-theme
2015-08-21 19:24:39 +01:00
Mike Jolley
10c0b92d0d
Added BW compatibility for themes using 'uniform'.
2015-08-21 15:37:00 +01:00
Mike Jolley
f2d4a47da1
Add required postcode marker after label replace
...
Fixes #8857
2015-08-17 13:35:17 +01: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
a3d376b5c3
Tab hiding with some theme markup.
...
Closes #8791
2015-08-12 12:05:31 +01:00
Mike Jolley
08c751f4fe
Minify scripts
2015-08-11 10:46:25 +01:00
Mike Jolley
03f16d6833
Made tab panel selector more specific to avoid theme conflicts.
2015-08-11 10:46:21 +01:00
Manos Psychogyiopoulos
f5691fd82a
animate variations script markup changes
2015-07-31 14:04:55 +03:00
Mike Jolley
e3ff9d6e24
Minify
2015-07-28 16:22:00 +01:00
Manos Psychogyiopoulos
dae10a962c
allow product variations data refresh
2015-07-28 15:34:04 +03:00
Mike Jolley
890bcff302
Fix cart ajax endpoint
...
@claudiosmweb @BFTrick
2015-07-27 20:02:40 +01: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
Claudio Sanches
f8dfc64db7
Fixed postcode/zip reset in address i18n script, closes #8646
2015-07-24 18:24:33 -03:00
Mike Jolley
44b91e5b66
Revert triggerHandlers back to trigger() for BW compat
...
Closes #8569
2015-07-14 10:28:49 +01:00
Claudio Sanches
ee1263db9c
Minify
2015-07-10 20:17:47 -03:00
Mike Jolley
3ec4003bbb
Move add variation button and toolbars
2015-07-11 00:04:16 +01:00
Claudio Sanches
501742b07f
Updated grunt dependencies
2015-07-10 18:48:04 -03: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
62d879e86c
Fixed all jshint errors #4680
2015-07-10 02:13:30 -03:00
Claudio Sanches
3c409e07e1
Fixed js coding standards in assets/js/frontend/checkout.js
2015-07-09 15:04:00 -03:00
Mike Jolley
9531258ee6
Treat each form separately.
2015-07-09 16:21:17 +01: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
James Koster
0d4db4b610
post code before city alignment. closes #8443
2015-07-01 15:13:02 +01:00
Claudio Sanches
77b2d508b2
Fixed coding standards in assets/js/frontend/price-slider.js
2015-06-29 17:09:34 -03:00
Claudio Sanches
743718838a
Minify price-slider.js
2015-06-29 17:08:02 -03:00
optimalab
9cccf313ba
Fixed price-slider.js trigger and fixed js coding standards
2015-06-29 17:07:45 -03:00
Mike Jolley
84bc6e1b1a
Merge branch 'geolocate-cache'
...
Conflicts:
includes/class-wc-customer.php
Closes #7939
2015-06-23 12:26:03 +01:00
Mike Jolley
1489fafd06
Need to re-geolocate on page load to refresh cached pages being viewed with wrong hash
2015-06-22 15:35:46 +01:00
Mike Jolley
f988aae387
Use hashes and server side redirection
2015-06-22 14:55:15 +01:00
Mike Jolley
d5660e8cfc
Don't disable buttons
...
Closes #8424
2015-06-22 11:09:23 +01:00
Mike Jolley
389ccd5761
Remove base location from script and don't rely on session storage
2015-06-17 16:56:06 +01:00
Mike Jolley
38dd251f96
geolocation
2015-06-17 14:16:37 +01:00
Mike Jolley
b1441c05c1
Move geolocation to separate script
2015-06-17 14:16:35 +01:00
Mike Jolley
9886a805df
Fix up standards #7939
2015-06-17 13:59:04 +01:00
Mike Jolley
33c298fea7
Experiment with appending geolocation to query string to prevent caching
2015-06-17 12:12:49 +01:00
Claudio Sanches
866a975517
Minify files for #8347
2015-06-10 14:50:13 -03:00
Shiva Poudel
8aff509ed7
Tweaks JSHint for cart and cart fragments
2015-06-10 23:11:21 +05:45
Mike Jolley
877d91956f
Minify
2015-06-08 11:17:07 +01:00
Jake Johnson
afe3e1f236
Update checkout when changing address text fields. Fixes #8308
2015-06-05 11:27:44 -07:00
Mike Jolley
6760589381
Tweak code used to get country's statebox
...
Closes #8255
2015-06-01 10:50:16 +01:00
Mike Jolley
0a3defd798
Move tax enabled check
2015-05-29 14:55:57 +01:00
roykho
54b0a0ca54
changed dynamic variation description to allow limited HTML and some sanitized tweaks
2015-05-28 14:31:45 -07:00
Mike Jolley
e51eae80c6
Merge pull request #8167 from roykho/dynamic-variation-description
...
Dynamic variation description
2015-05-28 15:53:03 +01:00
Mike Jolley
c1e3da8bcb
Return real json response during checkout
...
Closes #8086
2015-05-15 13:51:51 +01:00
roykho
b812b2fd94
add dynamic variation description feature
2015-05-14 10:56:26 -07:00
James Koster
aebef4aece
variation img title / caption. closes #8032
2015-04-28 17:19:38 +01:00
Mike Jolley
6181a061d6
[2.3] Remove minimum results for search to prevent issues with state box
...
Fixes #8002
2015-04-23 15:55:18 +01:00
Mike Jolley
4997ed0efb
Cleaned up tabs JS and fixed conflicts with bootstrap
...
Fixes #8000
2015-04-23 12:24:15 +01:00
Claudio Sanches
1dadbb2842
Fixed coding standards for #7879
2015-04-13 12:37:22 -03:00
Mike Jolley
2e2ec824f0
Set field required class
...
Fixes #7859
2015-04-10 15:43:39 +01: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
d7144d9ed6
[2.3] Reset sku when no option chosen
...
Closes #7799
2015-03-23 13:03:53 +00:00
Mike Jolley
21c5513526
Added endpoint for faster ajax requests
2015-03-20 12:28:26 +00:00
Mike Jolley
0959b68182
Minify
2015-03-10 10:25:40 +00:00
Manos Psychogyiopoulos
c11399cb52
handle zero min input qty in woocommerce.js
2015-03-10 03:06:17 +02:00
Manos Psychogyiopoulos
60ebac7cdf
allow zero min/max quantity input values
2015-03-10 02:42:00 +02:00
Claudio Sanches
69552d265d
Fixed select 2 formatSelectionTooBig(), closes #7640
2015-03-05 14:55:41 -03:00
Mike Jolley
6658c88adc
Add args to correct scripts
...
Fixes #7610 . @claudiosmweb
2015-03-03 10:58:10 +00:00
Mike Jolley
3ac113367d
Pass clicked button to added_to_cart Closes #7550
2015-03-02 12:14:15 +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
Claudio Sanches
01c0401bc0
Close the select2 when close the wc backbone modal, closes #7347
2015-02-10 14:57:14 -02:00
James Koster
f49ae4ce35
state select. closes #7316
2015-02-10 09:45:52 +00:00
Mike Jolley
7b144dce1d
Merge pull request #7296 from RistoNiinemets/master
...
JS "hide_variation" hook
2015-02-05 11:27:43 +00:00
Risto Niinemets
d9e63dcbb2
"hide_variation" hook
2015-02-04 18:08:14 +02:00
Mike Jolley
16eb1facd9
Add link to payment_status_canceled_reversal Closes #7267
2015-02-02 14:49:30 +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
Mike Jolley
1ae1c7a975
Trigger change event to clear state box. Closes #7240
2015-01-30 10:58:53 +00:00
Claudio Sanches
da68b4fd9c
Minify country-select.js for #7235
2015-01-29 00:16:59 -02:00
devin
dfecc22126
Removed .change method for .on( 'change') so that if this field is ever replaced via ajax then the country select still works as expected
2015-01-28 16:42:11 -08:00
Claudio Sanches
7bc853c452
Merge pull request #7224 from thenbrent/fix_session_expired_notice
...
[2.3] Fix session expired notice on checkout
2015-01-27 21:34:16 -02:00
Brent Shepherd
3a1dc68ff9
Fix typo
2015-01-27 14:42:36 -08:00
Claudio Sanches
f4c64c12c7
Updated scripts
2015-01-27 20:15:49 -02: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
Claudio Sanches
ab3553a6fd
Select2 translatable, closes #7159
2015-01-19 17:31:22 -02:00
Mike Jolley
4e7e4d399e
Work around 1px incorrect offset on frontend. Closes #7116
2015-01-19 15:09:41 +00:00
Mike Jolley
a3cfea8e5d
Only apply to visble select boxes Closes #7127
2015-01-19 13:07:06 +00:00
Mike Jolley
0fdd24c526
Select2 frontend
2015-01-12 16:16:13 +00:00
Mike Jolley
9852d9c6ec
Order data JS select2 + refactor
2015-01-12 15:43:13 +00:00
Mike Jolley
2e82cbb311
Customer ajax searches
2015-01-12 13:04:19 +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
boohoogal
1987830730
Merge remote-tracking branch 'upstream/master'
2014-12-17 18:46:35 +00:00
Claudio Sanches
3ede7907a4
Minify the checkout script
2014-12-12 09:37:15 -02:00
Barry Kooij
3f0a8be3d2
Merge branch 'master' into enhancement/checkout-order-review-error-handling
2014-12-11 12:10:53 +01:00
boohoogal
538d514cc0
As suggested kept original event and created new event 'woocommerce_variation_has_changed' for after selection has been fully applied. #6833
2014-12-11 10:02:24 +00:00
boolah
ff86dec284
Make custom event 'woocommerce_variation_select_change' for theme developers as last thing we trigger. #6833
2014-12-10 21:43:26 +00:00
Mike Jolley
fe34eb7bf8
Fix state box by seeing if states is empty object
2014-12-10 14:44:59 +00:00
Mike Jolley
e6b94e486b
Leave postcode before city swapping to JS
...
Fixes #6842
2014-12-09 09:07:28 +00: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
Mike Jolley
eba8206540
Merge branch 'tax-coupon-handling' Closes #6830
...
Conflicts:
assets/js/admin/meta-boxes-order.min.js
includes/api/class-wc-api-coupons.php
includes/class-wc-cart.php
templates/checkout/review-order.php
2014-12-03 12:33:15 +00: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
James Koster
e856377194
bye bye quantity increments. closes #6752
2014-11-18 13:29:58 +00:00
Mike Jolley
e6a5825f8c
Some shipping class tidyup
2014-11-17 16:30:18 +00:00
Joe Flynn
652a66e3d1
ensure storage is writable when setting support flag. fixes #6755
2014-11-14 14:14:56 -05:00
claudiosmweb
c683720b02
Removed old ajax_loader_url param from all js files
2014-11-14 09:52:44 -02:00
James Koster
30a5c4bfdb
bye bye ajax loader gif.
2014-11-13 18:28:15 +00:00
Mike Jolley
270e26c3cc
Allow linking to #reviews tab Closes #4630
2014-10-24 15:50:15 +01: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
2294135bff
Rename touch punch to stop grunt breaking minify
2014-10-23 14:38:19 +01:00
Mike Jolley
986afea224
Merge pull request #6531 from franticpsyx/variations_script_reusable
...
Make variations script re-usable
2014-10-21 23:36:00 +01:00
Manos Psychogyiopoulos
7d9a8b1a3a
quantity selector dot
2014-10-21 15:26:39 +03:00
Manos Psychogyiopoulos
6f8aa7cb52
backwards compat
2014-10-20 11:59:01 +03:00
James Koster
e27d4afee1
data tabs tweaks. #6562
2014-10-17 14:50:23 +01:00
Mike Jolley
e926f49ae2
Merge pull request #6194 from AardvarkMike/master
...
Suggested fix for Issue #6193
2014-10-17 12:06:33 +01:00
Nicola Mustone
6e9176a5bf
Fix disable password submitting twice
2014-10-16 21:59:45 +02:00
Manos Psychogyiopoulos
1e44f0cd68
make variations script re-usable
2014-10-14 11:03:47 +03:00
Mike Jolley
98361804e6
Merge pull request #5767 from IAmJulianAcosta/touch-compability
...
Price filter widget touch compability
2014-10-10 12:16:18 +01:00
James Koster
63f45a8720
variation visibility, based on #6182 . #5661
2014-09-26 17:22:43 +01:00
Mike Hughes
5c4c5c1516
Fixed indentation for fix #6193
2014-09-09 12:43:56 +01:00
Mike Hughes
be5623cf91
Fix for issue #6193 - loop through data- attributes for form submission data instead of hard coded
2014-09-09 12:41:14 +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
Julian Acosta
8f3586fccb
Added touch support to price filter widget using jquery ui touch punch
2014-07-01 00:00:26 -05:00
Mike Jolley
7591e07d81
Field show/hide options for stock fields and variations
2014-06-19 16:17:43 +01:00
justinstern
ce3ac21ab3
Checkout Update Totals for Radio Fields
2014-06-11 12:32:23 -04: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
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
2b4906bf4c
Prevent security error with try catch block Closes #5275
2014-04-07 14:34:47 +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
Mike Jolley
8cdd36b3cf
min
2014-04-04 14:16:18 +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
Mike Jolley
8007e4c102
Fix encoding issue with attribute values and move variation data to tooltip Closes #5169
2014-03-20 15:47:52 +00:00
splashingpixels
c5f4120540
frontend woocommerce jshinted and coding standards
2014-03-19 16:02:54 -07:00
splashingpixels
222b57a159
frontend single-product jshinted and coding standards
2014-03-19 15:56:07 -07:00
splashingpixels
b392b49147
frontend price-slider jshinted and coding standards
2014-03-19 15:54:38 -07:00
splashingpixels
abf318db86
frontend credit-card-form jshinted and coding standards
2014-03-19 15:46:59 -07:00
splashingpixels
880d655539
frontend country-select jshinted and coding standards
2014-03-18 20:51:37 -07:00
splashingpixels
f9f8b11d3a
frontend chosen jshinted and coding standards
2014-03-18 20:44:22 -07:00
splashingpixels
b85b1ab03b
frontend checkout jshinted and coding standards
2014-03-18 20:42:53 -07:00
splashingpixels
ce3605ad36
cart jshinted and standard coding fixes
2014-03-17 20:08:41 -07:00
splashingpixels
6d2aa8b3c3
cart-fragments jshinted and standard coding fixes
2014-03-17 19:56:31 -07:00
splashingpixels
cbb5a2fb55
address-il8n jshinted and standard coding fixes
2014-03-17 19:51:53 -07:00
Mike Jolley
b321d6297b
Use is_purchasable to determine if a variation cart button is needed, and potentially show empty_price_html Closes #5137
2014-03-17 12:12:10 +00:00
splashingpixels
fc913b850f
frontend add to cart jshinted and coding standards
2014-03-16 22:26:55 -07:00
splashingpixels
e19fa9a73c
frontend add to cart variation jshinted and coding standards
2014-03-16 22:19:58 -07:00
Mike Jolley
340efa690d
Minify scripts for #5109
2014-03-12 14:34:49 +00:00
jmotes
1be965cdf9
Fix for #5106 - allow checkout in older IE
2014-03-11 18:54:37 -05:00
Coen Jacobs
e2be27e7b5
Minified checkout.js for #5092
2014-03-10 17:22:17 +01:00
Niko Wicaksono
e1d3cb6dd8
Allow city field to use another input method
2014-03-10 10:05:35 +07:00
Mike Jolley
c01022f189
Fix variable product add file button after adding a new variation Closes #4994
2014-03-03 12:09:43 +00:00
splashingpixels
220c93f2b1
minified single-product.js
2014-03-01 12:12:25 -08:00
splashingpixels
76021004c1
external product review link not opening on load fixes #5008
2014-03-01 12:10:25 -08:00
Marc Pfister
e365413cfc
trim whitespace so parseHTML only contains HTML
2014-02-28 08:18:41 -07:00
Mike Jolley
77929bc27f
grunt dev - updated languages
2014-02-27 14:21:25 +00:00
Mike Jolley
6ff4ae1a7d
Merge pull request #4903 from splashingpixels/master
...
Ran through jshint and fixed coding standards
2014-02-25 15:51:50 +00: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
splashingpixels
2944658f01
jshinted and coding standards see #4680
2014-02-21 20:08:08 -08:00
splashingpixels
9fe74e0073
jshinted and coding standards see #4680
2014-02-21 20:07:37 -08:00
Mike Jolley
9f7363a717
Turn off cursor for IE Closes #4824
2014-02-17 12:09:35 +00:00
James Koster
d4c2d54b0d
js fix #4629
2014-02-06 09:36:55 +00:00
James Koster
2b8ef5101f
review pagination. closes #4629
2014-02-05 12:40:15 +00:00
Mike Jolley
b1b6e10b98
Result of Grunt minification + tx pull
2014-02-03 14:35:26 +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
5b991cc3e1
Checkout min
2014-01-28 11:26:07 +00: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
bc779e5e2b
Trigger change for country fields Closes #4546
2014-01-21 11:54:03 +00:00
Mike Jolley
c6cd7e4017
Sliding payment boxes tweaks Closes #4538
2014-01-20 15:18:47 +00:00
splashingpixels
5b42f5f596
revised/ammend pull request 4513
2014-01-15 23:06:23 -08:00
splashingpixels
74f0d1c4c6
fixes shipping total not updating when select method is used on checkout page
2014-01-15 21:22:43 -08:00
splashingpixels
c6018f58af
fix shipping cost total not updating when using select dropdown method Fixes #4515
2014-01-15 19:33:21 -08:00
Mike Jolley
7ddd4d012a
Move localisation to address-i18n.js for account page. Closes #4446
2014-01-08 14:38:20 +00:00
Mike Jolley
329a96b452
Look for name of select Fixes #4365
2013-12-23 15:42:46 +00:00
Coen Jacobs
fe8f57c2e3
Minified all the JS files for #4289
2013-12-05 10:23:38 +01: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
293c998a1d
Set price slider min to min price. Closes #4183
2013-12-03 13:39:02 +00: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
0fae180f24
Minify all the things
2013-11-25 16:03:43 +00:00
Mike Jolley
cc40557077
filter for cart fragment #4132
2013-11-20 16:31:28 +00:00
Scott Basgaard
f3b2854638
woocommerce_json_search_products() is now a method of WC_AJAX. Use $this->json_search_products() instead.
2013-11-19 14:44:28 +01:00
Scott Basgaard
bee41fb7e5
woocommerce_get_refreshed_fragments() is no longer. Update where it was called to new Ajax class method.
2013-11-19 13:33:26 +01:00
Brent Shepherd
4a7f207eff
Use new ID for add pay method form
...
Part of #3396
2013-11-05 15:36:00 -08:00
Mike Jolley
b4d1c764d5
Move average rating outside of hidden tab. Closes #3867 .
2013-10-31 16:26:20 +00:00
James Koster
1fbb6249ff
Replaced → / ← on frontend with icons from our font. closes #4009
2013-10-28 09:45:59 +00:00
James Koster
e934947152
Remove placeholder polyfill. closes #4012
2013-10-28 09:03:03 +00:00
Mike Jolley
ece95e25ce
When handling variations, priority from top to bottom - disabled variations still taking into consideration allow you to exclude certain combinations when using 'all' for variations with lower priority. Message displayed if a variation is unavailable.
...
@coenjacobs please review
2013-10-10 16:34:44 +01:00
Mike Jolley
eef86ab5eb
First found should be used.
...
@coenjacobs this should go in .15 - the first matching variation should
always be used IMO, not the last.
2013-10-10 14:21:19 +01:00
Mike Jolley
1b91c75039
Tweak add to cart message. Closes #3876 .
2013-10-04 12:26:11 +01:00
Mike Jolley
8f196130ff
Don't show view cart message on cart page. Closes #3877
2013-10-04 12:21:28 +01:00
Justin Stern
e584ea83a2
Fixed Multiple Sets of Tabs on One Page Bug
...
When clicking on a tab on a page with multiple sets of products/tabs,
other products/tabs were influenced due to a missing jquery context
element
2013-10-03 14:23:50 -04:00
Mike Jolley
72c00a601a
Standardized, default credit card form for gateways to use if they support 'default_credit_card_form'. Closes #3616
2013-09-27 13:22:08 +01:00
Mike Jolley
ef49977905
add_to_cart_url add_to_cart_text and single_add_to_cart_text class methods allowing greater control with custom classes.
...
Closes #3484 and Closes #3143 . Pinging @thenbrent as the handler was
originally his idea and I've killed it.
@helgatheviking In 2.1, add to cart URLs will only be used in loops, so
conditonal logic should no longer be neccessary. Single templates post
to themselves without the need for the URL.
2013-09-25 12:35:06 +01:00
Mike Jolley
ef24dfeac6
minify #3817
2013-09-23 15:53:21 +01:00
Manos Psychogyiopoulos
3af1df55c7
Allow variations JS to be used on multiple products in the same form
2013-09-22 18:30:39 +03:00
Mike Jolley
5f7753b343
Checkout error hook
...
@coenjacobs useful for .15 IMO
2013-09-16 14:55:21 +01:00
Mike Jolley
d13ec3bcd6
touchstart event for ios devices. Closes #3376 .
...
@coenjacobs might be good for .15
2013-09-13 15:48:23 +01:00
Mike Jolley
0405fabf69
Alt changes from .14
2013-09-04 17:22:35 +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
Mike Jolley
f8aaef00e4
Replace placeholder script. Closes #3586 .
2013-08-13 12:50:47 +01:00
Mike Jolley
7fda2bd832
Search for US/UK on country field. Fixes #3626 .
2013-08-13 12:38:26 +01:00
Mike Jolley
4b223f6260
Min
2013-08-06 14:04:40 +01:00
Legradi Szabolcs
94f8baee1a
Coupon slidedown animation clipping effect, fixes #3590
2013-08-06 10:36:28 +02:00
Mike Jolley
03af136986
Separate ship to options from sell to. Closes #3215 .
2013-08-02 16:54:28 +01:00
Mike Jolley
34624fa4ca
Rather than check if cart has contents, standardize cart hash adn cookie so its refreshed once. Closes #3505 .
...
@coenjacobs for .14
2013-07-30 15:23:08 +01:00
Mike Jolley
63433bbdd7
Check for undefined attributes. Closes #3487 .
2013-07-30 13:57:42 +01:00
Mike Jolley
17da2c0c44
Prevent breakage when moved to header by w3 total cache Closes #3412 .
2013-07-23 11:49:16 +01:00
Mike Jolley
19674a3d15
Allow autofill and use 'input' event to detect changes. Closes #3503
2013-07-21 10:38:22 +01:00
Mike Jolley
feb8d759a8
Only refresh fragment when cart cookie > 0
2013-07-10 17:07:25 +01:00
Neil Pie
687e1fb06a
Update add-to-cart-variation.js
2013-06-22 14:00:37 +02:00
Mike Jolley
9684ad95f7
Trigger an action when the variation form is attached
2013-06-17 13:53:21 +01:00
Mike Jolley
e1b49eb783
Checkout js
2013-06-14 12:22:00 +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
c72ae714f7
Removed nonce helper
...
@coe
2013-06-11 17:55:55 +01:00
Mike Jolley
4f0320fdb2
Refactor frontend scripts #3165
2013-06-11 13:31:41 +01:00
Mike Jolley
71c57ecfd7
Extra trigger for slider
2013-06-06 12:30:55 +01:00
Mike Jolley
ac51ebf2b8
Revised checkout shipping process. Checkbox within heading. Closes #2571 .
2013-05-28 14:19:08 +01:00
James Koster
d1fbc3b7f1
replaced placeholder plugin
...
old one no longer in active dev
2013-05-21 12:46:47 +01:00
Mike Jolley
ffe064db99
Delegate order by Closes #3080 .
2013-05-10 12:47:43 +01:00
Mike Jolley
d0ee67d9e1
Trigger when loading fragments Closes #2985 .
2013-04-23 15:37:19 +01:00
Dominic
c07fac099f
Removed commas after last item in object
...
Older IEs have issues with this for some reason.
2013-04-19 17:55:43 -07:00
Mike Jolley
85f98e48c7
Fix checkmark Closes #2951 .
2013-04-15 12:36:04 +01:00
Mike Jolley
422b07b262
Reveal cart on adding_to_cart action
2013-04-09 09:38:55 +01:00
Mike Jolley
9977031a5d
Nonces cannot be used on all pages with cache - removed them for add to cart actions + fixed caching for hiding the cart
2013-04-08 18:43:07 +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
789e917a7c
Backwards compat
2013-03-23 15:10:42 +00:00
James Koster
3ea5afbbc0
Revert "Don't allow decimals in .qty. closes #2773 "
...
This reverts commit 5e377c9f0f
.
2013-03-22 20:04:44 +00:00