Commit Graph

34420 Commits

Author SHA1 Message Date
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 1926a50426
Merge pull request #25975 from woocommerce/renovate/woocommerce-woocommerce-admin-1.x
Update dependency woocommerce/woocommerce-admin to v1.0.3
2020-03-19 19:31:19 +01:00
Renovate Bot 2a7cb16ab6
Update dependency woocommerce/woocommerce-admin to v1.0.3 2020-03-19 17:40:15 +00:00
Peter Fabian b16acdef6f
Merge pull request #25966 from woocommerce/renovate/woocommerce-action-scheduler-3.x
Update dependency woocommerce/action-scheduler to v3.1.4
2020-03-18 16:47:25 +01:00
Renovate Bot 75d07e9064
Update dependency woocommerce/action-scheduler to v3.1.4 2020-03-18 15:23:38 +00:00
Peter Fabian e6e50c4150
Merge pull request #25961 from woocommerce/bump/wc-admiin-1.0.2
wc-admin: bump version to 1.0.2
2020-03-18 16:20:29 +01: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
Paul Sealock 7213ddb3f7 wc-admin: bump version to 1.0.2 2020-03-18 11:58:14 +13:00
Rodrigo Primo 6b73540e50
Merge pull request #25837 from woocommerce/update-readme-tags
Update readme.txt tags to include 'woo'
2020-03-17 17:30:16 -03: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 f41302bfe8
Merge pull request #25950 from woocommerce/revert-25382-master
Revert "Improved performance when saving variations"
2020-03-17 17:20:56 +01:00
Christopher Allford 917e5ff77d
Merge pull request #25923 from woocommerce/fix/test-install-db-socket
Correct usage of database sockets in test install script
2020-03-17 09:08:18 -07:00
Christopher Allford 1358cca6d1
Revert "Improved performance when saving variations" 2020-03-17 08:55:09 -07: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
Christopher Allford 98395741cf Changed the default test file locations to respect the system's tmp folder 2020-03-13 20:44:43 -07:00
Christopher Allford 5f829d4005 Corrected the handling of sockets in the unit test install script 2020-03-13 20:44:38 -07:00
Christopher Allford a576060403 Replaced the strict path used in the MaxMind database download test
It was set to /tmp directly instead of using the sys_get_temp_dir() method, leading to failures on systems with a different temp folder location,
2020-03-13 20:44:35 -07: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
Steve Grunwell d085044970 Remove an unnecessary onNotSuccessfulTest() override, as the tearDown() fixture will be called regardless of the successfulness of the test method 2020-03-12 16:00:01 +00:00
Steve Grunwell 0a5161ea3d *CODING STANDARDS ONLY* Add method visibility, clean up inline documentation. 2020-03-12 15:57:32 +00:00
Steve Grunwell 2383670020 Simplify the test for test_get_tables_enables_filter() now that we can leverage PHP >= 5.3 2020-03-12 15:54:25 +00: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
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
Steve Grunwell 7f74eace0b Rewrite WC_Tests_Install::test_get_tables()
Instead of comparing all tables that exist with all tables that are registered with `WC_Install::get_tables()` (which was only introduced a few versions ago in #19436), rewrite the test to verify that all of the tables *registered* actually exist within the database.

This will prevent tests from failing when, for example, they're run against databases that may or may not have additional plugins installed/activated. This also prevents tests from failing when running WooCommerce 4.x (e.g. with WooCommerce Admin) on WordPress < 5.3, since the tables are created but the callback to register the custom tables is never hooked.
2020-03-12 15:00:03 +00: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
Vedanshu Jain 0a351fb2aa
Merge pull request #25880 from woocommerce/bump-to-next-version
Bump WooCommerce version since 4.1.0 development has begun
2020-03-12 14:51:28 +05:30
Steve Grunwell 5855931542 Define the polyfill before attempting to call it 2020-03-11 16:53:25 +00:00
Steve Grunwell 86d44e74bb Make WC_Tests_CRUD_Data::onNotSuccessfulTest() compatible with its parent declaration 2020-03-11 16:35:36 +00:00