Christopher Allford
30fd538acf
Added function_exists check to COD gateway settings check
2020-02-06 10:03:26 -08:00
Peter Fabian
422d8787f5
Updated version to 4.0.0-beta.1
2020-02-06 14:00:43 +01:00
Peter Fabian
7233dc8a2e
Merge pull request #25011 from woocommerce/try/add-wc-admin
...
wc-admin: Include package
2020-02-06 12:09:25 +01:00
Peter Fabian
ee865fe0b4
Merge pull request #25504 from woocommerce/update/order-detail-summary
...
Enhance order details and payment summary
2020-02-06 11:40:45 +01:00
Claudio Sanches
4de580dca8
Merge pull request #25573 from mgibbs189/master
...
Adds a `woocommerce_shortcode_products_query_results` hook
2020-02-05 18:42:06 -03:00
Peter Fabian
5c23d013d7
Added info about packages to System Status Report.
2020-02-05 21:54:05 +01:00
Rodrigo Primo
44ecb0ec9e
Only display the "Paid by customer" section if the order has been paid
...
This commit changes the condition in the if the statement that decides
whether or not to display the "Paid by customer" section in the order admin
page. Before it, this section was displayed for all orders that
contained one of the following statuses: 'processing', 'completed' or 'refunded'.
The problem with this approach is that offline payment gateways, like
'Cash on Delivery', set the order status to processing when the order is
placed but before the customer pays for it. So the "Paid by customer"
section was being displayed in some cases where the order was not
actually paid yet creating a confusing experience to store managers.
To fix this, this commit also checks for the presence of the
`_date_paid` order meta. If this order meta is present and the order
status corresponds to one of the three statuses listed above, it means that
the order has been paid and we can display the "Paid by customer"
section. If this order meta is not present, we don't display the "Paid
by customer" section.
2020-02-05 16:08:13 -03:00
Rodrigo Primo
7c9d6110e2
Fix typo in code comment
2020-02-05 15:48:40 -03:00
Peter Fabian
d3a33f8d05
Merge pull request #24943 from woocommerce/refactor/eu-vat-brexit
...
Brexit and VAT refactor
2020-02-05 19:41:40 +01:00
Peter Fabian
b385404861
Fixed deprecated since version.
2020-02-05 19:18:08 +01:00
Matt Gibbs
f57f1c6293
Requested commenting & hook tweaks
2020-02-05 13:08:40 -05:00
Christopher Allford
92708dde1f
Merge pull request #25512 from woocommerce/fix/25438.2
...
Fixed unnecessary loading when constructing COD payment gateway
2020-02-05 10:02:38 -08:00
Peter Fabian
46dd915044
Improve coupon notice handling.
2020-02-05 18:50:40 +01:00
Peter Fabian
5ba2cdafa5
Merge pull request #25183 from om4james/webhook-de-duplication
...
Fix for Duplicate Webhook deliveries
2020-02-05 18:38:15 +01:00
Peter Fabian
fe9a5be828
Merge pull request #25528 from woocommerce/update/wccom-installer-api-authentication
...
Use query params as fallback for obtaining authentication data in plugin installer API
2020-02-05 18:13:06 +01:00
Claudio Sanches
5b9937ad48
Merge branch 'master' into try/add-wc-admin
2020-02-05 13:02:51 -03:00
Christopher Allford
8140f7e0a1
Extracted shipping method loading for COD field into its own method
2020-02-05 06:59:02 -08:00
Christopher Allford
2f024ff024
Added tab check to COD gateway options loading
2020-02-05 06:49:33 -08:00
Claudio Sanches
2dbebdfb29
Updated deprecated message
2020-02-05 11:20:23 -03:00
Claudio Sanches
f5d2c98c3e
Updated unit test
2020-02-05 11:16:29 -03:00
Claudio Sanches
aa9082d54d
Fixed variable
2020-02-05 11:11:46 -03:00
Claudio Sanches
8b2651a353
Deprecated old method
2020-02-05 11:11:24 -03:00
Rodrigo Primo
f539d3e04b
Merge branch 'master' into update/emogrifier
2020-02-05 10:01:38 -03:00
Rodrigo Primo
ff05b06e6b
Merge branch 'master' into update/emogrifier
2020-02-05 09:56:03 -03:00
Peter Fabian
87e42acd56
Merge branch 'master' into try/add-wc-admin
2020-02-05 13:02:20 +01:00
vedanshujain
946aecae9e
Show notice when logged in user pays for gues order
2020-02-05 15:42:15 +05:30
Jeff Stieler
3cf9d76ed4
Fix wc_admin_daily event schedule persistence.
...
Avoid an option update race condition.
2020-02-04 16:04:27 -08:00
Christopher Allford
b9ceabaa52
Utilized the constants package to fix the failing tests
2020-02-04 15:50:23 -08:00
Christopher Allford
1d15df860e
Merge branch 'master' into fix/25438.2
2020-02-04 15:06:26 -08:00
Christopher Allford
57734ca8ce
Merge branch 'master' into refactor/add-jetpack-constants
2020-02-04 14:36:35 -08:00
Christopher Allford
4ae1e1f5fc
Extracted the repetitive Constants::get_constant( 'WC_VERSION' ) calls where possible
2020-02-04 14:02:57 -08:00
Peter Fabian
147266f44f
Updates to reflect PR feedback.
2020-02-04 21:43:29 +01:00
Matt Gibbs
e4e0755bbc
Adds a `woocommerce_shortcode_products_query_results` hook
...
This hook makes it easier to grab a shortcode's results (product IDs, pager data)
2020-02-04 15:01:56 -05:00
MD Sultan Nasir Uddin
95ef4544a2
Fix get_discount function return type ( #25567 )
...
* Fix get_discount function return type
2020-02-04 16:59:26 -03:00
Claudio Sanches
6d123e0cc3
Tweaks on style inline method
2020-02-04 16:27:20 -03:00
Peter Fabian
5001e14086
Renamed Discounts to Coupons.
2020-02-04 18:27:53 +01:00
Claudio Sanches
6eb74eef8a
Merge pull request #25572 from woocommerce/update/25418
...
Bump template versions for #25418
2020-02-04 14:22:47 -03:00
Claudio Sanches
e0ee96cd37
Merge pull request #25418 from helgatheviking/feature/quantity-placeholders
...
Add support for placeholders in quantity inputs
2020-02-04 14:05:39 -03:00
Claudio Sanches
f021a6559f
Merge pull request #25562 from woocommerce/fix/25560
...
Removed WC Admin from the Setup Wizard if it's already active.
2020-02-04 14:03:55 -03:00
Peter Fabian
e5e5d5997e
Better name for the new function.
2020-02-04 17:53:28 +01:00
Peter Fabian
0bd2730963
Merge pull request #25253 from rohanvakharia/master
...
Fixed the datatype for min_price & max_price size
2020-02-04 17:44:37 +01:00
Claudio Sanches
6f37df1961
Merge pull request #25502 from woocommerce/fix/25488
...
[4.0] Remove wc-admin install nudge.
2020-02-04 13:19:57 -03:00
Claudio Sanches
3fa9c79d94
Remove old notice file
2020-02-04 13:17:36 -03:00
Claudio Sanches
94d1b742ad
Merge pull request #25545 from woocommerce/prep/after-3.9
...
Bumped versions for the upcoming release.
2020-02-04 13:05:27 -03:00
Claudio Sanches
ab147f7a71
Merge pull request #25532 from woocommerce/update/wccom-helper-api-authentication
...
Add query params as fallback for passing authentication data to WC Helper API
2020-02-04 13:04:11 -03:00
Rohan V
e2cb1dea73
Fix codestyle
2020-02-04 19:44:05 +05:30
Rohan Vakharia
4be33acd66
Merge branch 'master' into master
2020-02-04 19:23:22 +05:30
Peter Fabian
52e335ae5c
Merge pull request #25428 from woocommerce/update/product-lookuo-table-tax-columns
...
Add product lookup table tax columns
2020-02-04 14:20:50 +01:00
Peter Fabian
4a506ebcf7
Merge pull request #25530 from woocommerce/fix/country-region-label
...
Fix/country region label
2020-02-04 13:54:22 +01:00
Peter Fabian
e971d14265
Updated the privacy-related strings as well.
2020-02-04 13:25:47 +01:00
Peter Fabian
57917c8fa2
Merge pull request #25404 from woocommerce/update/action-scheduler-external
...
move action scheduler to external via composer
2020-02-04 11:39:48 +01:00
vedanshujain
ee274be95a
Modified "Country" to "country / Region" for more inclusiveness
2020-02-04 13:46:13 +05:30
Peter Fabian
7a24aaecd5
Updated versions to 4.0.
2020-02-03 23:36:52 +01:00
Peter Fabian
d588218eb6
PHPCS
2020-02-03 23:18:12 +01:00
Peter Fabian
12fe0e6815
Corrected tax amount displayed in the summary.
2020-02-03 23:09:59 +01:00
Peter Fabian
f9c9498e7c
Replaced deprecated call with a substitute function.
2020-02-03 23:09:19 +01:00
Christopher Allford
bf02776a3b
Corrected inconsistent uses of the Constants library
2020-02-03 13:15:12 -08:00
Christopher Allford
c5e1fc6c45
Merge remote-tracking branch 'origin/master' into refactor/add-jetpack-constants
2020-02-03 11:50:16 -08:00
Denis Dvali
e496d6ea3f
Adding doc comments to comply with coding standard.
2020-02-03 22:14:00 +03:00
Peter Fabian
04c4732e13
Unified the check for presence of WC Admin.
2020-02-03 18:04:18 +01:00
Peter Fabian
aa8e8992cc
Merge branch 'master' into fix/25560
...
# Conflicts:
# includes/admin/class-wc-admin-setup-wizard.php
2020-02-03 17:59:24 +01:00
Peter Fabian
670dbbc5e7
Removed WC Admin from the OBW if it's already active.
...
Also, removed info about plugin installation if the plugin is active.
2020-02-03 17:41:50 +01:00
Peter Fabian
152a5cd52c
Merge pull request #25527 from woocommerce/fix/25526
...
Use enable onboarding path instead of manually setting onboarding option
2020-02-03 17:18:02 +01:00
Rohan V
0d9462d110
Fix for existing column
2020-02-03 19:50:37 +05:30
Denis Dvali
15ad616a2f
Pass request uri argument for more explicit function call.
2020-02-03 15:47:04 +03:00
Denis Dvali
b6be0b31f8
Add arguments declaration for install REST API endpoint.
2020-02-03 14:23:03 +03:00
Christopher Allford
1d1413b4ee
Replaced direct access of many constants with the Constants library
2020-01-31 22:18:47 -08:00
Peter Fabian
132ced6039
Fixed test for 4.0.
2020-01-31 21:05:50 +01:00
Peter Fabian
e83934edff
Bumped versions for the upcoming release.
2020-01-31 17:53:02 +01:00
Ron Rennick
e242d84877
fix merge conflicts
2020-01-31 10:11:01 -04:00
Peter Fabian
331b953c0c
Harmonize aria-label with other labels.
2020-01-31 08:59:52 +01:00
Peter Fabian
e87cea8688
Merge pull request #25501 from woocommerce/fix/25487
...
[4.0] Increase Onboarding A/B Test to 50%
2020-01-31 08:54:14 +01:00
Joshua Flowers
236bae9b6a
Check for wc_admin_url function in onboarding redirect
2020-01-31 10:56:44 +08:00
Joshua Flowers
28af08a1cb
Move exit
2020-01-31 10:52:49 +08:00
Claudio Sanches
0bec8443f4
Merge pull request #25137 from woocommerce/fix/24936
...
Only update the customer IP address when order gets created from admin
2020-01-30 19:41:08 -03:00
Claudio Sanches
0883b5b977
Merge pull request #24907 from princeahmed/master
...
remove unnecessary codes
2020-01-30 15:32:30 -03:00
Claudio Sanches
9974083903
Merge pull request #25474 from woocommerce/remove-hash-equals
...
Remove hash_equals() polyfill as it is no longer needed
2020-01-30 14:54:36 -03:00
Peter Fabian
248e69960b
Merge branch 'master' into update/order-detail-summary
2020-01-30 17:41:32 +01:00
Peter Fabian
ec8d477b09
PHPCS fix.
2020-01-30 17:09:33 +01:00
Denis Dvali
9e25706467
Add query params as fallback for passing authentication data to WC Helper API.
2020-01-30 15:17:50 +03:00
Peter Fabian
7c07b192af
Changed country to country/region label.
2020-01-30 12:42:41 +01:00
林博仁(Buo-ren Lin)
4887159146
Use "Country / Region" for country selection drop-down label to (try to) avoid political complaints ( #24425 )
...
Due to the One China Policy, vendors will be blamed on if a certain region is labeled as either "Country" or "Province of Country", avoid this problem in advance by generalizing the label of selecting them.
Refer-to: #24237 add Hong Kong, Taiwan as Chinese states; fix name of Macao by nobodxbodon · Pull Request #24425 · woocommerce/woocommerce <https://github.com/woocommerce/woocommerce/pull/24425 >
Signed-off-by: 林博仁(Buo-ren Lin) <Buo.Ren.Lin@gmail.com>
2020-01-30 12:26:35 +01:00
Denis Dvali
cdb611e924
Small refactor to improve readablity.
2020-01-30 12:56:52 +03:00
Denis Dvali
ed918f5105
Adding fallback in case "Authorization" or "X-Woo-Signature" headers are not present.
...
Check if access token and request signature set in query arguments if the headers are missing.
2020-01-30 12:53:57 +03:00
Peter Fabian
00f8e787be
Bumped version string.
2020-01-30 10:16:19 +01:00
Joshua Flowers
74917a1548
Use enable onboarding path instead of manually setting onboarding option
2020-01-30 12:52:05 +08:00
Claudio Sanches
2cb564d0ab
Updated since tag to 3.10.0
2020-01-29 18:35:07 -03:00
Christopher Allford
ceeba16014
Merge pull request #24919 from TimBHowe/fix/20921
...
Fix/20921 - Throw error for invalid character in flat rate cost.
2020-01-29 13:32:49 -08:00
Christopher Allford
53e0087318
Merge remote-tracking branch 'origin/master' into refactor/add-jetpack-constants
2020-01-29 12:31:29 -08:00
Claudio Sanches
a52287c824
Remove old Emogrifier library
2020-01-29 15:57:45 -03:00
Claudio Sanches
382e17817a
Use Emogrifier composer package
2020-01-29 15:57:22 -03:00
Claudio Sanches
2ec4492074
Simplify MaxMind integration title
2020-01-29 13:43:27 -03:00
Christopher Allford
6ad091a9b7
Changed all of the constant accesses into corresponding Automattic\Jetpack\Constants usages
2020-01-28 21:21:29 -08:00
Rodrigo Primo
3d97718094
Merge pull request #25485 from woocommerce/update/25336
...
Allow filter file path on WC_Download_Handler::download_product()
2020-01-28 20:41:21 -03:00
Christopher Allford
bb09a8a4ea
Prevented the COD payment gateway's "enable_for_methods" option loading outside of correct use-cases
...
Note: The tests fail in this commit because of the defines. Ran individually there are no problems, but I'm going to make another PR to merge in a package to make testing constants possible, and then come back to fix this after it gets merged.
2020-01-28 14:33:53 -08:00
Claudio Sanches
cacf5c4f91
Merge pull request #25472 from woocommerce/fix/25463
...
Apply rounding only if value is integer to display "-" when needed.
2020-01-28 18:09:22 -03:00
Rodrigo Primo
151984a9cd
Merge pull request #25489 from woocommerce/fix/25338
...
Check if wp_delete_user() exists before use
2020-01-28 17:34:30 -03:00
Rodrigo Primo
6d96acbcce
Merge pull request #25496 from gerdneuman/patch-1
...
Fix wrong context help for translators
2020-01-28 17:29:28 -03:00
TimBHowe
f488f46b37
remove the pattern constraint on the flatrate input in the setup wiz
2020-01-28 11:01:13 -05:00
TimBHowe
e7a575222a
Updated if statment to allow 0 values
2020-01-28 10:44:37 -05:00
TimBHowe
d377f002aa
Added pattern attribute to the flat rate cost input field to only allow US and EU currency formating
2020-01-28 10:44:37 -05:00
TimBHowe
8b71dc0abb
Updated the wc_setup_shipping_save() function to sanitize the flatrate cost input
2020-01-28 10:44:36 -05:00
Tim Howe
3b5e44ccf1
Added a call to the evaluate_cost function in the sanitize_cost function to throw an exception if there is an illegal character in the input.
2020-01-28 10:44:35 -05:00
Peter Fabian
30dde8f53c
The JS might still be needed as merchants can manage/change settings even for a disabled gateway.
2020-01-28 14:13:03 +01:00
Peter Fabian
217c9d2adc
Fix incorrect comment.
2020-01-28 14:10:10 +01:00
Peter Fabian
8600987591
Functions are not needed when the gateway is disabled.
2020-01-28 14:07:50 +01:00
Peter Fabian
dc9d4496e9
Require order object to prevent error.
2020-01-28 14:06:02 +01:00
David Levin
ee2c6b8096
Change net payment to net total
2020-01-27 21:10:11 -08:00
David Levin
3c92aacfcb
update shipping methods
2020-01-27 19:22:04 -08:00
Timmy Crawford
9bfc7db3fb
Remove wc-admin install nudge.
2020-01-27 09:24:46 -08:00
Timmy Crawford
081afa256c
Change a/b test size of new onboarding to 50 percent.
2020-01-27 09:01:27 -08:00
Claudio Sanches
6aa118c8aa
Added since tag
2020-01-27 13:19:16 -03:00
Claudio Sanches
2a63091829
Fixed coding standards
2020-01-27 13:17:36 -03:00
Claudio Sanches
b3ea0b17b4
Merge branch 'master' into refactor/eu-vat-brexit
2020-01-27 13:15:54 -03:00
Claudio Sanches
f132dbc8e1
Fixed undefined function
2020-01-27 11:49:13 -03:00
gerdneuman
8057946904
Fix wrong context help for translators
...
I found this very confusing at https://translate.wordpress.org/projects/wp-plugins/woocommerce/stable/de/default/?filters%5Bterm%5D=ending+in&filters%5Buser_login%5D=&filters%5Bstatus%5D=current_or_waiting_or_fuzzy_or_untranslated&filter=Filter&sort%5Bby%5D=priority&sort%5Bhow%5D=desc that the comment is wrong for translator.
Here's a fix.
2020-01-26 17:55:17 +01:00
Claudio Sanches
e109258583
Check if wp_delete_user() exists before use
2020-01-24 18:49:21 -03:00
Claudio Sanches
42864cdfdb
Fixed coding standards
2020-01-24 15:01:12 -03:00
Claudio Sanches
86d59257f4
Introduced woocommerce_download_product_filepath filter
2020-01-24 15:00:55 -03:00
Claudio Sanches
30e0c6ad87
Prevent empty notices to get added
2020-01-24 13:31:05 -03:00
Claudio Sanches
9d8dd197b5
Added @version flag in updated notice functions
2020-01-23 16:46:01 -03:00
Rodrigo Primo
8de3e9e839
Merge branch 'master' of github.com:woocommerce/woocommerce
2020-01-23 15:25:48 -03:00
Rodrigo Primo
2cd4ae6fd4
Fix typo
2020-01-23 15:25:12 -03:00
Rodrigo Primo
b7aee86b2c
Remove hash_equals() polyfill that is no longer needed
...
This polyfill was added back in 2015
(1f62a53e0e
). WP includes the same polyfill
since version 3.9.2 and WC requires WP >= 5.0
(7d672c38a4
). So we don't need to maintain our own version of this function anymore.
2020-01-23 14:36:37 -03:00
Rodrigo Primo
1078b4fe87
Merge pull request #25320 from grey-rsi/top-rated-widget-args
...
Add `woocommerce_top_rated_widget_args` filter for WC_Widget_Top_Rate…
2020-01-23 12:31:38 -03:00
Peter Fabian
1f9cd9eae9
Merge pull request #24066 from malviyaritesh/fix/24062
...
Filter meta value even if key not found
2020-01-23 14:59:39 +01:00
vedanshujain
d768fcb139
Apply rounding only if value is integer to display "-" when needed.
2020-01-23 17:36:49 +05:30
Claudio Sanches
8ee6337aea
Move validation to the top
2020-01-22 12:39:19 -03:00
Claudio Sanches
d9cc0910ef
Trim whitespaces and strip slashes from MaxMind License Key
2020-01-22 12:38:10 -03:00
Sergey Ratushnuy
bd647cd9cf
Small fix
2020-01-21 18:03:01 +02:00
Sergey Ratushnuy
2d1ce22e25
Changed filter name
2020-01-21 17:29:58 +02:00
Claudio Sanches
5c169bf54c
Fixed default value for wc_get_customer_default_location()
2020-01-21 11:53:45 -03:00
Christopher Allford
a6981fc1c0
Added a file existence check to the MaxMind country lookup method to prevent warnings
2020-01-20 21:20:32 -08:00
Kathy Daring
917795d78f
Add woocommerce_quantity_input_placeholder filter
2020-01-20 10:27:45 -07:00
Rodrigo Primo
6333d11bc7
Merge pull request #25431 from woocommerce/update/maxmind-integration-docs
...
Updated MaxMind's license key field description
2020-01-20 13:54:38 -03:00
Claudio Sanches
66fcc31f00
Updated MaxMind's license key field description
2020-01-20 13:18:52 -03:00
Christopher Allford
c8c66cabee
Expanded the license key invalid error to consider the case where the key is not active yet
2020-01-20 07:57:44 -08:00
Mike Jolley
2638879bdc
Add columns to schema and update routine
2020-01-20 14:21:42 +00:00
Mike Jolley
314cc8eee6
Add columns to data store
2020-01-20 14:17:42 +00:00
Mike Jolley
083c87338b
Add columns to wc_update_product_lookup_tables
2020-01-20 14:17:25 +00:00
Gerhard Potgieter
dc5712db84
Merge pull request #25426 from rvdsteege/unique-meta-is-vat-exempt
...
Add order meta `is_vat_exempt` with unique meta key.
2020-01-20 14:31:24 +02:00
Gerhard Potgieter
6bed0db518
Merge pull request #25149 from 4selin/feature/25094
...
Address in shipping calculator malformed for Canada #25094
2020-01-20 14:24:35 +02:00
Reüel van der Steege
97456e7d78
Add order meta `is_vat_exempt` with unique meta key.
2020-01-20 12:06:32 +01:00
Rodrigo Primo
4e58f77575
Merge pull request #25322 from woocommerce/pr-25242
...
Prevent fatal error in set_current_gateway with no WC session
2020-01-17 09:54:03 -03:00
Rodrigo Primo
f0ccd9bd50
Merge pull request #25395 from woocommerce/fix/25394
...
Check for the WooCommerce Admin class before adding notice
2020-01-17 09:52:38 -03:00
Kathy Daring
bcb17b62c2
Add support for placeholders in quantity inputs
...
(cherry picked from commit 99eb5074f3
)
2020-01-16 12:47:15 -07:00
Rodrigo Primo
8489d1bd33
Merge branch 'master' into fix/25394
2020-01-16 16:35:43 -03:00
Rodrigo Primo
2668bf6025
Merge pull request #25314 from woocommerce/fix/24746
...
Removed the lowercase conversion of product search terms
2020-01-16 16:29:07 -03:00
Rodrigo Primo
5a7075813c
Merge pull request #25344 from woocommerce/bug/valid_order_status_filter
...
Add second parameter to `woocommerce_valid_order_statuses_for_payment` filter.
2020-01-16 16:01:09 -03:00
Rodrigo Primo
cb85c981ac
Merge branch 'master' into pr-25242
2020-01-16 15:30:58 -03:00