Commit Graph

50931 Commits

Author SHA1 Message Date
Fernando Marichal 756fe32c04
Create spotlight on analytics revenue report (#36653)
* Add `RevenueReportDateTour` component

* Add changelog

* Fix styles

* Rename RevenueReportDateTour to ReportDateTour to use it in two different reports: Orders and Revenue

* Change default sort date to date_paid

# Conflicts:
#	plugins/woocommerce/src/Admin/API/Reports/Orders/Stats/DataStore.php

* Update changelog

* Assign date_column_name before calling parent constructor

* Remove date_type default value from configuration and show tour only if user didn't assign a value

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Nathan Schneider <nsschneider1@gmail.com>
2023-02-23 15:49:24 -03:00
Gan Eng Chin 61aa3cd135
Add changelog. 2023-02-24 02:19:46 +08:00
Gan Eng Chin cc5345db4e
Campaigns pagination UI logic. 2023-02-24 02:13:20 +08:00
Gan Eng Chin 60d815c582
wp.data for campaigns data pagination. 2023-02-24 02:10:37 +08:00
Gan Eng Chin 20ae504be0
Add controls with fetchWithHeaders. 2023-02-24 02:08:59 +08:00
Joshua T Flowers 87d79f15a3
Move product editor utils to product editor package (#36730)
* Move product editor utils to product editor package

* Add changelog entries

* Move remaining utils

* Move util import/exports to separate index file
2023-02-23 09:48:49 -08:00
Néstor Soriano ba7fef3bcf
Merge branch 'trunk' into fix/cant-apply-coupon-0 2023-02-23 12:05:50 +01:00
Nestor Soriano 59a55b8561
Add changelog file 2023-02-23 11:52:01 +01:00
Nestor Soriano 3b4b85ba1f
Fix: can't apply or remove a coupon whose code is "0".
Also added two new methods in StringUtil: is_null_or_empty
and is_null_or_whitespace.
2023-02-23 11:49:38 +01:00
Saad Tarhi 615365d14e Fix "undefined `disable_ui` index" error 2023-02-23 11:31:01 +01:00
Saad Tarhi b312c65a95 Fix PHPCS errors 2023-02-23 09:00:10 +01:00
Saad Tarhi 2ed94d56c3
Merge branch 'woocommerce:trunk' into add/36413-support-for-cart-checkout-in-declare-compatibility 2023-02-23 08:38:03 +01:00
Saad Tarhi b5b0c28ed0 Add generic approach to adding features without UI
In our case for the Cart & Checkout feature, we don't want to show the
UI in the "Features" tab in Woo Settings. Creating a flag for this
purpose will make it easier for future features to unsubscribe from
showing a UI if required
2023-02-23 08:37:05 +01:00
Alejandro López Ariza 7fdd0f496f
Remove check to skip testing instructions if needed in PR template and add final check to confirm that testing instructions were added. (#36916)
* Remove check to skip testing instructions if needed from PR template and add final check to confirm that testing instructions were added.

* Update Pull Request template documentation to be consistent with the removal of the checkbox to skip testing instructions.

---------

Co-authored-by: Jonathan Lane <lanej0@users.noreply.github.com>
2023-02-22 15:00:58 -08:00
Saad Tarhi 390efe8bdd Fix PHPCS lint error 2023-02-22 19:05:52 +01:00
Luigi Teschio b0e5db0bfe
Bump WooCommerce blocks package to 9.6.2 (#36919)
bump WooCommerce blocks package to 9.6.2
2023-02-22 15:51:04 +01:00
Vedanshu Jain ca49caabcb
[COT] Reintroduce the orders cache (#35014) 2023-02-22 18:01:17 +05:30
Néstor Soriano f9f6e68e21
Merge branch 'trunk' into revert-34992-revert-34396-add/order_cache 2023-02-22 13:08:52 +01:00
Cluster CIS 7feaed74fa
Fix selectors for quantity element in variable products (#36871)
Fixes bug introduced in PR #36087 that changes jQuery selectors for quantity input in variable products.

The previous logic is reinstated so that $qty points to the div wrapper, and $qty_input points to the input element inside.

Otherwise, as is in the current version, $qty_input is undefined and the min/max attributes are not updated.

This PR also addresses the original issue #36086 by restricting the selector of the div wrapper to only be the one containing input[name=quantity] (the .qty class filter is also kept to avoid any potential malfunctions of existing code).
2023-02-22 12:43:57 +01:00
Sam Seay 4b345402ce
Fix one last case of not skipping hooks when cloning in code analyzer (#36912)
Fix one last case of not skipping hooks when cloning.
2023-02-22 20:50:45 +13:00
Vedanshu Jain 48ec7b8864
Merge branch 'trunk' into revert-34992-revert-34396-add/order_cache 2023-02-22 10:00:29 +05:30
Barry Hughes ddb675f04b
Add support for null inputs in wc_add_number_precision (#36891) 2023-02-21 13:10:56 -08:00
Barry Hughes 2e146d596f
Merge branch 'trunk' into fix/wc_add_number_precision-not-supporting-null 2023-02-21 11:36:53 -08:00
Leif Singer 1b74871bae
Assign milestone only if a PR touches WooCommerce Core (#36897)
* Assign milestone only if a PR touches WooCommerce Core

* add woocommerce-admin to list of paths
2023-02-21 18:21:29 +01:00
Seghir Nadir 87f385e72c
Add WC Tracker data for Local Pickup (#36847) 2023-02-21 13:33:14 +01:00
Seghir Nadir 0a05717c83
Merge branch 'trunk' into add/tracking-for-loca-pickup 2023-02-21 12:49:42 +01:00
github-actions[bot] 733bcc88cf
Prep trunk for 7.6 cycle (#36899)
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-02-21 12:37:14 +13:00
github-actions[bot] 4ea698d42f
Release: Remove 7.5 change files (#36901)
Delete changelog files from 7.5 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-02-21 12:36:55 +13:00
Corey McKrill aebf22dc2f
Site Health: Add WC-specific criteria for persistent object cache (#35202)
* Site Health: Add WC-specific criteria for persistent object cache

WP 6.1 introduces a new test in the Site Health module for whether the
site has an external object cache, and if not, whether it would benefit
from having one. However, the criteria it uses are based largely on
posts and comments. This introduces WooCommerce-specific criteria based
on orders and products. It uses much lower numbers for the
thresholds (100 instead of 1000). These thresholds are somewhat
arbitrary, but reflect that the data objects in a WooCommerce store are
larger and more complex than in a simple blog.

* Add changelog file
2023-02-20 15:01:17 -08:00
Nathan Silveira 41eab0d669
Add additional global attributes and local attributes information when saving product attributes (#36858)
* Add additional global attributes and local attributes information when saving product attributes

* Log only local attributes
Add attribute name
Fix issue with attribute_value and names selectors

* Save name and slug for global attributes and global terms
2023-02-20 23:55:01 +01:00
AnnaMag 48c8db8ade
Product editor: disable the feature in advanced Settings. (#36894)
* Product editor: disable the feature in advanced Settings
until we implement the new designs.

* Maintain feature enabled for internal testing.

* Remove obsolete new lines.

* Re-enable the feature flag.

* Disable the new product experience if currently enabled.

* Add changelog

* Remove commented lines, obsolete brackets. Fix conflicts.

* Styling.

* Fix lint

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-02-20 19:03:07 -03:00
Sam Seay 13b09da2cf
Add post checkout pnpm install to git hooks (#36731)
* Add post checkout pnpm install to help devs, disable hooks on pre push.
* Disable hooks in all simpleGit instances where checkout is run.
2023-02-21 08:42:44 +13:00
jonathansadowski b3b6eacdf4
Update the stable tag to 7.4.0 (#36879)
* Update the stable tag to 7.4.0

* Create update-stable-tag-7-4-0
2023-02-20 08:21:38 -06:00
RJ d26dd4c772
Add: shipping plugins in shipping task based on location (#36873)
Co-authored-by: moon <moon.kyong@automattic.com>
2023-02-20 21:32:14 +08:00
Nestor Soriano 8a9f05f875
Fix phpcs stuff 2023-02-20 13:05:15 +01:00
Nestor Soriano 749dcdd009
Add changelog file 2023-02-20 12:42:43 +01:00
Nestor Soriano c7aab89092
Add support for null inputs in wc_add_number_precision 2023-02-20 12:34:48 +01:00
Nadir Seghir e1ace8332d fix linter 2023-02-20 12:33:11 +01:00
Ilyas Foo 6dd701d795
Remove Facebook/Meta from grow your store list (#36886)
* Remove meta

* Changelog

* Set facebook extension visibility flag to false
2023-02-20 18:52:53 +08:00
Ilyas Foo e03ed88410
Fix inconsistent colors products task icons (#36889)
* Remove colors overriding theme colors

* Changelog
2023-02-20 18:18:17 +08:00
Chi-Hsuan Huang 3c113d1b79
Add `fills` prop to `useSlot` return object to fix task list bugs in WP 6.2 (#36887)
Add fills prop to useSlot return object for backwards compatibility
2023-02-20 17:07:58 +08:00
Ilyas Foo 052bb39e8a
Temporary remove free trial terms from Avalara tax task (#36888)
* Remove free trial terms from Avalara tax task

* Changelog
2023-02-20 13:56:34 +08:00
jonathansadowski e8a170165a
Update the release date for code freeze action readme generation (#36877)
Update the release date for code freeze action
2023-02-20 18:00:14 +13:00
Chi-Hsuan Huang 2d5fdfe578
Add a unit test for `woocommerce_admin_experimental_onboarding_tasklists` filter (#36827)
* Add a unit test for woocommerce_admin_experimental_onboarding_tasklists filter

* Add changelog

* Reformat

* Update plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/features/onboarding-tasks/task-lists.php

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-02-20 09:03:41 +08:00
Chi-Hsuan Huang 30409fa8c3
Update default payment gateway list (#36550)
* Remove Klarna payments from North America and remove Amazon pay from CA

* Update payment gateway list ordering priority

* Add changelog

* Sort gateways by recommendation_priority

* Fix DefaultPaymentGateways.php

Fix lint

Fix paypal

Fix comment

* Remove unneed comment

* Change eway priority to show after square
2023-02-20 09:02:57 +08:00
Tomek Wytrębowicz 586d471001 Remove `get_items_permissions_check` from `Reports\Controller`,
as it is implemented in the exact same shape in its parent class- `WC_REST_Reports_V1_Controller`
2023-02-18 19:39:58 +01:00
Tomek Wytrębowicz 26e7588d7d Add changelog entry 2023-02-18 19:11:45 +01:00
Tomek Wytrębowicz c161de857b Reuse parent `register_routes` method in `PerformanceIndicators\Controller`
as it is defined in `WC_REST_Reports_V1_Controller`.
2023-02-18 18:37:39 +01:00
Tomek Wytrębowicz 610d32da1a Remove redundant `register_routes` definition from `ReportsController`,
it's already defined in the exact same shape in its parent `WC_REST_Reports_V1_Controller`.
2023-02-18 18:18:20 +01:00
Tomek Wytrębowicz bd8168feb5 Remove redundant `$namespace = 'wc-analytics'` from classes that inherit from `ReportsController`
It's already set in parent class.
2023-02-18 18:15:19 +01:00