Christopher Allford
0d6675b490
Corrected ESLint violations in JS files
2020-05-04 20:49:29 -07:00
Sagar Tamang
ab8ee194c8
Fix: Show password toggle not working in checkout page
2020-04-25 23:37:43 +05:45
Sagar Tamang
fbdbecbcf6
Hide only the tab content under the tab wrapper
2020-04-23 01:20:21 +05:45
BrandynL
b234964a1c
changed append show-password-span to prepend to fix bug with password strength hint
2020-04-08 14:21:00 -04:00
Vedanshu Jain
e9bb84e18f
Merge pull request #25627 from bartech/master
...
Fix password visibility toggle (#25624 )
2020-04-06 18:22:07 +05:30
Vedanshu Jain
395ceb7c9d
Merge pull request #25903 from woocommerce/fix-qty-update
...
Trigger change and set val to qty so that it properly updates event h…
2020-04-06 18:07:05 +05:30
Christopher Allford
1358cca6d1
Revert "Improved performance when saving variations"
2020-03-17 08:55:09 -07:00
Kathy Daring
319395b0fa
update the add to cart button if ajax request not sent
2020-03-13 18:27:45 -06:00
Kathy Daring
4ed91d9482
quit early if should_send_ajax_request.adding_to_cart triggerHandler is false and trigger a custom event instead
2020-03-13 18:26:37 -06:00
Kathy Daring
6937baccce
Revert "Set adding_to_cart trigger to variable. If false, do not fire ajax. Closes #25759."
...
This reverts commit 38e081e590
.
2020-03-13 18:25:25 -06:00
Boro Sitnikovski
15641bf08f
Trigger change and set val to qty so that it properly updates event handlers
2020-03-12 16:01:30 +01:00
Kathy Daring
38e081e590
Set adding_to_cart trigger to variable. If false, do not fire ajax. Closes #25759 .
2020-02-25 13:12:27 -07:00
vedanshujain
d904786d7d
Support both `.data()` and `.datasore` to have better compatibility
...
PR #24818 replaces data with datastore, however both of them have nothing to do with each other. `.data()` is jQuery specific memory datastore per element, whereas datastore is relatively newer way to store data associated with elements using `data-*` attributes.
There is no reason to not support both.
2020-02-21 15:47:31 +05:30
Miguel Pinto
8ff17ddbd2
Add option to override element tag container in checkout forms
2020-02-13 03:11:44 +00:00
Bartosz Drewniak
84e958dbde
Fix password visibility toggle ( #25624 )
2020-02-10 20:30:39 +01:00
Christopher Allford
6ca7b9fa4a
Merge pull request #25382 from smachi/master
...
Improved performance when saving variations
2020-02-05 13:14:13 -08:00
Claudio Sanches
9e1738be70
Revert "Eliminate update order AJAX request on checkout page load"
2020-02-04 14:19:52 -03:00
Claudio Sanches
7fe05d46e4
Revert "Remove code that ignored the woocommerce_ship_to_destination option"
2020-02-04 14:18:48 -03:00
Vedanshu Jain
a85dc86978
Merge pull request #25540 from woocommerce/fix/25358
...
Find the correct form element to update.
2020-02-04 12:38:03 +05:30
Peter Fabian
b85d314d5d
Find the correct form element to update.
...
Previously it just found the first one, which made the second checkbox buggy.
2020-01-31 12:45:08 +01:00
Salva Machí
c4a7e19534
Refactory: code style
2020-01-31 09:23:28 +01:00
Claudio Sanches
f4263d8c11
Remove code that ignored the woocommerce_ship_to_destination option
2020-01-29 12:18:14 -03:00
Rodrigo Primo
2e61321e2a
Merge pull request #25289 from rafdizzle86/feature/add-checkout-place-order-success-triggerhandler
...
Add a triggerHandler called "checkout_place_order_success" so plugin developers can hook into AJAX order success event.
2020-01-20 15:25:46 -03:00
Salva Machí
d1dc5f8c20
Bypass inputs without name
2020-01-13 11:31:20 +01:00
Salva Machí
2ca6c12089
Bypass unchecked radio buttons, unchecked checkboxes and disabled inputs
2020-01-13 10:24:12 +01:00
Salva Machí
37d7d498ec
Improved performance when saving variations
...
The serializeJSON function was causing a long delay when preparing the JSON if there are many input fields within the variations (even worse if 3rd party plugins add their own extra fields there too).
2020-01-10 11:38:38 +01:00
BrandynL
608d6628e3
added woocommerce specific css selector to avoid conflicts
2019-12-31 11:10:30 -05:00
Rafi Yagudin
e03861640e
Add a triggerHandler called "checkout_place_order_success" so plugin developers can hook into AJAX order success event.
2019-12-22 17:06:50 -07:00
Christopher Allford
ed7c891675
Adjusted the checkout email validation regex to be more accurate
2019-12-17 13:18:53 -08:00
Shamali Sulakhe
ec09daeadc
Merge remote-tracking branch 'upstream/master' into issue-24266-solution
2019-12-16 15:11:07 +05:30
Shamali Sulakhe
e5e9d440a4
Merge branch 'master' of https://github.com/shamalisulakhe/woocommerce into issue-24266-solution
2019-12-16 15:08:30 +05:30
Rodrigo Primo
35053e418f
Merge pull request #24818 from roksprogar/master
...
fixed the jQuery data() caching issue
2019-12-13 14:33:09 -03:00
Claudio Sanches
104f40c36e
Merge pull request #24281 from woocommerce/fix/24269
...
Handle multiple decimal points
2019-12-09 14:07:29 -03:00
Gerhard Potgieter
8827dfb3a4
Merge pull request #24609 from JohnTendik/feature/24429
...
Added unload event to prevent reload during checkout (#24429 )
2019-12-06 14:57:59 +02:00
Claudio Sanches
6bdb7f7a83
Merge pull request #24271 from woocommerce/update/avoid-ajax-request-on-checkout-page-load-2
...
Eliminate update order AJAX request on checkout page load
2019-12-05 21:09:10 -03:00
Claudio Sanches
5dac360e8a
Merge pull request #24208 from woocommerce/fix/order-screen-tax-calculation-to-honor-rounding-setting
...
Honor tax rounding preference in edit item and refund flows
2019-12-05 20:52:48 -03:00
Gerhard Potgieter
7d39222334
Merge pull request #25162 from woocommerce/fix/24018
...
Hid variable parent products from "Add Products" search on order page
2019-12-05 14:22:43 +02:00
Claudio Sanches
0794ffd285
Fixed coding standards
2019-12-04 17:01:59 -03:00
Claudio Sanches
9a3e6247a9
Merge pull request #24915 from BrandynL/show-password-hover-on-wc-forms
...
Show password hover on wc forms
2019-12-04 16:57:32 -03:00
Claudio Sanches
24c473f932
Merge pull request #24991 from woocommerce/add/new-onboarding-ab-test
...
Onboarding - Show the new experience to 10% of new users
2019-12-04 11:00:23 -03:00
Christopher Allford
d1e25c9118
Added support for excluding certain product types from AJAX product searches
2019-12-03 14:14:47 -08:00
Paul Dechov
7f65a33fe8
Honor tax rounding preference in edit item and refund flows
...
The default value ('no') of the setting to round taxes at subtotal was not being honored on the Edit Order screen, which resulted in off-by-one discrepancies between the checkout item total and the edited or refunded item total.
This change is to round to the proper precision (w.r.t. the 'woocommerce_tax_round_at_subtotal' setting) for the default value of the form, as well as when the values are dynamically recomputed.
2019-11-25 17:49:43 +05:30
Christopher Allford
1984a11ff2
Added media element initialization to variation description audio/video shortcodes
2019-11-22 14:08:31 -08:00
Justin Shreve
18925f2218
Adds an a/b test for the new onboarding experience
2019-11-21 12:00:04 -05:00
Vedanshu Jain
05a89e849e
Merge pull request #24227 from woocommerce/update/replace-checkout-fragment-only-on-change
...
Cache checkout fragments and update DOM on change only
2019-11-15 18:49:58 +05:30
Shamali Sulakhe
64fbb197d7
Removed patch file and merged changed with ver 3.9.0-dev
2019-11-15 17:58:54 +05:30
BrandynL
3ed614389f
change event to click for better mobile device support
2019-10-28 09:56:20 -04:00
BrandynL
925bad1faf
convert array instance to shorthand syntax
2019-10-28 09:35:39 -04:00
BrandynL
6ed7278678
add password hover visibility on password inputs with javascript
2019-10-27 16:56:42 -04:00
Rok Sprogar
8f6cb9d058
fixed the jQuery data() caching issue
2019-10-12 19:04:46 +02:00
Mehidi Hassan
3f8e3fdb2d
Add space before parentheses of if condition for JS consistency
2019-10-10 23:37:56 +06:00
Claudio Sanches
9851b1f0f3
DRY
2019-10-03 21:19:52 -03:00
Adam Jones
0f7398d607
Fixing an issue with an on-body click triggering on pages that do not contain the referenced span.description element. Wrapped it in an if statement to make sure element exists beforehand.
2019-10-02 15:32:36 +01:00
Gerhard Potgieter
ee1b438c3c
Merge pull request #24517 from woocommerce/fix/24511
...
Control categories export field based on export type
2019-09-30 15:39:21 +02:00
Gerhard Potgieter
dec4a381fe
Merge pull request #24720 from ChromeOrange/master
...
Allow select fields in credit card form to maintain value when the checkout form refreshes
2019-09-30 14:36:16 +02:00
Gerhard Potgieter
27be925552
Merge pull request #24406 from kolyasapphire/add-applied_coupon-trigger-to-checkout
...
Add 'applied_coupon' trigger to checkout.js
2019-09-30 13:59:37 +02:00
Andrew Benbow
d339452bce
Update checkout.js
2019-09-30 10:24:00 +01:00
Andrew Benbow
f8b268d3a0
Update checkout.js
2019-09-30 10:22:08 +01:00
Vedanshu Jain
436ee5de3a
Merge pull request #24680 from woocommerce/update/tracking-opt-in
...
Update usage tracking UI, default to opted-out.
2019-09-30 09:14:56 +05:30
Gerhard Potgieter
e8d617156d
Merge pull request #24665 from miguelfspinto/patch-4
...
Enable append hashes on custom events (like ajax requests)
2019-09-27 13:35:48 +02:00
Justin Shreve
0c3fc315c5
Update tracking opt-in UI.
2019-09-24 14:26:21 -04:00
Miguel Pinto
fff09c9811
Enable append hashes on custom events (like ajax requests)
2019-09-23 16:04:31 +01:00
johntendik
0a9563dacd
fixing indentation
2019-09-10 20:43:13 -04:00
johntendik
366681038f
added unload event to prevent reload during checkout
2019-09-10 20:23:10 -04:00
Claudio Sanches
08e9d0bdc9
Control categories export field based on export type
2019-08-27 16:11:05 -03:00
kolyasapphire
faf05c00c2
Renamed the trigger
...
Changed to applied_coupon_in_checkout to avoid unexpected behaviour
2019-08-23 16:15:57 +03:00
kolyasapphire
fe3395cd6b
Add 'applied_coupon' trigger to checkout.js
...
To check it’s working correctly:
add_action( 'woocommerce_after_checkout_form', 'alert_on_coupon');
add_action( 'woocommerce_after_cart', 'alert_on_coupon');
function alert_on_coupon() { ?>
<script type="text/javascript">
jQuery(document).ready(function($) {
$( document.body ).on( 'applied_coupon', function(event,code){
alert(code);
});
});
$( document.body ).trigger( 'applied_coupon', [ data.coupon_code ] );
2019-08-14 19:09:18 +03:00
vedanshujain
970271d0b7
Remove `blur` event to keep focus on select box.
...
This removes the `blur` call so that focus on select box is maintained for accessibility. This call was added way back in 2012 but from what it looks like, it can be removed safely.
2019-08-06 22:08:00 +05:30
Paul Dechov
e15e51868c
Remove accidental jQuery references in favor of $
2019-08-02 18:10:47 -04:00
Claudio Sanches
2b0fc6f50a
Added sanitization for number of decimal points in JS
2019-08-02 14:02:33 -03:00
Claudio Sanches
375b989322
Added validation for multiple decimal points
2019-08-02 13:58:02 -03:00
Gerhard
02f9c7c8ff
Use strict checking
2019-08-02 14:55:17 +02:00
Gerhard
34e883ce81
Apply patch by @dtwist
2019-08-02 14:19:37 +02:00
Hardik Thakkar
27689ba0ca
Fixed #23870
2019-08-02 14:10:39 +02:00
Paul Dechov
429161e1c6
Add logic to initialize checkbox based on whether shipping address is different
2019-07-30 18:42:51 -04:00
Paul Dechov
264556be91
Call ship-to-different-address change handler manually in lieu of event trigger
...
Avoids unnecessary update_checkout call on initialization.
2019-07-29 22:39:19 -04:00
Paul Dechov
4a94037c52
Replace update_checkout request on checkout page load with updated_checkout event
2019-07-29 22:32:56 -04:00
Paul Dechov
c3076209c7
Cache checkout fragments and only update DOM on change
2019-07-24 18:00:29 -04:00
Peter Fabian
2f19640ce1
Fixed jshint problems.
2019-07-15 12:59:06 +02:00
Gerhard Potgieter
7c0d0251ee
Merge pull request #23883 from woocommerce/add/new-edit-order-tracks
...
Track more events on the edit order screen for future design validation.
2019-07-15 09:36:01 +02:00
Gerhard Potgieter
aa706fd68f
Merge pull request #24075 from woocommerce/add/in-app-purchase-params
...
Add in-app-purchase params to extensions screen & suggestions
2019-07-15 09:18:51 +02:00
Rodrigo Primo
6e3f22fd6c
Tabs should be used for indentation instead of spaces
2019-07-12 10:57:18 -03:00
Rodrigo Primo
0809c96168
Merge branch 'master' into fix/23283
2019-07-12 10:55:43 -03:00
haszari
3e7da11c30
fix logic for new tab check on edit product page
2019-07-12 13:42:36 +12:00
haszari
5bac98fd80
open marketplace suggestions links in same tab to simplify experience:
...
- except when inconvenient - when editing a product
2019-07-12 13:42:36 +12:00
haszari
46f2b98bca
add in-app-purchase url params to marketplace suggestions buttons
2019-07-12 13:42:35 +12:00
Claudio Sanches
c63cd802aa
Merge pull request #23957 from woocommerce/feature/feature-plugin-packages
...
Include external feature plugins as packages
2019-07-10 15:47:48 -03:00
Claudio Sanches
5b8694e92a
Merge pull request #23915 from woocommerce/fix/23544
...
[Setup] Make PostCode optional as few countries don't use them
2019-07-10 15:45:32 -03:00
Gerhard Potgieter
9ca6dad11e
Merge pull request #23433 from justlevine/master
...
Preserve State field input classes when selecting a Country.
2019-07-10 15:31:39 +02:00
Mike Jolley
c928188831
Update from master
2019-07-10 12:57:02 +01:00
Claudio Sanches
d18c3f8ed1
Merge pull request #24069 from woocommerce/add/coupon-code-generator
...
Add generate coupon code button
2019-07-09 16:50:24 -03:00
Claudio Sanches
18b876a95c
Always load generate code button
...
Some improvements in the button label and names
2019-07-09 16:46:17 -03:00
vedanshujain
e2577b3a06
[Setup] Make PostCode optional as few countries don't use them
...
Some countries like Hong Kong, UAE etc don't use post codes, in which case this commit will make the field optional.
If its not known whether a country uses postcode or not, it will be required.
2019-07-09 14:37:03 +05:30
Gerhard
7038c73ab4
Merge branch 'master' into update/exclude-compiled-assets-from-git
2019-07-09 10:57:40 +02:00
Claudio Sanches
da99bc8ca0
Merge branch 'master' into feature/feature-plugin-packages
2019-07-08 14:33:21 -03:00
Rodrigo Primo
a26f38f3a1
Merge pull request #23133 from woocommerce/update/23111
...
If variations are missing prices, show notice
2019-07-04 10:08:41 -03:00
Gerhard
5d604329fc
Reword postfix to suffix
2019-07-04 09:07:02 +02:00
Gerhard
538edcaac0
Make button text translatable.
2019-07-03 22:57:08 +02:00
Gerhard
24fc4948c0
Add generate coupon code button for quick coupon code generation.
2019-07-03 22:48:30 +02:00
Rodrigo Primo
68f5ccabc1
Merge pull request #23811 from woocommerce/feature/23807
...
Allow enforce password strength meter on checkout
2019-06-27 11:39:00 -03:00