Commit Graph

2437 Commits

Author SHA1 Message Date
Mehidi Hassan 3f8e3fdb2d Add space before parentheses of if condition for JS consistency 2019-10-10 23:37:56 +06: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
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
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
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
Peter Fabian 9671810159 Added event to track `Add item(s)` button click. 2019-06-27 13:22:19 +02:00
Peter Fabian 7b03fe62f3 Added event to track `Add fee` button click and Cancel in the prompt. 2019-06-27 13:21:37 +02:00
Peter Fabian 90c0954d21 Renamed add_fee event to added_fee.
Makes it consistent with e.g. coupon addition tracks.
2019-06-27 13:20:03 +02:00
Peter Fabian 7ef4cb637a Fixed spacing issue. 2019-06-27 13:19:24 +02:00
Mike Jolley 8b41b03f2e Remove blocks files 2019-06-21 12:23:41 +01:00
Peter Fabian 930fd983cb Merge branch 'add/new-edit-order-tracks' of https://github.com/woocommerce/woocommerce into add/new-edit-order-tracks 2019-06-07 14:59:11 +02:00
Peter Fabian 34c6933586 Added more params to the tracks. 2019-06-07 14:58:55 +02:00
Jeff Stieler 1bd9a7d9a7 Use a consistent tracks event naming scheme. 2019-06-07 12:31:42 +02:00
Peter Fabian 083c616f18 Added tracks to record when order note is added in edit order screen. 2019-06-07 12:04:38 +02:00
Peter Fabian b880159dbe Added tracks to record when products, fees, taxes or shipping are added to order in edit order screen. 2019-06-07 11:39:03 +02:00