Commit Graph

9977 Commits

Author SHA1 Message Date
nigeljamesstevenson b78e320c1c
[E2E] Fix `wp-content/upgrade` folder permissions to fix recently failing daily and release tests (#37783) 2023-04-18 10:49:42 +01:00
rodelgc 31b4deb1b1 Add changelog 2023-04-18 13:57:09 +08:00
rodelgc 87f69cb609 Add write permission to `wp-content/upgrade` folder 2023-04-18 13:55:24 +08:00
Paul Sealock 747e3384f3
Update trunk stable tag (#37779)
* update stable tag

* changelog
2023-04-18 17:26:04 +12:00
github-actions[bot] 2977a95b16
Release: Remove 7.7 change files (#37776)
Delete changelog files from 7.7 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-04-18 16:17:38 +12:00
github-actions[bot] 3a4e9912ed
Prep trunk for 7.8 cycle (#37777)
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-04-18 16:17:06 +12:00
Adrian Duffell eb682695d0
Performance Improvement for Heuristics Tracks Event (#37769)
* Update onboarding settings to conditionally provide heuristics data

* Add changelog

* Fix lint issue
2023-04-18 06:18:48 +08:00
Adrian Duffell 03ce56a99e
Add Woo Payments Feature Slot Fill on Homepage (#37768)
* Add slot

* Add fill

* Add changelog
2023-04-18 05:07:25 +08:00
Adrian Duffell 4fca6d1f63
Add Onboarding Heuristics Tracks Event (#37767)
* Add heuristics data to onboarding setting

* Add track

* Add Tracks event
2023-04-18 04:47:24 +08:00
Fernando Marichal f6685b88b9
Rename default placeholder in attribute form (#37645)
* Rename placeholder

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

* Fix input `onblur`

* Add changelog

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-04-17 13:07:32 -03:00
Fernando Marichal a67b7df26f
Add tracks events to attributes tab (#37622)
* Refactor method `addProductAttributesTracks`

# Conflicts:
#	plugins/woocommerce-admin/client/wp-admin-scripts/product-tracking/shared.ts

* Add changelog

* Record remove attribute Tracks event

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

* Record `used for variations` and `visible on product page` events

* Record `used for variations` and `visible on product page` events

* Fix js error

* Remove not used code

* Refactor `add_existing` attribute recording

* Fix event action

* Refactor `attachEventListenerToParentForChildren`

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-04-17 12:50:30 -03:00
Vedanshu Jain ffc8990baa
Add table name methods to OrderUtil (#37624) 2023-04-17 20:05:51 +05:30
nigeljamesstevenson e8e9aa13fb
Fix WP latest-2 version retrieval in the "Smoke test release" workflow. (#37675) 2023-04-17 15:33:23 +01:00
nigeljamesstevenson aa55d04e14
Split the `can create product, attributes and variations, edit variations and delete variations` E2E test into smaller tests (#37733) 2023-04-17 15:14:51 +01:00
Mindaugas Budreika e725a98f35
Added a woocommerce_disable_api_access_log filter. (#37332)
Co-authored-by: Mindaugas Budreika <mindaugas.budreika@thecoffeemate.group>
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2023-04-17 09:40:27 +02:00
Shojib khan a4a2ef732d
Solved issue of Ellipsis menu overlaps on small screen (#37583)
* solved ellipsis menu overlaps on mobile

* solved ellipsis menu overlaps on small screens

* removed package.json and pnpm lock files

* restore default package.json

* Update plugins/woocommerce/changelog/fix-37517-fix-ellipsis-menu-overlaps

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* solved lint error

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-04-17 13:22:34 +08:00
Chi-Hsuan Huang a953904d84
Remove theme step from onboarding wizard (#37671)
* Remove theme step from onboarding wizard

* Remove theme step from e2e tests

* Deprecated "theme" prop from profileItem type

* Add changelog

* Remove theme product from dashboard

* Update packages/js/data/src/onboarding/types.ts

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

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-04-17 11:59:02 +08:00
mujuonly 9ae8208f26
Fix typo in a function comment. (#37746)
* Fix typo in a function comment.

* Chagelog update for typo corretcion in ReportsSync.php

---------

Co-authored-by: mujuonly <muju.only@gmail.com>
2023-04-17 11:19:42 +08:00
Jorge A. Torres 68fe54fcc8
Add `--verbose` support to HPOS verify DB command (#37576) 2023-04-16 17:39:30 -05:00
Maikel David Pérez Gómez 42cc482ebc
Create shipping fee field block and initial shipping section (#37642)
* Setting up the Fees & dimensions section

* Create product shipping fee block

* Register product shipping fee block

* Add changelog files

* Fix php linter errors

* Add reusable radio field and move the radio block to the blocks folder

* Remove manually set block className because is autogenerated base on the block name
2023-04-14 22:44:28 -04:00
Christopher Allford a3cb1735b3
Removed `example.org` Hardcoding From Tests (#37742)
Instead of strictly using `example.org` in our tests that include the
site URL, we should be using the `WP_TESTS_DOMAIN` constant.
This allows the domain to change without breaking the tests, such
as when using something like `wp-env`.
2023-04-14 16:05:17 -07:00
Corey McKrill f70d9452bf
Enable linting with phpcs-changed locally (#37465)
* Update phpcs-changed package to 2.10.2

* Add composer lint commands using phpcs-changed

* Add changlog file

* Update lint-staged script in package.json
2023-04-14 14:01:16 -05:00
Ron Rennick ba61674251 skip k6 api order RUD tests on non-existant order when C test fails 2023-04-14 15:10:42 -03:00
Maikel David Pérez Gómez 3f23301f3f
Create product shipping dimensions block (#37683)
* Move ShippingDimensionsImage component to @woocommerce/product-editor package

* Create woocommerce/product-shipping-dimensions-fields block

* Register woocommerce/product-shipping-dimensions-fields block

* Add changelog files

* Fix php linter error

* Change unused attr name to __contentEditable to better indicate the porpose

* Remove manually set block className because is autogenerated base on the block name
2023-04-14 14:08:57 -04:00
rodelgc 9897c529d4 Merge branch 'trunk' into fix/wp-l2-retrieval 2023-04-15 01:53:03 +08:00
rodelgc c226fa164b Re-navigate to ensure tour displays 2023-04-15 01:45:20 +08:00
Barry Hughes 85c9c23927
Use first meta value instead of last to be consistent with WP_Post. (#37676) 2023-04-14 09:34:24 -07:00
rodelgc 136b76834b Trivial correction to test step 2023-04-15 00:28:59 +08:00
rodelgc e677437878 Reset tour at the start of the first test 2023-04-15 00:22:35 +08:00
Joel Thiessen 83458a1dee
Adding inventory advanced section with radio and text fields (#37646) 2023-04-14 08:39:53 -07:00
rodelgc 9cc66e793e Fix cleaning up of created fixture 2023-04-14 23:33:08 +08:00
rodelgc 4262cd99ab Use a fixed variable product as test data to eliminate inter-dependence between tests 2023-04-14 23:14:08 +08:00
Matt Sherman d1ae3a5b44
Exclude empty attributes in count for wcadmin_product_update Tracks event (#37718) 2023-04-14 10:43:36 -04:00
Jorge A. Torres 901ef4abec
Remove section re running tests under PHP 8 (#37713) 2023-04-14 07:26:57 -05:00
rodelgc e76f452d35 Split into smaller tests 2023-04-14 17:26:58 +08:00
Vedanshu Jain dfdc2d3d8c Add null protection. 2023-04-14 14:24:09 +05:30
Vedanshu Jain 5bebfdf87f Merge branch 'trunk' into fix/37660 2023-04-14 13:30:40 +05:30
rodelgc caa6af608d Add changelog 2023-04-14 15:24:07 +08:00
rodelgc 0227a15e58 Initial draft for `can create product, attributes and variations` test 2023-04-14 15:07:52 +08:00
Moon a939744ac2
Delete shipping zone count cache in Shipping Task (#37693)
* Delete shipping zone count transient on woocommerce_shipping_zone_method_added and woocommerce_after_shipping_zone_object_save

* Add changelog
2023-04-13 20:16:49 -07:00
Moon b5b3e37ea9
Check min. WP and PHP versions before suggesting plugins (#37694)
* Add min_php_version for google and pinterest extensions

* Hide extensions that do not meet the min php version requirement.

* Add min_wp_version

* Add changelog

* Revert code style

* Compare PHP and WP version only when is_visible is already true

* Fix style - use yoda
2023-04-13 19:24:20 -07:00
Joshua T Flowers 697a05a9e9
Lock the product block editor template root (#37685)
* Lock the product block editor template root

* Add changelog entry
2023-04-13 17:55:44 -07:00
Joshua T Flowers b1c9ced2a5
Add a category for product editor blocks (#37347)
* Add category for product editor blocks

* Add changelog entry

* Fix php lint errors
2023-04-13 17:55:01 -07:00
Jamel Noel Reid 71cde2c856
Add support for defining WP, WC & PHP version for e2e & api tests (#37587)
* Added wp-cli.yml to test environment

* Run docker compose directly and fix permission

Running docker-compose directly circumvents the permission issues that arise occur when we try to specify a WP version for wp-env.

This commit also normalizes the permission for wp-config.php file which allows wp-cli to properly update the url structure of the site

* Added changelog

* Normalized wp-env wp-content permissions

* Added script to support setting WP Version

* Added support for setting WC & PHP versions

* Fixed phpversion update

* Fixed WooCommerce update

* Used user

* Updated changelog

* Told PHPCS to ignore file

* Added support for WP trunk

* Added support for nightly versions fo WP

* Fixed bug

* Updated docs
2023-04-13 16:06:53 -07:00
Joel Thiessen 247787484a
Add inventory section and SKU blocks (#37623) 2023-04-13 15:33:25 -07:00
Ron Rennick d62b2995b5
WC_Data: Add method `delete_matched_meta_data` (#37667) 2023-04-13 19:10:47 -03:00
barryhughes b6201d3f8a Changelog. 2023-04-13 15:03:57 -07:00
Barry Hughes b4cd2f8dbd Remove section re running tests under PHP 8
This information became obsolete since improvements made via http://github.com/woocommerce/woocommerce/pull/36273
2023-04-13 15:03:57 -07:00
Corey McKrill 4f38c051bf
Change method name to delete_meta_data_value 2023-04-13 13:45:02 -07:00
Jonathan Lane 9982899d3f
Fix for the e2e variable product test (#37714)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-04-13 21:37:06 +01:00
Barry Hughes 85176c0037
Tweak comment 2023-04-13 10:28:45 -07:00
Barry Hughes fdd01353df
Remove unique constraint from order_key to prevent empty key conflict. (#37594) 2023-04-13 08:50:23 -07:00
Joel Thiessen fb12ad20fd
Replacing rest_namespace modification with middleware due to blocks issues (#37621) 2023-04-13 08:45:50 -07:00
rodelgc 08a6eb6c17 Merge branch 'trunk' into fix/wp-l2-retrieval 2023-04-13 18:51:53 +08:00
Vedanshu Jain 6c22ffe88d Coding standards fixes. 2023-04-13 13:28:48 +05:30
Vedanshu Jain 408cf92ab0
Better changelog messaging.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-04-13 12:59:53 +05:30
Dano 252c2593b2
Updated task progress header title (#37546)
* Updated task progress header title

## Issue
Special characters in site titles would not render as readable text in the mentioned title.

## Summary
Updated task progress header title to support special characters using the dangerouslySetInnerHTML function was a ready solution used throughout the application, so it makes sense to apply it here as well.

* Import sanitizeHTML

* Add changelog

* Tweak changelog

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-04-13 11:42:22 +08:00
Tam Mullen 2f75edf505
e2e Tweak flakey can create product, attributes and variations test (#37614)
* move e2e test event listener for handling the link_all_variations confirmation dialog

* A couple of additional test enhancements

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
Co-authored-by: Jonathan Lane <lanej0@users.noreply.github.com>
2023-04-12 16:02:47 -07:00
Corey McKrill ee1f6ed3a9
Linting fix 2023-04-12 14:32:42 -07:00
Corey McKrill b2e96aaf5a
Move methods and tests to COTMigrationUtil 2023-04-12 14:25:09 -07:00
Fernando Marichal 1187df9d82
Add Tracks events to variations tab (#37607)
* Refactor `product-tracking` file

* Add variations tracks events

* Add changelog

* Refactor method `addProductAttributesTracks`

* Add `remove_variation` Tracks event

* Modify code comments

* Rename `query` prop

* Modify `generate_variations` event to be recorded after confirmation

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-04-12 16:37:23 -03:00
Matt Sherman 0247cea4b9
e2e: Reset variable product tour after running variable product tests (#37680)
* Reset variable product tour after tests run
* Refactor product deletion cleanup
* Refactor product page URL
2023-04-12 14:46:58 -04:00
Fernando Marichal 2722ef4763
Item controls for attribute creation are always visible (#37620)
* Fix dropdown menu style

* Move items

* Add changelog

* Remove class `select`

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-04-12 14:30:15 -03:00
barryhughes 1f4f485e2b No changelog needed. 2023-04-12 09:34:50 -07:00
Vedanshu Jain e8363828f7 Fixup to handle null data. 2023-04-12 18:40:19 +05:30
Vedanshu Jain 4a5db60c2a Adjust verification so that it only checks the first meta value. 2023-04-12 18:08:22 +05:30
Vedanshu Jain 2147d2abcf Add changelog. 2023-04-12 15:39:44 +05:30
Vedanshu Jain d5211bbaa6 Use first meta value instead of last to be consistent with WP_Post. 2023-04-12 15:38:58 +05:30
Vedanshu Jain 55e07451ce Add unit test for asserting that first meta is migrated. 2023-04-12 15:33:23 +05:30
Chi-Hsuan Huang 77bdd24aa8
Revert "Check min. WP and PHP versions before suggesting plugins" (#37674)
Revert "Check min. WP and PHP versions before suggesting plugins (#37611)"

This reverts commit 30536f636e.
2023-04-12 16:46:21 +08:00
rodelgc b4540f61d5 Add changelog 2023-04-12 15:56:20 +08:00
Chris Lilitsas e8c8581a4e
Fix TT2 styles and typography in the single product's attributes table (#37639) 2023-04-12 09:54:58 +02:00
Chris Greys 61da4c6161
Dev - Allow to filter wc_help_tip output (#37485)
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2023-04-12 09:52:18 +02:00
rodelgc 60a02f2edf Fix WP L-2 version retrieval 2023-04-12 15:50:48 +08:00
rodelgc dd138a394f Remove unnecessary concatenation 2023-04-12 15:35:27 +08:00
github-actions[bot] a740126564
Delete changelog files based on PR 37641 (#37653)
Delete changelog files for 37641

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-04-12 08:59:53 +02:00
Corey McKrill 3c64b953a0
Update doc block 2023-04-11 16:02:01 -07:00
Corey McKrill b389a4e8ae
Add changelog file 2023-04-11 15:58:27 -07:00
Corey McKrill d8ec0490cb
Add unit test 2023-04-11 15:55:27 -07:00
Corey McKrill d4d375e874
WC_Data: Add method `delete_matched_meta_data`
Brings the CRUD layer's meta data handling closer to parity with
WP by allowing for selectively deleting meta entries with a specific
key only if they contain a specific value.

Fixes #37650
2023-04-11 15:51:38 -07:00
Corey McKrill 7fe96ac988
Don't hardcode table prefixes 2023-04-11 14:36:32 -07:00
Ron Rennick 450d9e9c8c
FlexSlider uses Web Animations API for "slide" instead of $.animate() (#36987) 2023-04-11 16:50:59 -03:00
Moon 30536f636e
Check min. WP and PHP versions before suggesting plugins (#37611)
* Add min_php_version for google and pinterest extensions

* Hide extensions that do not meet the min php version requirement.

* Add min_wp_version

* Add changelog

* Revert code style
2023-04-11 12:22:15 -07:00
Ron Rennick 9ee2307b65 Merge branch 'trunk' into flexcss 2023-04-11 16:00:53 -03:00
Maikel David Pérez Gómez f5591b7c9a
Add track inventory field to inventory section (#37585) 2023-04-11 11:52:20 -07:00
Maikel David Pérez Gómez 8354ae2792
Create schedule sale pricing block (#37567)
* Create schedule sale pricing block

* Add auto show/hide and clean fields depending on the initial values

* Add validations to From and To dates fields

* Add changelog files

* Align block with the figma design

* Revert linter replacement in the editor global style.scss file

* Fix some words typos

* Move and rename schedule sale block to the blocks folder

* Load datetime format from @wordpress/date instead of using the woo options datastore

* Remove the min difference using by moment to compare dates from 'minute' to undefined

* Make sure the dates are normalized for comparison
2023-04-11 10:53:37 -04:00
Nathan Silveira fa4dd90401
Change link all variations label (#37632) 2023-04-11 11:44:27 -03:00
Darren Ethier 50593c5257
Fix issue that breaks the WooCommerce Home Page when Gutenberg 15.5 is active (#37641)
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: rjchow <me@rjchow.com>
2023-04-11 15:27:38 +08:00
Chi-Hsuan Huang 4cc6644c8b
Add default priority for countries that don't exist in payment recommendation map (#37590)
* Add default priority for countries that are not in the payment recommendation map

* Add changelog

* Add doc

* Fix linting
2023-04-11 14:13:59 +08:00
Nathan Silveira 5d68259480
Add different confirmation message when attribute is used in a variation (#37527)
* Add different confirmation message when attribute is used in a variation

* Update logic to only consider checkbox checked value when prompting message
2023-04-10 17:44:51 -03:00
Ron Rennick 054471618e
Dev - Add customer object parameter to taxable address filter (#37426) 2023-04-10 13:36:06 -03:00
Matt Sherman a054ddbf50
Beta Tester: Update WCA Test Helper option modal to show full option name (#37495)
* Adjust options modal so that option name is not cut off

* Changelog
2023-04-10 08:36:13 -04:00
Matt Sherman 5dda0aac48
Beta Tester: Update WCA Test Helper Features list (#37483)
* Alphabetize features list

* Use toggles instead of button for features

* Changelog
2023-04-10 08:34:38 -04:00
Corey McKrill 62ceb8e08b
Add changelog file 2023-04-07 17:30:31 -07:00
Corey McKrill 208fa5ea00
Add unit tests 2023-04-07 17:21:12 -07:00
Corey McKrill ad565bd853
Add table name methods to OrderUtil
Adds methods to determine the names of the database tables currently
being used for orders and order meta, without needing to make a separate
check first to see if HPOS is enabled and in use.
2023-04-07 15:40:44 -07:00
Corey McKrill 152f0d3793
Make HPOS migration more strict by removing IGNORE. (#37595) 2023-04-07 12:30:48 -07:00
Vedanshu Jain 40d823df5c Coding standard fix. 2023-04-07 18:31:21 +05:30
Vedanshu Jain 835d089fb7 Add changelog. 2023-04-07 18:11:32 +05:30
Vedanshu Jain e85e68e0c5 Merge branch 'trunk' into pr/36885 2023-04-07 18:07:24 +05:30
Vedanshu Jain e0327e3223 Fixup in unit test. 2023-04-07 18:06:55 +05:30
Anastasio 0d93e92bd1 Merge remote-tracking branch 'upstream/trunk' into woocommerce-webp-support 2023-04-06 21:39:42 +03:00
Ron Rennick b0f042e252 Merge branch 'trunk' into woocommerce-webp-support 2023-04-06 14:54:41 -03:00
Ron Rennick 8be211b45b
Change default order to ‘date DESC’ in orders list table (#37565) 2023-04-06 14:27:09 -03:00
Joshua T Flowers 868fbbf23a
Register product editor blocks server-side (#37339)
* Move product block editor to new feature name

* Register all blocks and block assets server-side

* Add changelog entry

* Disable phpcs rule for file_get_contents
2023-04-06 10:13:48 -07:00
Vedanshu Jain 322639bb7e Extra protection for empty order key orders.
Some order can have order key set to empty string. This commit disallows fetching those orders via key at DB level (its already disallowed from interface).
2023-04-06 21:06:38 +05:30
Vedanshu Jain 232a98317a Add changelog. 2023-04-06 20:48:45 +05:30
Vedanshu Jain 7f00d211d1 Make migration more strict by removing IGNORE. 2023-04-06 20:48:11 +05:30
Vedanshu Jain ebb43378a1 Remove unique constraint from order_key to prevent empty key conflict. 2023-04-06 20:46:59 +05:30
Vedanshu Jain dbb4bd5e27 Dont store order failures when verbose is enabled to save memory. 2023-04-06 15:23:19 +05:30
Vedanshu Jain 6eca1ed561 Prevent errors from being logged twice when verbose is passed. 2023-04-06 15:14:06 +05:30
github-actions[bot] 33352895bc
Delete changelog files based on PR 37569 (#37581)
Delete changelog files for 37569

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-04-06 01:56:28 +02:00
Joel Thiessen 07b84051b2
Adding charge sales tax field to product block editor template (#37582) 2023-04-05 16:23:58 -07:00
Nathan Silveira 277f4aab12
Show tooltip in Save attributes button instead of using title attribute (#37345)
* Modify tipTip to allow showing dynamic content

* Show tooltip when button is disabled

* Add tipTip and disabled logic to create variations button

* Add header comment in tipTip plugin
2023-04-05 16:22:59 -03:00
Joshua T Flowers 7734027b4a
Add product radio block and tax class to product blocks editor (#37529)
* Add product radio block

* Wrap tax class radio in collapsible block

* Add link to description and sanitize HTML

* Add changelog entry

* Fix up php lint errors

* Add changelog entry

* Fix linting errors

* Remove unused import
2023-04-05 10:13:05 -07:00
Fernando Marichal a5fe4232c7
Change variations dropdown visibility (#37558)
* Add default action with the name `Bulk actions`

* Attach event when dropdown changes

* Add changelog

* Remove `Go` button

* Fix e2e tests

* Fix styles

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-04-05 13:56:42 -03:00
Vedanshu Jain 9e9060e95b
Do not attempt to cache orders during order creation (#37569) 2023-04-05 20:49:57 +05:30
Vedanshu Jain 85c7bb6426 Apply coding standards. 2023-04-05 20:44:27 +05:30
Vedanshu Jain b796522385 Applied coding standards. 2023-04-05 19:38:01 +05:30
Vedanshu Jain b5e74ae90c Add support for verbose command to display errors as they happen. 2023-04-05 19:28:15 +05:30
Vedanshu Jain 800ee5d6dd Minor fixup for getting order ids in verify db command. 2023-04-05 19:01:20 +05:30
Vedanshu Jain 54eb2a0c43
Add sort order for migration script. (#37545) 2023-04-05 11:43:13 +02:00
Ron Rennick d272495d08
update select all to checkbox in menu editor (#37562)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-04-05 11:06:10 +02:00
Vedanshu Jain 817458a433 Remove caching on order save, instead do it when order is fetched.
This allows all the hooks when getting an order to be executed and we cache the correct object.
2023-04-05 13:29:29 +05:30
John Greys c4cab15bd8 Add @since tag to woocommerce_customer_taxable_address filter 2023-04-05 00:50:07 +00:00
Jorge A. Torres 4250e9d7b5 Add changelog 2023-04-04 17:08:35 -05:00
Jorge A. Torres 1868311c6f Change default order to ‘date DESC’ in orders list table 2023-04-04 17:08:35 -05:00
Jorge A. Torres 1d6c98985e Add changelog 2023-04-04 16:56:32 -05:00
Jorge A. Torres 77e3cc5c77 Do not attempt to cache order during order creation (HPOS) 2023-04-04 16:56:29 -05:00
Ron Rennick 124bf3e529
Add changelog file 2023-04-04 13:18:36 -03:00
Maikel David Pérez Gómez f7572b4361
Move the Save draft and Preview buttons to the product editor header (#37461)
* Add preview button to the product editor header

* Publish the product on add or on save

* Add save draft button

* Save product changes before previewing it

* Add notice messages

* Fix linter errors

* Force the store page to be openned in a new tab after publishing the product

* Enable publish button when the status is not publish

* Add changelog files

* Fix some comment typos

* Address comment suggestions

* Move preview logic to its own component

* Move save draft logic to its own component

* Move publish logic to its own component
2023-04-04 11:30:39 -04:00
Barry Hughes 32c766c5f8
Prevent duplicate alias in orders query SQL (#37560) 2023-04-03 14:13:19 -07:00
Jorge A. Torres 2cd5cdcc8c Add changelog 2023-04-03 13:56:27 -05:00
Jorge A. Torres 35bbb0c920 Re-use aliases from OrdersTableQuery for field queries 2023-04-03 13:55:38 -05:00
Jorge A. Torres b156651243 Use backticks for JOIN on OrdersTableQuery 2023-04-03 13:55:30 -05:00
Barry Hughes bcfbfbd6d2
Thank you page (/checkout/order-received): payment gateway title formatting (#37481) 2023-04-03 09:47:14 -07:00
Barry Hughes 174d9075d9
Revert "Replace $.ajax() calls with browser-native window.fetch() calls." (#37463) 2023-04-03 09:46:49 -07:00
Ron Rennick cb7f34de44
Restore reviews (comments) to the product editor (#37457) 2023-04-03 13:02:01 -03:00
barryhughes 3a1fc77442 Simply; just use `wp_kses_post()`. 2023-04-03 07:50:59 -07:00
Sam Seay 418ae6a86c
Add a changelog entry. 2023-04-03 14:17:32 +08:00
Fernando Marichal d625f72e2b
New empty state for variations (#37411)
* Add variations empty state

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

* Fix styles

* Add changelog

* Fix html

* Fix js

* Show and hide select and button

* Fix e2e tests

# Conflicts:
#	plugins/woocommerce/tests/e2e-pw/tests/merchant/create-variable-product.spec.js

* Fix lint

* Fix hidden style

* Fix js for hidden elements

* Fix lint

* Transform `load_variations` into a promise

* Fix e2e test

* Fix tests

* Remove comment

* Fix styles

* Fix comment

* Remove async

* Remove async

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-03-31 16:40:16 -03:00
Maikel David Pérez Gómez 6df1cef307
Add Sale price and list price blocks to pricing tab with pricing section (#37513)
* Add pricing section to the pricing tab

* Add changelog file

* Fix php linter errors
2023-03-31 14:47:31 -03:00
Joshua T Flowers 85080f642b
Add block related assets entry points to product editor build (#37318)
* Add editorStyle properties to blocks

* Rename style.scss files to editor.scss

* Get block entry points for block related assets

* Copy block assets to core assets build folder

* Remove unusable dependency

* Add changelog entries

* Fix up RTL style builds for block assets

* Update copy-webpack-plugin dependency and lock file

* Fix up lock file after rebase

* Fix order of webpack rtl stylesheet builds to prevent additional stylsheets

* Fix up lock file after rebase

* Fix tsconfig
2023-03-31 10:36:40 -07:00
Chi-Hsuan Huang e553759ab6
Fix `FormContext` type error in client/tasks/fills/steps/location.tsx (#37532)
* Fix FormContext type error

* Add changelog
2023-03-31 18:43:16 +08:00
Nathan Silveira deb1cde448
Add listener to parent to avoid event being overwritten when DOM is replaced (#37431) 2023-03-30 16:41:20 -03:00
Moon 658034f64e
Migrate steps/location to TS (#37257)
* Migrate steps location to TS

* Add description for ts-expect-error
2023-03-30 12:07:58 -07:00
Joshua T Flowers 681391a50a
Add product images block to product editor (#37455)
* Add images block to the product editor

* Allow html in section block descriptions

* Add changelog entry

* Add client changelog entry

* Remove SVG related changes

* Fix up lock file after rebase

* Remove unused import

* Fix up php lint errors

* Move sanitize function to utils folder
2023-03-30 11:22:07 -07:00
Ilyas Foo d3229b97cb
Update mobile app modal image resolution (#37506)
* Update image

* Changelog
2023-03-30 23:36:12 +08:00
Nima Karimi afc2344f47
Remove the MCM feature flag on update to WooCommerce 7.7 (#37454)
* Remove the MCM feature flag on update to WooCommerce 7.7

This feature flag is no longer needed because the new marketing page will be the default on version 7.7 (pe2C5g-Ft-p2#comment-582).

* Remove the marketing overview welcome option
2023-03-30 16:13:57 +03:00
Chi-Hsuan Huang be9f09f217
Fix missing result prop in `wcadmin_install_plugin_error` track (#37466)
* Fix missing result prop in install_plugin_error track

* Add changelog
2023-03-30 09:51:44 +08:00