Commit Graph

19898 Commits

Author SHA1 Message Date
Mike Jolley 7228d67799 Remove helpers from order functions 2020-04-03 15:55:14 +01:00
vedanshujain 3bd34184e4 Fixed bool error on when to disable feature 2020-04-03 15:55:14 +01:00
Claudio Sanches 2ebd86f2dc Revert "Revert "Add support for '_held_for_checkout` records to prevent race conditions."" 2020-04-03 15:55:13 +01:00
vedanshujain 6612d1f859 Prune elements with display none to fix regression.
In an earlier emogridier version (til WC 3.9.3) this was happening by
default, however now we have to do this explicitly since we update
emogrifier to > 3.x.
2020-04-03 13:47:04 +00:00
Claudio Sanches 83609d4844 Improved escaping 2020-04-02 14:25:09 -03:00
Claudio Sanches f02780e764 Update theme update available message 2020-04-02 14:22:50 -03:00
Claudio Sanches 9345eb3624 Improved dependency and update message style 2020-04-02 14:17:38 -03:00
vedanshujain 8adb474149 Enforce per user coupon usage limit for guest user checkout.
In a previous commit, a regression was introduced where we were no
longer checking for usage limit of guest user in an install. This
commit adds back that check.
2020-04-02 15:00:06 +00:00
Claudio Sanches 5356fb1bf6 Removed undefined variable 2020-04-01 19:22:44 -03:00
Claudio Sanches c24b565477
Revert "Implement additional tracks" 2020-04-01 11:34:54 -03:00
Bec Scott 3e322793ec
Merge pull request #25942 from woocommerce/add/25849-implement-additional-tracks
Implement additional tracks
2020-04-01 09:54:05 +10:00
Claudio Sanches 8ae9df58ed
Merge pull request #25901 from woocommerce/fix-code-documentation
Fix PHP docblock for WC_Plugin_Updates::get_untested_plugins()
2020-03-31 15:20:54 -03:00
Gennady Kovshenin ca996a8941 Fix race condition in update_product_stock
Modify the increment and decrement SQL query in
WC_Product_Data_Store_CPT::update_product_stock to be atomic. This fixes
a race condition in concurrent order placement.
2020-03-31 16:01:26 +03:00
Christopher Allford 23e555823b
Merge pull request #25943 from woocommerce/fix/25810
Fixed remainder application for percent coupons
2020-03-30 14:13:03 -07:00
Christopher Allford 4b454a8b3d Replaced the default error text for upgrades of expired WooCommerce.com plugin subscriptions 2020-03-30 14:11:02 -07:00
Christopher Allford 26516e11ac
Merge pull request #25932 from woocommerce/add/tracker-cart-checkout-info
Add cart & checkout block/shortcode info to tracker data
2020-03-30 13:18:23 -07:00
Miguel Pinto 3def0534fe
fix typo in variable 2020-03-27 19:36:00 +00:00
Rebecca Scott e998cc963c Remove stock level set tracking as this is done in JS now 2020-03-27 15:23:51 +10:00
Rebecca Scott 4136a42e1e Just include the ISO8601 date instead of the full WC_DateTime object 2020-03-27 15:19:18 +10:00
Rebecca Scott 39f654124c Fix event name 2020-03-27 14:54:48 +10:00
Rebecca Scott b31878440e Revert function event 2020-03-27 14:52:24 +10:00
Rebecca Scott 5a45d6a3f2 Use var instead of const/let because IE11 2020-03-27 14:51:26 +10:00
Rebecca Scott 17d5f42228 remove order id from order tracking as it isn't required 2020-03-26 11:12:26 +10:00
Rebecca Scott db6a4c630f fix coupon tracking method name 2020-03-26 11:09:37 +10:00
Rebecca Scott 768a3a3f4f Track product updates using client side scripting to avoid double bouncing on the server 2020-03-26 10:55:31 +10:00
Timmy Crawford 9edaffa632 Default 100% of users to new OBW. 2020-03-25 13:37:42 -07:00
Rebecca Scott 75a9971e9d Fix single_order_view event name 2020-03-25 13:04:54 +10:00
Rebecca Scott 496b602eb4 Remove commented out stock quantity value 2020-03-24 12:09:32 +10:00
Rebecca Scott f580b34aa7 Add tracks for quantity updates 2020-03-24 12:03:36 +10:00
Rebecca Scott a4e6b48aa3 Track when a coupon is created/updated 2020-03-24 11:49:00 +10:00
Rebecca Scott 5eab1cbdba Get product type instead of category IDs and split out virtual and downloadable 2020-03-24 11:48:38 +10:00
Peter Fabian 0e0b1d646d
Merge pull request #25882 from woocommerce/fix/25845
Set usage count before usages query
2020-03-18 15:44:49 +01:00
Peter Fabian 38c75cae1b
Merge pull request #25858 from woocommerce/fix/wccom-installer-api-product-arg-type
Change "products" argument type from array to object in plugin installer API
2020-03-18 15:05:13 +01:00
Rebecca Scott 928529880d Track viewing an order 2020-03-18 13:14:31 +10:00
Timmy Crawford 5d4e3ced65 Convert js filter to underscores too, to match wc-admin 2020-03-17 16:09:37 -07:00
Peter Fabian 692df536f7
Merge pull request #25884 from woocommerce/fix/25875
Use admin_url instead of using absolute url to support subfolder
2020-03-17 18:20:04 +01:00
Peter Fabian b3357fee79
Merge pull request #25898 from woocommerce/fix/25881
Fixes typo in download help text
2020-03-17 17:47:19 +01:00
Peter Fabian 9431b34f0d
Merge pull request #25946 from woocommerce/fix/25928
Send dummy parameters so that cost is evaluated correctly.
2020-03-17 16:51:36 +01:00
Vedanshu Jain e35aaf1cff
Merge pull request #25885 from grigorijurasov/master
Change Serbian currency symbol from дин. to рсд, solves #25441
2020-03-17 19:02:17 +05:30
Peter Fabian 2a05f7c000
Merge pull request #25916 from woocommerce/fix/revert-25128
Made the is_package_shippable check more permissive
2020-03-17 14:14:23 +01:00
vedanshujain 861b9de692 Send dummy parameters so that cost is evaluated correctly.
Also added a warning for subclasses that cost and qty are required keys.
2020-03-17 16:54:01 +05:30
vedanshujain 82575a0c74 Don't echo error when doing AJAX because it invalidates JSON
We already append errors in JSON response in `error` array, so echoing separately is not required.
2020-03-17 16:49:52 +05:30
Christopher Allford ed55034867 Added a check to prevent coupon cent remainders from decreasing the item cost below zero 2020-03-16 21:32:25 -07:00
Rebecca Scott 7adabc9a6a Remove unnecessary use statement 2020-03-17 11:51:50 +10:00
Rebecca Scott 4bdcd3eccd Start tracking product_update 2020-03-17 11:27:57 +10:00
Timmy Crawford 356e5a562f Protect _ui and _ut props, move JS filter below product count 2020-03-16 17:00:25 -07:00
Rua Haszard 0b79a65829 fix various issues with post_contains_text:
- correct table name / prefix
- ensure search string has wildcards before & after
- return value is '0' or '1', fix return logic (was returning 'Yes' no
matter what)
2020-03-17 09:21:31 +13:00
vedanshujain cfed958bac Fix typo 2020-03-16 16:55:09 +05:30
vedanshujain 3ef491631f Better messaging to inform that remote files will not be affected 2020-03-16 16:52:35 +05:30
Rua Haszard 8e6f5da2e1 add cart info to tracker:
- adds a new key 'cart_checkout'
- adds boolean props indicating if store cart & checkout use blocks or shortcodes
2020-03-16 17:21:58 +13:00
Timmy Crawford 2c8195ca8a remove console.log 2020-03-13 17:09:13 -07:00
Timmy Crawford 5880ef902d Add ability to filter props for js-based tracks. 2020-03-13 16:31:06 -07:00
Jeff Stieler 6a8d8b27d9
Fix missing notes table on 4.0.0 upgrade. (#25891)
* Don't attempt to create a WC-Admin note before the tables exist.
2020-03-13 12:20:41 -06:00
Christopher Allford 8c0f4a1204 Made the is_package_shippable check more permissive
Initially it was made more precise to avoid calculating estimates for incomplete addresses. Due to some bad working in template files though, as well as historical precedent, we need to change it back.
2020-03-13 09:15:31 -07:00
Rodrigo Primo e61e865a4a Change string for untested WC extensions to avoid confusions
This commit changes the string that is displayed to the users in the system status report page when an old version of a WC extension is installed and it doesn't declare support for the current WC core version.

The original message was:

"WooCommerce Min/Max Quantities - by WooCommerce - 2.4.11 - 2.4.12 is available - Not tested with the active version of WooCommerce"

The new message is:

"WooCommerce Min/Max Quantities - by WooCommerce - 2.4.11 - This version is not tested with the active version of WooCommerce (update is available)"

The problem with the original message is that it gives users the impression that even the newest version (2.4.12 in the example above) is not tested with the active version of WooCommerce.
2020-03-12 12:01:35 -03:00
Rodrigo Primo 4dde5ee453 Remove unused variable 2020-03-12 11:24:35 -03:00
Rodrigo Primo d067a2bd12 Fix PHP docblock for WC_Plugin_Updates::get_untested_plugins()
The documentation of the method
WC_Plugin_Updates::get_untested_plugins() said that it only considers
active plugins when getting the list of untested plugins, but it
actually considers all installed plugins. This commit simply updates the
documentation to reflect the method behavior.
2020-03-12 11:01:36 -03:00
Rodrigo Primo b9165c66a8 Refactor code that lists plugins to avoid duplication
This commit creates a new method called
WC_Admin_Status::output_plugins_info() that is used to display the
plugins that are installed on the site in the system status report page.
It is used to display both the active and inactive plugins sections and
it was created to remove code duplication.

I don't think that adding this code as a method to WC_Admin_Status is
an ideal solution but it is the best that I could think and it is better
than duplicating code. Suggestions of other places are welcome.
2020-03-12 10:47:54 -03:00
vedanshujain 7dad11dfc2 Also used add_query_args for better compatibility 2020-03-12 16:30:08 +05:30
vedanshujain 75c3583ff5 Use admin_url instead of using absolute url to support subfolder installs 2020-03-11 21:30:35 +05:30
vedanshujain 509b2c180d Set usage count as its required by usages query 2020-03-11 20:44:52 +05:30
Rodrigo Primo 83691541c2 Bump WooCommerce version since 4.1.0 development has begun 2020-03-11 11:37:35 -03:00
Denis Dvali 955bb2ca7e Change "products" argument type from array to object. 2020-03-10 17:41:39 +03:00
Rodrigo Primo f32c062739 The db update routine that updates the db version should be the last one
This commit simply changes the order of the database update callbacks
for WC 4.0 to make sure that wc_update_400_db_version is the last one.
2020-03-10 09:31:45 -03:00
Rodrigo Primo cd75870267 Add the wc_update_400_ prefix to db update routine
The db update routine that resets action scheduler migration status was
missing the wc_update_400_ prefix. Doing this for the sake of
consistency.
2020-03-10 09:27:30 -03:00
Timmy Crawford 0c1f468692 Add filter for php-based tracks event properties. 2020-03-09 12:46:40 -07:00
Rodrigo Primo d65cd6204e
Merge pull request #25823 from michaelignacio/fix/25781
Remove guided tour videos link on setup wizard
2020-03-09 09:34:16 -03:00
Peter Fabian 2eca326825 Improve translatability of version string. 2020-03-09 13:07:32 +01:00
vedanshujain 22392546f6 Add documentation links for settings 2020-03-09 10:47:32 +01:00
Michael Ignacio d2a00bff04 Remove mention of guided tour videos on setup wizard 2020-03-08 19:33:28 +08:00
Rodrigo Primo fb1001b14a
Merge pull request #25825 from woocommerce/fix/etc-comma
Add comma before 'etc.' in address 2 placeholder
2020-03-06 14:50:14 -03:00
Rodrigo Primo 1910420896
Merge pull request #24776 from boghy933/feature/24754
Option for free shipping if should ignore discounts or not
2020-03-06 13:10:45 -03:00
Rodrigo Primo 709d3f64a3
Merge pull request #25835 from woocommerce/add-rtl-style-to-obw
Add RTL style to the onboarding wizard
2020-03-06 12:01:12 -03:00
Rodrigo Primo b3724a38c7 Add RTL style to the setup wizard
Kudos to @kadimi who is the original author of this change (see #24623).
I'm doing this commit as we were not able to merge their PR due to a
conflict and we were also not able to cherry-pick their commit as GitHub
is reporting that the PR was created from a unknown repository.
2020-03-06 11:41:38 -03:00
Rodrigo Primo 9b6d66cf1f
Merge pull request #25609 from SamirMahmudzade/patch-3
Update KZT (₸) symbol wc-core-function.php
2020-03-06 11:36:11 -03:00
Rodrigo Primo e1aaa6c63c
Merge pull request #25611 from tyrann0us/patch-1
Fix typo in DocBlock of `woocommerce_template_loop_product_link_close()`
2020-03-06 09:26:31 -03:00
Rodrigo Primo 5ef13786e4
Merge pull request #25830 from woocommerce/fix/wc-admin-system-status-logic
Update system status info about WC Admin.
2020-03-05 15:31:20 -03:00
Peter Fabian a9e262cb38 Make inactive plugin more visually distinctive. 2020-03-05 19:19:20 +01:00
Peter Fabian 381386bdaf Rename $path to prevent clashing with global variable. 2020-03-05 19:11:56 +01:00
grigorijurasov 06f44f386b Update wc-core-functions.php 2020-03-05 18:41:14 +01:00
Rodrigo Primo e39db20eca
Add woocommerce_emogrifier action (#25829)
* add woocommerce_emogrifier action

* fix formating issue

* fix formating, again :"
;
2020-03-05 14:02:29 -03:00
Rodrigo Primo b53bde72d9
Merge pull request #25811 from adams-specialty-products/master
Fixes "screen-reader-text" label_class set as string
2020-03-05 13:59:41 -03:00
Rodrigo Primo e12b2a0af7
Merge pull request #25728 from leanzafrancesco/add/can-restock-refunded-items-filter
Add woocommerce_can_restock_refunded_items filter
2020-03-05 13:53:53 -03:00
Peter Fabian 0bd518cf52 Update system status info about WC Admin.
The check now also tests whether wc admin is active to prevent notice about undefined constant when running on WP 5.2 and older, or with inactive WC Admin.
2020-03-05 17:50:55 +01:00
Rodrigo Primo 8e006a962f
Merge pull request #25826 from jobthomas/jobthomas-help-tab-review
"Help" tabs review
2020-03-05 13:48:56 -03:00
Rodrigo Primo e40ddc5291
Merge pull request #25727 from leanzafrancesco/add/order-tax-location-filter
Add woocommerce_order_get_tax_location filter
2020-03-05 13:48:40 -03:00
Peter Fabian 9b42f6a4fc
Merge pull request #25828 from woocommerce/fix/admin-notices
Display only wc-admin notices when enabled to avoid duplicate notices
2020-03-05 16:47:09 +01:00
Christopher Allford d165f91c71
Merge pull request #25682 from woocommerce/fix/25637
Escape MaxMind database URL
2020-03-05 07:44:50 -08:00
Claudio Sanches 85ca36919b
Use urlencode 2020-03-05 11:54:41 -03:00
vedanshujain 9ac9970a77 Also display on selected pages outside of wc-admin 2020-03-05 17:07:10 +05:30
vedanshujain 4b3977868b Display only wc-admin notices when enabled to avoid duplicate notices 2020-03-05 16:53:10 +05:30
Job 1cd3ae0088
Remove the "Education" tab from Help
We still had an education tab there, but we have no active agreements with any of the recommended resources. I think we can just delete thme from core.
2020-03-05 11:39:08 +02:00
Job 1bac3ae62c
Updated the Help & Support tab
The Help & Support tab didn't correspond in terminology to what we're using on WooCommerce.com. Notable changes:

* "Helpdesk" --> "WooCommerce.com Support"
* URL for getting help on WooCommerce.com updated
* More active voice in instructions
2020-03-05 11:35:13 +02:00
Albert Juhé Lluveras 515f5604f4 Add comma before 'etc.' in address 2 placeholder 2020-03-05 10:31:19 +01:00
Rodrigo Primo 05cfc7eece Add @since tag to get_woocommerce_currency_symbols()
See #25733
2020-03-04 16:26:07 -03:00
Rodrigo Primo 62d3a1fa44 Fix typo 2020-03-04 16:25:33 -03:00
Rodrigo Primo c529273973
Merge pull request #25733 from TimBHowe/fix/25732
Added the get_woocommerce_currency_symbols function to allow develope…
2020-03-04 16:23:50 -03:00
Rodrigo Primo 0aa438e031 Add version to @since tag of WC_Coupon_Data_Store_CPT::updated_props
See #25755
2020-03-04 15:57:17 -03:00
Rodrigo Primo 831b02a0a6
Merge pull request #25755 from nefeline/fix/undefined-property-coupon-post-meta-update
Fix > Undefined property error when updating the coupon post meta
2020-03-04 15:56:24 -03:00
Daniel Morell 7b7934e237
Fixed screen-reader-text label class set as string
The field 'label_class' should be an array not a string. This fix makes it an array.
2020-03-03 14:06:52 -06:00