Commit Graph

51187 Commits

Author SHA1 Message Date
louwie17 aec4dfd3bd
Update product editor package (#36830)
* Add missing dev packages to product-editor package

* Create components folder for organization

* Move product field, section and tab slots over to product-editor package

* Move use of product slot fills to product-editor package

* Sync dependencies

* Add changelogs

* Update README's and add constant for default values

* Update README's in product-editor package
2023-02-24 09:37:53 -04:00
Vedanshu Jain 7f140c77ca Use latest WP version. 2023-02-24 17:02:36 +05:30
Vedanshu Jain 86e5f13180 Modify name to reflet HPOS tests + use latest WP.. 2023-02-24 17:02:05 +05:30
Vedanshu Jain 5c2ccb563b Run HPOS test in a matrix along with post tests. 2023-02-24 16:57:51 +05:30
Nestor Soriano 575146615a
Fix: can't apply or remove a coupon whose code is "0" via REST api
Also fix: coupon usage not incremented for coupon with code "0"
2023-02-24 11:57:23 +01:00
Gan Eng Chin a982b7be21
Error handling in getCampaigns. 2023-02-24 18:32:33 +08:00
Vedanshu Jain 87da68c377 Use correct data store for getter/setters. 2023-02-24 15:03:54 +05:30
Vedanshu Jain a3a41356ee Sanitize value before returning. 2023-02-24 15:03:48 +05:30
Vedanshu Jain f8b6258c92 Set correct datastore for tests. 2023-02-24 15:03:41 +05:30
Vedanshu Jain 5e7052b03d Use correct data store for getter/setters. 2023-02-24 15:02:01 +05:30
Vedanshu Jain 7fbd736517 Sanitize value before returning. 2023-02-24 15:01:38 +05:30
Gan Eng Chin 92762ca9b0
Better pagination with TablePlaceholder in Campaigns card. 2023-02-24 17:09:42 +08:00
Vedanshu Jain 2d3f38851c Set correct datastore for tests. 2023-02-24 14:37:35 +05:30
Vedanshu Jain 2362d7785a Add HPOS support to admin orders API. 2023-02-24 14:04:35 +05:30
louwie17 2ef4f8a9da
Fix create wc extension script (#36917)
* Run create-extension for create-wc-extension script

* Add changelog

---------

Co-authored-by: Sam Seay <samueljseay@gmail.com>
2023-02-24 04:28:07 -04:00
Vedanshu Jain a3c646fe55 Apply coding standards. 2023-02-24 13:18:52 +05:30
Vedanshu Jain f20d619c30 Skip legacy tests. 2023-02-24 13:11:28 +05:30
Vedanshu Jain d54e141aaf Use CRUD instead of direct post access for HPOS compat. 2023-02-24 13:06:04 +05:30
Vedanshu Jain 5c6392dc7c Use closure instead of returning DB object to prevent interference in other tests.
PHPUnit will evaluate all data providers before starting anyh test (to count the number of tests to be executed). Which means that any data provider inserting data into DB is going to interfere with other tests. Using closure instead helps PHP in counting the data, yet not having to actual DB calls.
2023-02-24 13:04:01 +05:30
helgatheviking e0cf5476a8 Add woocommerce_attributes_saved trigger. Closes #35004. 2023-02-23 16:35:02 -07:00
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 f3cb5424d7 Move generic method to parent class for reusability. 2023-02-22 19:42:47 +05:30
Vedanshu Jain 6d162a9950 Undo regression in previous commit. 2023-02-22 19:13:06 +05:30
Vedanshu Jain 0b689ed8bd Modify test to support HPOS. 2023-02-22 19:12:53 +05:30
Vedanshu Jain aaf45d5971 Use isset to support other params. 2023-02-22 19:12:15 +05:30
Vedanshu Jain ca49caabcb
[COT] Reintroduce the orders cache (#35014) 2023-02-22 18:01:17 +05:30
Vedanshu Jain 61b6daae27 Use correct column name for date_updated. 2023-02-22 17:51:59 +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
Albert Juhé Lluveras f3c5131b8a Merge duplicate CSS selector 2023-02-21 14:58:05 +01:00