Commit Graph

50900 Commits

Author SHA1 Message Date
Vedanshu Jain 09581201f2 Add changelog. 2023-03-13 21:57:42 +05:30
Vedanshu Jain 43fedcfc5a Add unit test to ensure caching does not affect sort order. 2023-03-13 20:08:58 +05:30
Vedanshu Jain 0746305ec1 Restore the sort order when orders are cached. 2023-03-13 19:33:59 +05:30
Vedanshu Jain 5e636046dd Also delete when order type is placehoder, since it was created by HPOS. 2023-03-13 16:35:05 +05:30
Vedanshu Jain f497146de9
Merge branch 'trunk' into hpos/unit-tests 2023-03-10 15:21:57 +05:30
Vedanshu Jain 9b8a5a7308
Validate orders separately since it not always a CPT. (#36832) 2023-03-10 15:20:39 +05:30
Matt Sherman 4f5a3d7e77
Show link to store settings when stock management is disabled (#37140)
* Update stock management enabled checkbox label

* Add link to store settings when stock management is disabled

* Refactor to create woocommerce_wp_note function
2023-03-09 22:45:54 -05:00
jonathansadowski 4ebd35b41d
Update automation bypass to work correctly, consider actions bot. (#37045) 2023-03-09 17:10:33 -06:00
Joel Thiessen 970c1ef352
Hydrating product entity when creating or editing product with block editor (#37064) 2023-03-09 13:11:25 -08:00
Maikel David Pérez Gómez 2896a8cd13
Add the new feature to enable the new product editor blocks experience (#37137)
* Add the new feature to enable the new product editor blocks experience

* Add the type definition of the feature flag

* Add the feature to the beta_featues in Features.php file

* Keep the page routes when the feature is anabled

* Add the feature php class to manage page assets

* Add changelog file
2023-03-09 15:33:39 -03:00
Seghir Nadir 46b813723d
Turn WC_Order::get_tax_location public (#36953)
* Make WC_Order::get_tax_location public

* Reverted access modifier change for get_tax_location() and implemented public wrapper get_taxable_location()for it.

---------

Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
2023-03-09 16:06:02 +00:00
Matt Sherman e572134384
Escape backquotes in syncpack pre-push message (#37143) 2023-03-09 09:51:45 -05:00
Néstor Soriano 73c1ad1541
Fix the ArrayUtil::get_value_or_default method (#37053)
* Fix the ArrayUtil::get_value_or_default method

The method was supposed to return null if the key exists in the array
and has a null value, but instead it was returning the supplied
default value, as the "??" operator.

Also the few existing usages of the method that supplied a default value
have been converted to instances of the "??" operator for compatibility.

* Add changelog file
2023-03-09 11:42:54 -03:00
Matt Sherman 40f3a7160a
Rename "Manage stock?" label to "Stock management" (#37135) 2023-03-09 09:14:47 -05:00
Fernando Marichal 3edd8f48cb
Add validation to enable Save attributes and Save variations buttons (#37046)
* Add validation for attributes and variations

* Enable save button when data is valid

# Conflicts:
#	plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-variations.php

* Add changelog

* Remove if

* Remove validation while saving

# Conflicts:
#	plugins/woocommerce/client/legacy/js/admin/meta-boxes-product-variation.js

* Rename method `is_attribute_or_variation_empty`

* Add button title when disabled

# Conflicts:
#	plugins/woocommerce/includes/admin/meta-boxes/views/html-product-data-variations.php

* Fix typo

* Fix e2e tests

* Convert functions into global fn

* Use maybe_disable_save_button

* Fix validation

* Refactor `is_attribute_or_variation_empty`

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-03-09 10:32:24 -03:00
Sam Seay bec3ec18ac
Update Syncpack and use it to pin @wordpress packages to wp-6.0 (#37034) 2023-03-09 10:13:25 +13:00
Yousuf Hossain 92f94248cd
Added woocommerce_reduce_order_item_stock action hook to let other plugin hook functionalities without looping through the order items again and again. (#34721)
* Added woocommerce_reduce_order_item_stock action hook to let other plugins do somthing without looping again the order line items

* changed "product data" to "change details" and updated docblock as instructed

* maintained WP coding standards and change @since docblock tag
2023-03-08 18:05:40 -03:00
Vedanshu Jain 5d07d29366
Fix HPOS unit tests for WC Order unit test classes (#37130) 2023-03-08 23:12:48 +05:30
Ron Rennick 83fb31db8e
Orders: Update date modified on refund (#37047) 2023-03-08 13:10:49 -04:00
Justin Palmer a74f80d19d
Add tracking support for marketplace and multichannel marketing options. (#37017) 2023-03-08 15:41:46 +01:00
Vedanshu Jain 9b8a9eb0aa
Fix unit tests for order and customer functions to provide HPOS compat. (#36905) 2023-03-08 15:51:06 +05:30
Maikel David Pérez Gómez 3ded2b46e9
Create editor skeleton on add/edit product pages (#37023)
* Add required dependencies

* Create the block editor component

* Create the header component

* Create the sidebar component

* Create the editor component

* Remove comments

* Export the block editor from its package

* Enqueue wp-edit-site

* Create the new block mode product page

* Register the new ProductPage component in /add-product route

* Add temporal layout styles

* Fix rebasing conflicts

* Fix linter errors

* Redirect to the new product-editor page when edit

* Add changelog files

* Fixing dependencies conflicts and ignoring some non running test

* Add comment suggestions

* Fix conflicts after rebasing

* Add comment suggestions
2023-03-08 05:51:59 -04:00
rodelgc b60cc128fd
Allow running of "Smoke test release" on draft releases (#36997)
* Conditionally use authorization token when getting WC Zip download URL.

* Exponse error message

* Handle undefined authorization token more gracefully

* Specify GH token in workflow

* Add changelog

* Use E2E_GH_TOKEN instead of default github.token

* Provide GitHub token to other jobs

* Fix getting of tag name from triggered event

* Use "inputs" context instead

* Add release version to workflow name

* Correct concurrency group

* Fix workflow name

* Add --archive option

* Fix output setting

* Fix script for verifying asset

* Remove unnecessary 'uses' line

* Remove node 12 deprecation messages

* Re-add "published" release type
2023-03-08 10:23:56 +01:00
Tomek Wytrębowicz dbc3cde987
Remove redundant code from Report classes (#36883) 2023-03-08 08:46:08 +01:00
Fernando Marichal a23b2cf415
Fix duplicated global attribute (#37109)
* Add fix

* Add changelog

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-03-07 18:04:17 -03:00
Néstor Soriano 8786c19b74
Fix: variations exported as draft were imported as draft (#36933)
* Fix: variations exported as draft were imported as draft

* Add changelog file

* Fix "ArrayUtil::get_value_or_default" for existing keys with null values

Now ArrayUtil::get_value_or_default($array, $key, $default) will return
null, instead of $default, when $array[$key] exists and is null.

* Undo the change to ArrayUtil (will get its own PR)
2023-03-07 13:57:17 -03:00
jonathansadowski 81fdbe3125
Update release post tool tmp path (#36836) 2023-03-07 09:13:15 -06:00
Rodrigue fc0030eb4a
Fix/37083 page displays 0 for empty recommended channels (#37104) 2023-03-07 17:12:02 +02:00
Rodrigue Tusse 6f8f35b9f1 Add changelog. 2023-03-07 15:15:35 +02:00
Rodrigue Tusse ed6c19b827 Fix 0 rendered on short-circuit evaluation. 2023-03-07 15:06:25 +02:00
Viktor Szépe f1a3f388bd
Fix variable name in Reports\Stock\Stats (#37057)
* Fix variable name in Reports\Stock\Stats

* Add since tag

* Add changelog
2023-03-07 09:44:51 +08:00
github-actions[bot] e8b8c058b0
Delete changelog files based on PR 37051 (#37093)
Delete changelog files for 37051

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-03-07 12:52:05 +13:00
Niels Lange 9218bfd237
Bump WooCommerce blocks package to 9.6.5 (#37051)
---------

Co-authored-by: Saad Tarhi <saad.trh@gmail.com>
2023-03-07 12:25:22 +13:00
Corey McKrill d2e1ff4333
Add unit test 2023-03-06 15:07:19 -08:00
Corey McKrill 0c9bd08ed6
Tweak the input value for date_modified
Turns out the value used here doesn't matter, because it will always
update to the current time. It just needs to have a changed prop in
order for the save to execute.
2023-03-06 15:05:41 -08:00
Joel Thiessen 2332c7c813
Migrating details fields to product-editor package (#36945) 2023-03-06 14:33:10 -08:00
Maikel David Pérez Gómez 79841c58a5
Fixes react version to 17.0.2 globally (#37087)
* Fix react version to 17.0.2 globally

* Add changelog file
2023-03-06 18:38:05 -03:00
Ron Rennick a78fe23e61
Fix Typo in Variable Name on line 342 (#36759) 2023-03-06 14:09:58 -04:00
Ron Rennick 7d62529dd4
Allows developers to add their own filters to the active filters list (#36705) 2023-03-06 13:18:04 -04:00
Joel Thiessen b825b51767
Moving useProductHelper and useVariationsOrder hooks to product editor package (#37006) 2023-03-06 09:11:54 -08:00
Ron Rennick 5586fb96ba
Add changelog file 2023-03-06 13:09:14 -04:00
Vedanshu Jain 37ed0e5f4f
Skip unsupported tests with HPOS. (#36908) 2023-03-06 22:03:11 +05:30
Vedanshu Jain 5dffc39b12
Fix API unit test for HPOS compat (#36910) 2023-03-06 21:29:50 +05:30
Ron Rennick c67ccf6492
Move the changelog to the correct folder 2023-03-06 10:49:21 -04:00
Vedanshu Jain 77f7cf9879
Update PayPal tests for HPOS compat. (#36909) 2023-03-06 17:23:22 +05:30
Vedanshu Jain 282263bfde
Fix test in Admin reports for HPOS compat (#36946) 2023-03-06 17:22:24 +05:30
Vedanshu Jain fb356b686e Use simplified name for readibility. 2023-03-06 17:21:23 +05:30
Viktor Szépe deb1d131ad
Fix absolute imports (#37058)
* Fix absolute imports

* Add changelog

* Fix changelog
2023-03-06 19:38:52 +08:00
Viktor Szépe 50fe847b56
Fix class namespaces in Onboarding (#37056)
* Fix class namespaces in Onboarding

* Add changelog
2023-03-06 19:33:23 +08:00
Marco Almeida 4b9be76926
Add @since tag to hooks doc 2023-03-06 09:55:22 +00:00