Commit Graph

18797 Commits

Author SHA1 Message Date
Rodrigo Primo 34e5018137
Merge pull request #23262 from woocommerce/fix/23257
CSV Import - check if sku or id column exists when updating products from csv
2019-07-09 14:25:03 -03:00
alerobertson b7ab7b81c9 Add tag_operator to products shortcode
Allow user to decide how products are filtered by tag, instead of defaulting to IN
2019-07-09 13:06:35 -04:00
Claudio Sanches 92253ea862
Merge pull request #23773 from woocommerce/fix/23744
PayPal pass billing address when shipping address option disabled
2019-07-09 12:48:07 -03:00
vedanshujain dd783615cc Use helper method instead of `wp_list_pluck` to avoid notices
In country locales, many times configuration for postcodes may not be defined. In these cases, using `wp_list_pluck` will throw notices.

We now use a small helper method to extract post code configuration from country locales.
2019-07-09 18:13:27 +05:30
Diego f95f73c548 Added arguments to filter `woocommerce_ajax_order_item` 2019-07-09 13:31:47 +01: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 Potgieter a7b6d7bfa4
Merge pull request #24024 from woocommerce/fix/23917/code
Round late when rounding at subtotal to reduce rounding error.
2019-07-09 11:05:40 +02:00
Gerhard Potgieter 013ee83b47
Merge pull request #23189 from woocommerce/tracks/coupons
Tracks: Add coupons view events
2019-07-09 11:04:43 +02:00
Gerhard 7038c73ab4 Merge branch 'master' into update/exclude-compiled-assets-from-git 2019-07-09 10:57:40 +02:00
Claudio Sanches 01f5a09d27
Merge pull request #23338 from woocommerce/update/23335
More useful actions in during CRUD save events
2019-07-08 18:56:14 -03:00
Claudio Sanches 55692cba87
Merge pull request #23255 from woocommerce/shopify-column-mapping
Mapping for default Shopify fields
2019-07-08 18:53:57 -03:00
Claudio Sanches c1223e3890 Fixed meta: label 2019-07-08 18:52:03 -03:00
Claudio Sanches 8b04f8d6cc
Merge pull request #23150 from woocommerce/fix/23135
Made WooCommerce roles translatable
2019-07-08 18:39:33 -03:00
Claudio Sanches fb19ffe48f Avoid infinity loop caused by PHP warning 2019-07-08 18:38:03 -03:00
Claudio Sanches db06d3dbae Merge branch 'master' into update/22164-tax-rate-class-table 2019-07-08 18:12:23 -03:00
Claudio Sanches b54997d9f5 Merge branch 'fix/23221' of https://github.com/senff/woocommerce into senff-fix/23221 2019-07-08 17:55:07 -03:00
Claudio Sanches adc543f8f1
Merge pull request #24058 from woocommerce/add/wc-admin-obw-recommended
OBW: Add wc-admin to recommended page
2019-07-08 16:56:49 -03:00
Claudio Sanches c131225825
Merge pull request #24050 from woocommerce/update/23930
Add support for namespaced Jetpack tracks_get_identity
2019-07-08 16:48:01 -03:00
Claudio Sanches a4b8184464
Merge pull request #23950 from parmarhardip/fix-23944
Currency changes applied for 'São Tomé and Príncipe dobra' and 'Mauritanian ouguiya'
2019-07-08 16:12:53 -03:00
Claudio Sanches da99bc8ca0 Merge branch 'master' into feature/feature-plugin-packages 2019-07-08 14:33:21 -03:00
Paul Sealock 2d2ef711b8 Pass in select id 2019-07-08 11:41:52 +12:00
Paul Sealock bc23340909 Use #doaction to target bulk actions 2019-07-05 17:02:30 +12:00
Paul Sealock 7af9d1813d Tracks: Add coupons view events 2019-07-05 16:46:58 +12:00
Paul Sealock 8777dc4c01 Revert title to WooCommerce Admin 2019-07-05 16:11:35 +12:00
Paul Sealock 1116e5516d update 'free' usage and wc-admin description 2019-07-05 16:10:10 +12:00
Rodrigo Primo b648647893
Merge pull request #23741 from woocommerce/feature/23728
Allows customize buyer name in orders list screen
2019-07-04 16:23:43 -03:00
Rodrigo Primo 9eed45af4e
Merge pull request #23740 from woocommerce/fix/23735
Rename "Postcode / ZIP" to "Postal code" when select Canada
2019-07-04 16:20:11 -03:00
Rodrigo Primo 4de12633d6
Merge pull request #24073 from woocommerce/fix/status-helper-disconnected-typo
Fix missing space and closing <strong> tag in WooCommerce.com disconnect message
2019-07-04 16:05:59 -03:00
Rodrigo Primo 9325e233d7
Merge pull request #23190 from woocommerce/tracks/status-events
Tracks: Status page events
2019-07-04 15:21:07 -03:00
oscargare 2c8e45830a Added new action "woocommerce_product_read" (#23181)
* Added new action "woocommerce_read_product_data"

* Added new action woocommerce_product_read
2019-07-04 14:17:34 -03:00
vedanshujain 8ab6cb2b5a Round late when rounding at subtotal to reduce rounding error.
We were earlier rounding different tax rate values while they are merged, even if rounding at subtotal setting is enabled. This increases the rounding error, especially when prices are inclusive of taxes, and thus there is a chance that the total will be slightly different from when add the original values. For egs: https://github.com/woocommerce/woocommerce/issues/23917 .

This commit changes this behavior to round *after* we have summed all the precise unround values. Similar for items prices, we now round as late as possible, if rounding at subtotal is enabled.
2019-07-04 22:34:29 +05:30
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 Potgieter 213e52852c
Merge pull request #23968 from woocommerce/fix/23954
Allow display multiple error messages through registration validation
2019-07-04 13:17:39 +02:00
Gerhard Potgieter a91d271ae2
Merge pull request #23776 from woocommerce/fix/23699
Moved the JS enqueue from get_instance_form_fields to admin_footer hook.
2019-07-04 13:13:35 +02:00
Gerhard Potgieter 12fbfa5677
Merge pull request #22927 from woocommerce/update/22895
Allow "Thanks" wording in emails to be reworded by admin
2019-07-04 12:43:00 +02:00
Gerhard 52ef1d0b5f Remove esc_html call, it messes with the code tags. 2019-07-04 11:33:05 +02:00
Gerhard Potgieter c484fdd6d9
Merge pull request #24023 from woocommerce/fix/engine-php-notice
DB received `ENGINE` instead of `engine`, so PHP notices appear
2019-07-04 10:55:03 +02:00
Gerhard d4eb233843 Deprecate email_footer_replace_site_title and use replace_placeholders 2019-07-04 09:36:05 +02:00
Daniel Bitzer 20625e9a45 Fix missing space and closing <strong> tag
Strong tag was not being echoed and space was missing after full stop.
2019-07-04 16:57:50 +09:30
Gerhard Potgieter c3a25bb6bf
Merge pull request #23884 from woocommerce/fix/23875
Prevents taxes columns from being removed when the order is no longer editable
2019-07-04 09:25:49 +02:00
Gerhard Potgieter 007fc457a3
Merge pull request #24020 from woocommerce/fix/plural-forms-usage
Correct singular form usage in class-wc-admin-report.php
2019-07-04 09:23:14 +02:00
Gerhard Potgieter 762f051080
Merge pull request #24071 from woocommerce/add/action_log-excluded-comment-type
WC_Comments: Add action_log to excluded types in wp_count_comments
2019-07-04 09:18:03 +02:00
Gerhard Potgieter 54cab8086c
Merge pull request #23998 from yash-webkul/patch-1
Update class-wc-ajax.php
2019-07-04 09:17:03 +02:00
Gerhard 5d604329fc Reword postfix to suffix 2019-07-04 09:07:02 +02:00
Gerhard 9e2ba43d3b Forgot the 9 2019-07-04 09:05:05 +02:00
Gerhard 164f09e9c7 Remove abiguous characters that are dificult to read. 2019-07-04 09:00:15 +02:00
Paul Sealock 08224c06f2 Add facebook and wc-admin to 'obw_recommended' Tracks event properties 2019-07-04 13:07:18 +12:00
Timmy Crawford e5b9f508bc WC_Comments: Add action_log to excluded comment_types in wp_count_comments 2019-07-03 15:06:21 -07: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
Mark Senff 9c013b132b
Update html-product-attribute.php 2019-07-03 07:30:32 -04:00
Gerhard 8a972ee5c3 Add check for empty string when checking meta_value since checking an empty string in mysql against an int results in a 0 value. 2019-07-03 12:37:28 +02:00
Gerhard 7ff9788450 Use plugin_path instead of plugin_url. 2019-07-03 11:49:51 +02:00
Gerhard 77e8e36f72 Add notice when assets are not built, introduce grunt assets task for compiling and minifying assets. 2019-07-03 11:46:28 +02:00
Paul Sealock 01f428d34f install plugin 2019-07-03 13:12:24 +12:00
Paul Sealock b65ce3dd26 OBW: Add wc-admin to recommended page 2019-07-03 13:02:07 +12:00
Peter Fabian 6727fdba62 Updated constants' names to better reflect their usage. 2019-07-02 18:44:43 +02:00
Claudio Sanches cb12b30c85 Fixed @since tag version 2019-07-02 12:51:36 -03:00
Rodrigo Primo 737f6af5e8 Introduce file type check for tax rate importer 2019-07-02 10:44:21 -03:00
Rodrigo Primo cabf9de71a Added nonce check to CSV importer actions 2019-07-02 10:37:46 -03:00
Rodrigo Primo 18813662dd Fix link to documentation about WordPress and PHP minimum requirements 2019-07-02 09:19:39 -03:00
Gerhard f74c32c17b Add return 2019-07-02 10:25:32 +02:00
Gerhard e08279d190 Add support for namespaced Jetpack tracks_get_identity from Jetpack 7.5 2019-07-02 10:20:57 +02:00
Jeff Stieler 3bf58f2d48 Tracks: fix blog ID retrieval from Jetpack options.
JavaScripty syntax resulted in boolean values.
2019-06-27 14:15:17 -06:00
Boro Sitnikovski a7f5d87f5e DB received `ENGINE` instead of `engine`, so PHP notices appear 2019-06-27 17:34:08 +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
Rodrigo Primo f3b0d755fd Correct singular form usage in class-wc-admin-report.php
For more information see https://github.com/woocommerce/woocommerce/issues/24004
2019-06-27 11:03:35 -03:00
Rodrigo Primo 3f2cacb1be Use phpcbf to fix phpcs violations in class-wc-admin-report.php 2019-06-27 10:48:31 -03:00
Rodrigo Primo 12d03d8d57
Merge pull request #23863 from Jon007/patch-2
Avoid attempting to cache expired sessions
2019-06-27 10:15:39 -03:00
Gerhard Potgieter 698625ce1d WP & PHP Upgrade Notices (#23975)
This commit introduces a banner that notifies and prompts users to upgrade their WordPress and/or PHP if they are outdated and not part of the minimum required versions going into WooCommerce 3.7.

* Add backward compatible function wp_check_php_version for sites running WP version smaller than 5.1

* Refactor some messaging, move widget to top of WC dashboard widgets, add buttons linking out to WP pages with instructions.

* Add missing variables for adding nag class

* Add styling to dashboard widget

* Rework css to use exclamation instead

* Clean up widget, make sure no widget is registered when dismissed. Add banner that links to widget and make it dismissable.

* Update constant to reflect minimum requirements.

* Don't show banner. Fix undefined variable.

* Remove dashboard widget

* Update banner link to docs site

* Add link to docs page where instructions live for updating

* Change button text

* Add UTM params to docs link

* Moved the msg logic from template to php file.

* Bail out early when PHP and WP versions are ok.

* Added missing translation functiog

* Extracted notice function from reset_admin_notices.

To follow suit with other similar functions in the file.

* Synchronize fetching of WP version.

* Removed unused functions.

* Corrected indent.

* Reduce number of variables and fixed coding standards

* Updated wording of the notice.
2019-06-26 14:09:20 -03:00
Mike Jolley a0a58cfb15 update from master 2019-06-26 15:26:47 +01:00
Mike Jolley 48e1dc5bec Remove init_packages from class-woocommerce 2019-06-25 13:12:14 +01:00
MD0123-Hardip 60cafccb37 added new line in update-function.php file 2019-06-25 15:20:26 +05:30
MD0123-Hardip 530d53c428 added new 370 function for currency updater. 2019-06-25 15:17:16 +05:30
Yash Kapoor 84fd2bbca9
Update class-wc-ajax.php
Removed unused code.
2019-06-25 10:58:56 +05:30
Claudio Sanches deec93f8ca
Merge pull request #23769 from mch0lic/master
Forward query (GET) parameters when executing a batch REST API request.
2019-06-24 12:39:36 -03:00
Claudio Sanches 1f73c63a57
Merge pull request #23909 from woocommerce/fix/23895
Explicitly check 0 value attributes when looking up variations.
2019-06-24 12:35:39 -03:00
Claudio Sanches 45f1ac63e0
Merge pull request #23935 from malviyaritesh/fix/23931-sale-tooltip
Change misleading tooltip for product sale meta box
2019-06-24 12:35:04 -03:00
Claudio Sanches fe4dfea8eb
Merge pull request #23771 from woocommerce/fix/23756
Fix Top rated shortcode results
2019-06-24 12:18:57 -03:00
Claudio Sanches 912ee38836
Merge pull request #23812 from woocommerce/fix/rest-api-customers-type
Fixed a typo in customers endpoint
2019-06-24 12:18:15 -03:00
Claudio Sanches 606c0417a9
Merge pull request #23837 from woocommerce/fix/23834
Make NL postcode validation more flexible
2019-06-24 12:17:53 -03:00
Claudio Sanches 8d0e2f632b
Merge pull request #23878 from woocommerce/fix/23865
Shows city as an optional field for Singapore
2019-06-24 12:17:30 -03:00
Claudio Sanches c04f7b79f9
Merge pull request #23919 from woocommerce/fix/codex-memory-limit-link
Updated documentation about increasing memory allocated to php
2019-06-24 12:12:11 -03:00
Claudio Sanches 35c4183cad
Merge pull request #23966 from woocommerce/fix/23946
Fixed database update tool, fixing System Status, REST API and CLI
2019-06-24 12:11:47 -03:00
Claudio Sanches 09408d9296
Merge pull request #23967 from woocommerce/fix/23947
Fix phone number format to accept "(", and ")"
2019-06-24 12:09:09 -03:00
Mike Jolley 558a330291 Update version/path getters 2019-06-21 20:00:03 +01:00
Mike Jolley 6bfe8d63c5 Load Packge files 2019-06-21 19:58:38 +01:00
Mike Jolley d31f6f70a2 Package init method 2019-06-21 17:28:46 +01:00
Mike Jolley e3dc79481d Init the blocks library using autoloading 2019-06-21 15:03:28 +01:00
Mike Jolley ed0a4aae1f update shipping saving in setup wizard 2019-06-21 13:59:51 +01:00
Mike Jolley 3a1c401a5b update status report 2019-06-21 13:59:40 +01:00
Mike Jolley 833ad116c6 Update webhooks 2019-06-21 13:59:32 +01:00
Mike Jolley ab37649474 get_endpoint_data helper 2019-06-21 13:59:25 +01:00
Mike Jolley 5b105d0c7f Init the API and add to status report 2019-06-21 13:40:53 +01:00
Mike Jolley 950f31a9e0 Remove abstract rest class that is in the package 2019-06-21 13:40:10 +01:00
Mike Jolley 8b41b03f2e Remove blocks files 2019-06-21 12:23:41 +01:00
Gerhard 9212ee5082 Add check before calling wc_delete_order_item for taxes to make sure order is editable. 2019-06-20 15:01:01 +02:00
Peter Fabian a6a26633a4 Removed extra check if the code is executed within admin. 2019-06-20 14:07:52 +02:00
MD0123-Hardip a01d59e581 added db currency updater for both currency 2019-06-20 16:17:23 +05:30
Claudio Sanches 02aafa1948
Merge pull request #23911 from woocommerce/update/23887
Update auto username generation description
2019-06-19 20:22:02 -03:00