Commit Graph

11255 Commits

Author SHA1 Message Date
Jon Lane 296f2aa382 Skip tax rates test if CI 2023-07-21 13:22:07 -07:00
Panos (Panagiotis) Synetos 155420f79c
Merge branch 'trunk' into fix/admin-colors-use-theme 2023-07-21 12:12:06 +03:00
Jon Lane 2c75de6648 Changelog 2023-07-20 15:50:50 -07:00
Jon Lane 32d3724bd8 Skip failing tests 2023-07-20 15:49:02 -07:00
Jon Lane a1bf55ff5f Update config to use API URL 2023-07-20 14:28:40 -07:00
Jon Lane 7855da1198 Run global setup 2023-07-20 14:22:04 -07:00
Jon Lane 54219e0291 Perform a site reset if running on CI 2023-07-20 14:20:36 -07:00
github-actions 9584ba1f59 Add changefile(s) from automation for the following project(s): woocommerce 2023-07-20 19:12:38 +00:00
Chris McNeill 2b08d1b31b
Removes the "for your state" string from the checkout page if there are no current payment methods available. 2023-07-20 13:53:07 -05:00
Leif Singer 147db933be
Revert "Shard unit test runs" (#39344)
Revert "Shard unit test runs (#39302)"

This reverts commit 9ee44947e0.
2023-07-20 18:36:01 +02:00
github-actions[bot] 85ee67c5e2
Delete changelog files based on PR 39191 (#39342)
Delete changelog files for 39191

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-07-20 09:19:40 -05:00
github-actions[bot] c44bd1c728
Delete changelog files based on PR 39317 (#39340)
Delete changelog files for 39317

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-07-20 09:13:55 -05:00
github-actions[bot] 8bfb1c3e9a
Delete changelog files based on PR 39299 (#39336)
Delete changelog files for 39299

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-07-20 09:08:59 -05:00
Thomas Roberts bc89b72e63
Update WooCommerce Blocks to 10.6.1 (#39299) 2023-07-20 02:51:09 -07:00
Leif Singer 9ee44947e0
Shard unit test runs (#39302)
closes #38973
2023-07-20 10:01:28 +02:00
Sam Seay 5823385084
WooCommerce Docs: Store post meta of edit_url, refactor ManifestProcessor for testability (#39241) 2023-07-20 17:46:18 +12:00
Rodel Calasagsag 139986cfad Add changelog 2023-07-20 09:30:43 +08:00
Corey McKrill afd6376a5e
Include post_ID field in HPOS order edit screen (#39321)
This PR adds a post_ID hidden field to the HPOS order edit screen for compatibility with the posts order edit screen.

Fixes #39272
2023-07-19 14:11:52 -07:00
Barry Hughes e97eda12ae
Introduce grace period before asking guests to verify their email address (#39191)
* Add a grace period during which email verification is not required (order pay/conf page).

When the order confirmation (or payment) page is requested, we often want to ensure the visitor is associated with the order. However, this relies heavily on information stored in the user session and, depending on the payment gateway in use, this may not be dependable. Therefore, we've introduced a grace period during which no such verification will take place.

* Provide a mechanism for establishing server-side filters from our E2E tests.

* Make our utilities for setting up filters from E2E available in the test env.

* Update guest shopper workflow to account for order conf/payment access grace period.

* Tidy verbiage.

* Add changefile(s) from automation for the following project(s): woocommerce

* Only activate the Filter Setter (e2e utility) during e2e tests.

* Coding standard fixes for E2E utility plugin.

* e2e: Update locators for headings to use getByRole, add await to clearFilters

* e2e: Abstract the cookie domain to work on non-localhost test sites

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2023-07-19 11:57:03 -07:00
Ron Rennick ae89984d42 include post_ID in HPOS order edit screen 2023-07-19 13:46:09 -03:00
Maikel David Pérez Gómez 6f8559dada
Unable to "turn off the new product form" from within the editor (#39317)
* Fix turn off the new block experience when tracking is turned off

* Add changelog file
2023-07-19 12:22:38 -04:00
github-actions[bot] faf508c209
Delete changelog files based on PR 39301 (#39315)
Delete changelog files for 39301

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-07-19 10:22:10 -05:00
Maikel David Pérez Gómez 776d567f30
Create the Organization tab (#39232)
* Add Organization to the right of General tab

* Add Product catalog and Attributes sections to the Organization tab

* Add Categories and Disable product reviews blocks to Product catalog section

* Add attributes block to the attributes section

* Add changelog files

* Fix php linter error

* Remove Categories and Attributes blocks from the General tab

* Change Disable product reviews by Enable product reviews
2023-07-19 10:11:03 -04:00
Panos (Panagiotis) Synetos ea1d08c72a
Merge branch 'trunk' into fix/admin-colors-use-theme 2023-07-19 15:21:30 +03:00
Panos (Panagiotis Synetos) 7628a5bc94
Fix Storefront recommendation link and missing image in Marketplace (#39294) 2023-07-19 15:03:33 +03:00
Rodel Calasagsag 30b35f8b9b Fix flakiness 2023-07-19 18:56:39 +08:00
Panos (Panagiotis Synetos) d7a4758d3d
Revert 2023-07-19 11:26:35 +03:00
Panos (Panagiotis Synetos) 355ea0b3bb
Wake up github actions 2023-07-19 11:26:14 +03:00
Vedanshu Jain 6d11563e8c Refactored filterd in the DB util for DRY. 2023-07-19 11:59:20 +05:30
Matt Sherman 5b412c46f0
Restore the woocommerce_variations_added jQuery trigger (#39301)
* Restore woocommerce_variations_added trigger

* Add e2e expect to verify that woocommerce_variations_added_functions jQuery trigger was called
2023-07-18 22:15:40 -04:00
Corey McKrill 00073c0d4c
Fix for free shipping handling of minimum order rule (#39155)
Fixes the calculation from when Apply minimum order rule before coupon discount is active and prices are entered inclusive of tax and displayed that way in cart and checkout, free shipping is no longer available (based on the minimum order amount including tax), as it uses the pre-tax amount when a coupon is applied.

Fixes #28752
2023-07-18 17:00:39 -07:00
Corey McKrill 808c44c76c
Add changelog file 2023-07-18 16:25:33 -07:00
github-actions[bot] a41f6aaf8e
Prep trunk for 8.1 cycle (#39286)
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-07-18 10:07:44 -05:00
github-actions[bot] 7bfe8234ae
Release: Remove 8.0 change files (#39288)
Delete changelog files from 8.0 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-07-18 10:06:34 -05:00
Panos (Panagiotis) Synetos d7930bc0e3
Update count color, use admin theme 2023-07-18 10:55:32 +03:00
Panos (Panagiotis) Synetos e310c9ed59
Fix Storefront recommendation link and missing image in Marketplace 2023-07-18 10:16:53 +03:00
Sam Seay 4a2fd63b99
Use syncpack customTypes to keep pnpm and node in sync. Update pnpm to 8.6.7 (#39245) 2023-07-18 14:27:18 +12:00
Sam Seay a511e72b4c
Add linting to CI for monorepo utils, add to CI unit tests for docs. (#39240) 2023-07-18 12:47:13 +12:00
martynmjones 2fcf512050
Add activation option workaround to trigger `woocommerce_newly_installed` action (#38694)
* Use option to track new WC installs

* Correct hook used for disabling legacy coupon menu

* Add changelog

* Fix deprecated hook version number

* Update unit tests

* Use AccessiblePrivateMethods to register action

* Update comments

---------

Co-authored-by: Martyn Jones <martyn.jones@automattic.com>
2023-07-17 12:52:50 -07:00
Joel Thiessen 7cb5cfed69
Making completion utilities available in AI package (#39190)
Co-authored-by: github-actions <github-actions@github.com>
2023-07-17 10:25:14 -07:00
Barry Hughes 722922191e
Revert PR#39146: fix basic flat rate shipping scenario (#39259)
* Reverts PR#39146 due to uncaught issues with flat rate shipping calculations.

* Explain lack of changelog.
2023-07-17 08:51:25 -07:00
Sam Seay 69e9acaba9
WooCommerce Docs: Improve Manifest Structure, Extend Frontmatter Support (#39214) 2023-07-17 20:46:23 +12:00
RJ 66cee083d4
add: removed avalara task list item (#39238)
* add: removed avalara task list item
2023-07-17 11:32:51 +08:00
Shendy f631a5ed20
Allow registered React-powered page to specify 'parent path' (#39116)
* Allow registered React-powered page to specify 'parent path', so the right menu item can be highlighted.

* Fix linting issue.

* Changelog.

* Add changefile(s) from automation for the following project(s): woocommerce

* Changelog.

* Add changefile(s) from automation for the following project(s): woocommerce

* Changelog.

* Update plugins/woocommerce/changelog/add-override-menu-item-highlight

Co-authored-by: Eric Jinks <3147296+Jinksi@users.noreply.github.com>

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
2023-07-16 15:23:33 -04:00
Barry Hughes 8a3893c47c
Prefer asterisks for API consumer key obfuscation | #39194 2023-07-14 08:45:59 -07:00
Vedanshu Jain 1833c74ef2 Coding standard fixes + changelog. 2023-07-14 18:38:30 +05:30
Vedanshu Jain c2590f2520 Limit index length to 191 characters by default.
Additionally, connect verify db tooling to order tables when they are enabled.
2023-07-14 18:38:30 +05:30
Panos (Panagiotis) Synetos 89784c0d15
Update helper css to use admin theme color 2023-07-14 15:10:29 +03:00
Panos (Panagiotis) Synetos f1ff6b0f3e
Hover on orders view icon, use admin theme color 2023-07-14 13:52:50 +03:00
Panos (Panagiotis) Synetos 81f0f7879d
Store alerts update - use admin theme colors 2023-07-14 13:51:49 +03:00
github-actions fb50c5f115 Add changefile(s) from automation for the following project(s): woocommerce 2023-07-14 16:05:23 +05:30
Vedanshu Jain 0124f3cd0c Fixed the option name, and additonal protection of creating order tables. 2023-07-14 15:15:44 +05:30
Vedanshu Jain bc942a0215
Refresh UX to enable HPOS tables (#38993) 2023-07-14 15:09:56 +05:30
Vedanshu Jain f9b31a2474
Add filter `woocommerce_redirect_order_location` for consistency with posts and HPOS. (#39193) 2023-07-14 12:40:05 +05:30
Vedanshu Jain 16f87da70d
Support dynamic prop setting for order subclasses. (#39219) 2023-07-14 12:04:57 +05:30
Vedanshu Jain 0629e2fb63 Add since tags. 2023-07-14 11:45:09 +05:30
Vedanshu Jain ca8ae1b768 Addded since tag. 2023-07-14 11:29:09 +05:30
Vedanshu Jain b6c3b3fd99 Convert tabs to spaces. 2023-07-14 11:20:00 +05:30
Vedanshu Jain 94fce9c169 Apply PR feedback suggestions. 2023-07-14 10:39:42 +05:30
Vedanshu Jain a92ba3e59a
Use correct representation of array types.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-14 10:32:46 +05:30
Phill 407dc4ebc3
Create fix-39194
Branch permissions won't let the workflow generate the changelog file.
2023-07-14 11:39:04 +07:00
rodelgc 2968cf3fe6
E2E: Add update button click, and more assertions to `can add custom product attributes` test (#39139)
* Add changelog

* Split for loop, add assertions

* Make visibility check more explicit
2023-07-13 13:38:51 -07:00
github-actions[bot] aeee7570c1
Delete changelog files based on PR 39207 (#39226)
Delete changelog files for 39207

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-07-13 09:36:45 -05:00
Vlad Olaru ed877abac6
Fixes for the WCPay welcome page incentives (#39207) 2023-07-13 17:07:45 +03:00
Vedanshu Jain cbfd4ae68c Add props to internal meta keys so that they are filtered. 2023-07-13 18:41:59 +05:30
Vedanshu Jain 098d0f2528 Add changelog. 2023-07-13 18:17:51 +05:30
Vedanshu Jain 74522b2b24 Removed unused method call and added unit tests. 2023-07-13 18:16:14 +05:30
Vedanshu Jain 88b7e992bc Support dynamic prop setting.
Additionally, use in refunds to set prop dynamically so that correct `this->data` is returned
2023-07-13 17:58:17 +05:30
Vedanshu Jain bde6fbf01e Handle edge case of order table being unexpectedly not present. 2023-07-13 16:29:58 +05:30
Vedanshu Jain 406f7b6174 Remove references to removed COT seperate feature flag. 2023-07-13 15:35:21 +05:30
Vedanshu Jain dcbddec591 Set option when HPOS tables are created.
Earlier, we were marking this based on whether HPOS is enabled or not, but now that HPOS is enabled (but not authoritative) for everyone, we need a seperate option to track this.
2023-07-13 15:33:42 +05:30
Oleksandr Aratovskyi aeaaac9505
Change WooCommerce Payments to WooPayments across the WC Core (#39188)
* Change WooCommerce Payments to WooPayments across the WC Core

* Change WooCommerce Payments to WooPayments across the WC Core

* Add more changelogs

* Add changelog for data package

* Change banner image and task description

* Fix lint error

* Change one more banner image

* Fix to the banner image

* Roll back changelog.txt and fix one condition for backwards compatibility

* Fix in changelog.txt

* Small fix in changelog.txt
2023-07-13 12:58:17 +03:00
Vedanshu Jain 0fc70027f5 Use custom option for custom order tables feature. 2023-07-13 12:01:14 +05:30
Vlad Olaru fd9e92e7bd
Add changelog entry 2023-07-13 09:29:48 +03:00
Vlad Olaru 5abf7acdbb
Simplify the has_wcpay logic to avoid overlapping conditions 2023-07-13 09:23:43 +03:00
Joel Thiessen b7e7d66de8
Adding basic Woo AI settings screen (#38920) 2023-07-12 17:12:03 -07:00
Vedanshu Jain c6d6a271c0
[HPOS] Backfill to post table only after order has persisted in orders table. (#39196)
* Save order object before persisting data.

Earlier we were backfilling order before updating them in the orders table. This would cause an issue where if there is any method that reads the DB again before backfilling it would read the stale record. Additionally, there is risk of data not being written to order table, but still backfilled.

Changing the order to backfill later fix this issue since if something reads the DB again during backfill, it will still read the latest record.

* Add changelog.

* Add unit tests.

* Coding standard fixes.
2023-07-12 14:41:15 -07:00
Maikel David Pérez Gómez f6b4cb6e71
Introduce the add and edit view Tracks events in the new form (#39186)
* Add tracking events for product add and edit pages

* Add changelog file
2023-07-12 16:01:06 -04:00
louwie17 c547326135
Update product experiment name (#39210)
* Update product experiment name

* Add changelog
2023-07-12 16:30:04 -03:00
Vlad Olaru 96f15ec5bd
Update incentive cache logic to use context hash for cache invalidation 2023-07-12 20:26:55 +03:00
Vlad Olaru cf72af9d38
refact: Return early when filtering 2023-07-12 20:26:20 +03:00
Vlad Olaru 35b397940d
Change the has_wcpay logic to better align with our server intent 2023-07-12 20:25:48 +03:00
Vlad Olaru d7f0208f5a
Reduce incentive cutoff condition to just WCPay plugin active 2023-07-12 20:22:38 +03:00
Vlad Olaru e5381787b2
docs: More precise docs 2023-07-12 20:21:27 +03:00
Vlad Olaru 758139ee00
refact: Add type hints 2023-07-12 20:20:13 +03:00
Vlad Olaru 36abbfd233
refact: Use short array syntax 2023-07-12 20:14:24 +03:00
Panos (Panagiotis) Synetos 269d893072
Finally, that's the changelog :) 2023-07-12 16:34:49 +03:00
Panos (Panagiotis) Synetos 2c1fe3e8c9
Remove styles from buttons, as theme colors.css is taking care of them 2023-07-12 15:09:15 +03:00
Panos (Panagiotis) Synetos 5fe4a08312
Applied review comments 2023-07-12 15:01:36 +03:00
Panos (Panagiotis) Synetos 658e11920f
Merge branch 'trunk' into fix/admin-colors-use-theme 2023-07-12 13:26:44 +03:00
Sam Seay e91a72b8a1
WooCommerce Docs: Support Gutenberg block conversion with CommonMark, add some basic unit tests. (#39096)
* Extract docs manifest generation into a CLI tool
2023-07-12 19:29:15 +12:00
Phill 64942cb195
Enhancement class-wc-admin-api-keys-table-list.php
Replaced Ellipses for asterisk when hiding part of the API Key
2023-07-12 14:20:43 +07:00
Vedanshu Jain 435619b5c1 Add filter `woocommerce_redirect_order_location` for consistency with posts and HPOS. 2023-07-12 11:39:19 +05:30
rodelgc dddd0e65ac
E2E: Update locators and force-check in `order-email-receiving` and `order-emails` specs (#39159)
* Add changelog

* Update locator and force check
2023-07-11 13:02:00 -07:00
Panos (Panagiotis) Synetos ec6ab3bf8d
Merge branch 'trunk' into fix/admin-colors-use-theme 2023-07-11 19:44:14 +03:00
Panos (Panagiotis) Synetos 4bbc7b3eca
Remove hardcoded text color wherever variable background color is used 2023-07-11 19:43:05 +03:00
Panos (Panagiotis) Synetos 6ee83e0f5e
Fix activation css to use wp-admin-theme-color 2023-07-11 19:21:37 +03:00
Panos (Panagiotis) Synetos 111841f783
Use new branding colors in activation and wc setup 2023-07-11 19:04:49 +03:00
Vedanshu Jain 780f2a1d99 Coding standard fixups. 2023-07-11 20:17:03 +05:30
Panos (Panagiotis) Synetos b467c0f25b
Shipping methods empty state follow theme colors (and minor improvements) 2023-07-11 17:45:39 +03:00
Thilina Pituwala 19b3d40595
Prevent unwanted helper api calls when loading subscription notes (#37378)
* Load subscription notes only via WC Admin home page and extensions page to avoid calling helper API endpoints unnecessarily.

* Adding change log.

* Moving connection check after the early return statements.

* Use admin_head hook instead of admin_init to load subscriptions notes.

Since `get_current_screen` function can not be called within `admin-init` hook it is not possible to determine if the subscriptions are being loaded via WC related page or not.

* Update doc block.
2023-07-11 09:02:32 -05:00
Panos (Panagiotis) Synetos 9412de17b6
Use page-title-action instead of deprecated add-new-h2 2023-07-11 16:43:39 +03:00
Panos (Panagiotis) Synetos c80b0bcc8b
Untested extensions modal uses theme colors 2023-07-11 16:43:09 +03:00
Panos (Panagiotis) Synetos 4c196332c2
Auth page uses Woo colors, according to branding 2023-07-11 16:41:10 +03:00
Panos (Panagiotis) Synetos 5b72907070
Importer/Exporter use admin theme color 2023-07-11 16:40:41 +03:00
Panos (Panagiotis) Synetos 6263316b3f
Breadcrump up link use admin theme color 2023-07-11 16:38:18 +03:00
Panos (Panagiotis) Synetos 76af662744
Email status use admin theme color 2023-07-11 16:37:15 +03:00
Panos (Panagiotis) Synetos 54bdd0d038
Input toggles use admin theme color 2023-07-11 16:35:20 +03:00
Panos (Panagiotis) Synetos a697949cde
WooCommerce message use admin theme color 2023-07-11 16:34:56 +03:00
Panos (Panagiotis) Synetos eee7c0a46e
Blankstate buttons follow theme colors 2023-07-11 16:34:24 +03:00
Panos (Panagiotis) Synetos 903ce08690
Change default WooCommerce color 2023-07-11 16:24:57 +03:00
Vedanshu Jain 5c5b2ce289 Fix syntax from GH UX commit + use consistent description. 2023-07-11 18:49:35 +05:30
Vedanshu Jain 95d2220c7f
Move out HTML out of translatable string for easier translation.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:45:06 +05:30
Vedanshu Jain bbd93841da
Fix indentation.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:44:09 +05:30
Vedanshu Jain c0dc48df00
Add the `the`.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:43:58 +05:30
Vedanshu Jain ffb20eb7ec
Use proper pluralization of pending sync message.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:43:33 +05:30
Vedanshu Jain bdffe69340
Capitalisation fix for posts.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:41:50 +05:30
Vedanshu Jain 2c53c35a61
Add name so that it's displayed in the incompatible plugins UX.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-11 18:41:32 +05:30
Nathan Silveira e85491bdea
Focus on name field when mounting and update summary field UI (#39050)
* Move placeholder of summary to help text at bottom of the component

* Focus the name field when mounting

* Add changelog

* Create 'autoFocus' block attribute instead of using useEffect

* Add changelog
2023-07-11 09:48:26 -03:00
Vedanshu Jain 09b6d67d4f phpcs fix. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 98601052b0 Mior fixups with enable permissioning. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 1d9bed1b5d Fix notice. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 685b6a12df Change method name to be more descriptive. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 52adda154a Fixups when enabling/disabling HPOS. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 8af85218be Flush cache since we are updating option. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 661219fb52 Remove expectation of HPOS setting in advance test. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 37b8094704 Temporary remove COMMIT to see if it fixes tests. 2023-07-11 17:19:29 +05:30
Vedanshu Jain f02b6c5b26 More unit test fixes + throw error when transaction level is invalid. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 3c59b8b4dc More resilient unit tests + return errors as expected from fetching functions. 2023-07-11 17:19:29 +05:30
Vedanshu Jain 56d0bb2fb9 Commit after flipping HPOS toggle to prevent PHPUnit from calling rollback. 2023-07-11 17:19:27 +05:30
Vedanshu Jain c3e84597c6 Coding standard fixes 2023-07-11 17:18:13 +05:30
Vedanshu Jain 84f54d5618 Reduce the scope of transaction and enable by default for all. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 2ed274dd78 Return appropriate setting if WC is installing. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 945ebf7d71 Fix options for back compat and readibility. 2023-07-11 17:18:13 +05:30
Vedanshu Jain b95c58bd60 Better function names. 2023-07-11 17:18:13 +05:30
Vedanshu Jain b4dc98a62a Remove auto flip feature as its risky to flip tables without merchant interaction. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 1c40f38615 Mark HPOS as always enabled. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 88b696d14a Remove hook for feature setting screen and transaction level setting. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 01bc0ef89e Add name attr so that it displays correctly in plugins incompat page. 2023-07-11 17:18:13 +05:30
Vedanshu Jain a2ba3f6b68 Use inbuilt rendering block instead of writing a new template. 2023-07-11 17:18:13 +05:30
Vedanshu Jain f51d6618ef Some more fixups to refreshed UX. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 187ca07098 Add changelog. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 47ca74bdcf Add initial layout for new HPOS setting. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 1d04ddcd11 Pass the correct param in woocommerce_settings_features. 2023-07-11 17:18:13 +05:30
Vedanshu Jain 7fbb12b274
[HPOS] Synchronize order deletions (#37050) 2023-07-11 17:16:18 +05:30
Nestor Soriano 387c91c7b8
Fix the wc_update_total_sales_counts function
It was relying on the 'before_delete_post' hook but it should rely
on 'woocommerce_before_delete_order' instead.
2023-07-11 09:02:42 +09:00
Barry Hughes 0ae1fa1f5a
Validate shipping rates (#39146)
* Validate shipping rates are suitable for all the products in cart

* add changelog

* added phpcs ignore rule

* Refactor shipping rates validation specifically for flat rate

* performant check after CR comments

* account for free shipping

* Added Unit Tests

* fix unit test assertion

* Adding more unit tests and fixing previous one

* Fixing errors because of added test after effects

* move tests location and improve readability

* fix phpcs errors

---------

Co-authored-by: Dimitrios Pantazis <dpanta94@gmail.com>
2023-07-10 16:50:51 -07:00
Vedanshu Jain 04e3ba26a8
[HPOS] Add action for order_edit_form_top as a replacement to edit_form_top (#39165)
Add action for order_edit_form_top as a replacement to edit_form_top for HPOS.
2023-07-10 16:37:26 -07:00
Nima Karimi 1096ddb0d3
Incorporate additional product data to generate AI description (#39150)
* Switching front-end description logic to use new endpoint

* Logging troubles

* Tentively working for title suggestions

* Adding changelog

* Updating to accept altered response body for title suggestions

* Using client-size streaming instead of our own proxy API

* Removing obsolete API code

* implementing feedback

* Refactoring product data logic

* Fixing getAttributes function to work with local attributes

* Allowing for boolean values in product data

* Refactoring getCategories to always return array

* Removing orphaned type

* Refactoring getCategories again

* Refactor productData methods to get attributes and categories

* Include product properties in the prompt for generating description

* Add changelog

* Include local attributes in addition to global attr

* Show error if parsing suggestions fail

---------

Co-authored-by: Joel <dygerati@gmail.com>
2023-07-10 23:35:03 +03:00
Maikel David Pérez Gómez 96c0c5bd74
On-/offboarding copy updates (#39055)
* Change the modal's description test in the first step of the product block editor tour

* Change the modal's description text in the first step of the product block editor guide

* Change the modal's description text in the second step of the product block editor guide

* Change the modal's title and description text in the third step of the product block editor guide

* Change the modal's description text in the four step of the product block editor guide

* Enhance the Options menu of the product block editor

* Add slide up animation and translucent background to the feedback bottom bar

* Change de CES's modal heading text in the product block editor

* Change the notice message after the feedback is being sent from the CES Modals

* Enhance leave feedback modal checkbox labels

* Change leave feedback modal submit button text

* Show success notice after submit the leave feedback modal

* Add changelog files

* Change the illustration in the first step of the feature tour

* Change the modal's title and description text in the first step of the product block editor tour for old users

* Change the modal's title and description text in the first step of the product block editor guide for old users

* Change the modal's title and description text in the third step of the product block editor guide for old users

* Fix unit tests

* Change the customer effort score changelog description

* Change footer forward button to primary and backward button to tertiary in the tour guide modal
2023-07-10 14:51:55 -04:00
jonathansadowski 1cd947a320
Sync 273 (#38983)
Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
2023-07-10 09:17:27 -05:00
Nestor Soriano 96db657df2
Merge branch 'trunk' into add/sync_of_deleted_orders 2023-07-10 17:46:41 +09:00
Nestor Soriano f589ecfd38
Use constant strings instead of table names for deletion records.
The meta values for deletion records will now be 'posts_table'
and 'orders_table', instead of the hardcoded table names. This is safer
because the database prefix could change (in case of a site migration,
for example).
2023-07-10 16:39:30 +09:00
Nestor Soriano 834675d023
Fix the post type check in DataSynchronizer::handle_deleted_post 2023-07-10 16:03:02 +09:00
Maikel David Pérez Gómez 714e50bf4c
Create variations block with empty state (#39038)
* Create and register woocommerce/product-variations-fields block

* Hide or show the empty state or inner blocks if the product has attributes

* Add changelog files

* Fix php linter errors
2023-07-07 17:15:54 -03:00
Moon 06eb1ea98c
Remove Tiktok from the onboarding plugin suggestion list (#39135)
* Remove Tiktok from plugin suggestion list

* Add changelog
2023-07-07 10:52:11 -07:00
Moon 68ff03063a
Core profiler -- fix the gap at the top on iPad and iPad Mini (#39108)
* Fix unexpected gap on iPad and iPad Mini

* Fix css lint
2023-07-07 10:51:48 -07:00
Nathan Silveira 7767f9e78f
Add unit tests to tracks events fired through PHP (#39133)
* Add tests for class-wc-orders-tracking

* Add tests for orders tracking

* Add test for orders_view_search

* Create tests for settings tracking

* Add tests to product tracking

* Add changelog

* Add tests for importer tracking and fix phpcs issues

* Disable phpcs rules
2023-07-07 12:41:39 -03:00
Gan Eng Chin afdc00e1fc
Add Klaviyo into default free extensions for onboarding task list (#39087) 2023-07-07 23:03:35 +08:00
Barry Hughes 5417750757
Fix/ Decrease product total_sales when an order is reversed #23796 (#37842) 2023-07-07 08:01:00 -07:00
Thomas Roberts 71fc49f2fd
Update WooCommerce Blocks to 10.6.0 (#39144) 2023-07-07 07:08:49 -07:00
Abdalsalaam Halawa c317b756bf Fix total sales count tests
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 03213e0174 Use strict comparisons in_array
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 716119822f Order untrash test 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 6b72758d80 test trash/ un-trash order CPT 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 7087470e1f Fix increase/decrease count after order deleting 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 477e626354 Update total sales amount for trashing/restoring order 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 34c6058d02 Add asserting for refund scenario 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa e637e42043 update_total_sales_counts test 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 41cb12c830 Decrease total sales after if order deleted 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa fb0a66a1fb Keep total_sales if order is refunded 2023-07-07 06:38:41 -07:00
Abdalsalaam Halawa 853e927c08 add changelog 2023-07-07 06:38:40 -07:00
Abdalsalaam Halawa 967285b23b Fix: Decrease total sales per product when an order is reversed 2023-07-07 06:38:40 -07:00
Barry Hughes f58580452c
Support hosts which do not have access to 'DUAL' table (#39111) 2023-07-07 05:32:42 -07:00
Gan Eng Chin 4aab269c89
Rename "Install plugin" button text to "Install extension" in Marketing page (#39130) 2023-07-07 20:31:57 +08:00
Barry Hughes 8e5d930c48
Closing and opening tags must match. (#39053) 2023-07-07 05:30:12 -07:00
barryhughes ecf64a71b2 Clean up after testing `wc_load_cart()`. 2023-07-06 17:36:44 -07:00
rodelgc 040f138717
E2E: Set up HPOS through `wp option` cli command (#39095)
* Add changelog

* Use `wp option` to enable HPOS
2023-07-06 10:26:09 -07:00
rodelgc 90a6ba76dd
Update `wp-env` to `8.2.0` (#39100)
* Update pinVersion

* Syncpack fix mismatches

* Update lockfile via `pnpm i`

* Add changelog.

* Add more changelogs
2023-07-06 10:06:39 -07:00
Gan Eng Chin a2f2d135b2
Add changelog. 2023-07-07 01:01:03 +08:00
Gan Eng Chin 990af1f534
Rename "Install plugin" button text to "Install extension". 2023-07-06 23:50:56 +08:00
github-actions[bot] 96c686c4d9
Delete changelog files based on PR 38769 (#39114)
Delete changelog files for 38769

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-07-06 14:39:06 +12:00
Joel Thiessen 419bd98db7
Updating product AI features endpoints (#38930) 2023-07-05 18:39:19 -07:00
DAnn2012 a99ce61fb2
Fixed minimum required PHP version in readme.txt file (#39078)
Co-authored-by: Néstor Soriano <konamiman@konamiman.com>
2023-07-06 02:14:20 +02:00
rodelgc 504b3be343
E2e: fix order emails (#39013)
* Use latest version of WP Mail Logging

* Use batch delete operation to gracefully handle uncreated test orders

* Use stricter locator

* Add changelog
2023-07-05 16:42:42 -07:00
rodelgc ed1ace1646
E2E: Fix skipping of core profiler in `page-loads.spec.js` (#39084)
* Add changelog

* Move skip action to beforeAll hook
2023-07-05 16:15:54 -07:00
Chris McCluskey 3c8a54c576 Add change file 2023-07-05 15:33:25 -07:00
Chris McCluskey cadf9e833f Query from existing table instead of DUAL 2023-07-05 13:43:32 -07:00
Maikel David Pérez Gómez 98b9670848
Console Errors when the New Product Editor is enabled (#39027)
* Bootstrap server side block definitions

* Add changelog file

* Revert action priority to its prev value

* Check if unstable__bootstrapServerSideBlockDefinitions function exists before call it
2023-07-05 14:32:04 -04:00
Nathan Silveira c9d4324b43
Fix "Used for variations" checkbox being disabled on Variable products (#39106)
* Reintroduce disable_or_enable_fields

* Add changelog

* Add an additional call to disable_or_enable_fields

* Fix changelog
2023-07-05 15:20:06 -03:00
Gan Eng Chin e004f90c3f
Fix php linting error. 2023-07-06 01:45:25 +08:00
github-actions[bot] ad8b121e21
Delete changelog files based on PR 38833 (#39094)
Delete changelog files for 38833

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-07-05 09:56:51 +12:00
Nathan Silveira 408ceaa8f7
Fix undismissable store alert when using language localization (#38967)
* Fix error while dismissing the last alert when there's multiple

* Copy action id to localized action

* Add changefile(s) from automation for the following project(s): woocommerce

* Fix lint issue

* Improve implementation and add test

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-07-04 16:54:13 -03:00
Fernando Marichal 00d8e65cf0
Fix grey background when menu collapsed (#38941)
* Fix styles

* Add changelog

* Fix 'adminmenuback' z-index

* Fix header and footer

* Fix header

* Fix lint

* Fix footer

* Fix form background color
2023-07-04 14:59:33 -03:00
Maikel David Pérez Gómez 11541583e0
Perform feature flag change and redirection in the same request (#38833)
* Perform feature flag change and redirection in the same request

* Add changelog file

* Remove feature related query args after enabling/disabling it

* Use REQUEST_URI instead of referred one

* Fix lint errors

* Move phpcs to new line

* Use isset instead of empty

---------

Co-authored-by: Nathan Schneider <nsschneider1@gmail.com>
Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2023-07-04 12:06:40 -03:00
Gan Eng Chin ba1f76dcfe
Add changelog. 2023-07-04 23:00:14 +08:00
Gan Eng Chin be363458e3
Add Klaviyo into default free extensions for onboarding task list. 2023-07-04 19:36:30 +08:00
Gan Eng Chin ed5737ba87
Call marketing extension recommendations API version 1.3 and support Klaviyo in "Installed extensions" card in Marketing page (#38974) 2023-07-04 17:27:02 +08:00
Nestor Soriano 7a8891feed
Migration fixed.
The first version was actually deleting all the existing placeholder
records.
2023-07-04 16:31:44 +09:00
github-actions[bot] 6be7214fda
Delete changelog files based on PR 38999 (#39076)
Delete changelog files for 38999

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-07-04 16:59:23 +12:00
Nestor Soriano 9e10e5c605
Fix linting errors in StringUtilTest 2023-07-04 12:45:16 +09:00
Chi-Hsuan Huang 3a402a1235
Replace button text "Proceed" with "Continue" to be more consistent (#38961)
* Replace "Proceed" with "Continue" to be more consistent

* Add changelog

* Update button label for WCPay setup step in task list
2023-07-04 11:36:28 +08:00
Nestor Soriano 161bffe054
Fix a couple of @since tags 2023-07-04 12:32:15 +09:00
Nestor Soriano 0759984b9f
Modify the stray order deletion migration to work in batches.
Also introduce some utility methods:

StringUtil::to_sql_list
StringUtil::class_name_without_namespace
2023-07-04 12:24:15 +09:00
Kathy 9d5c90dad8
Send $product_name through woocommerce_cart_item_name filter once (#38999)
* Send $product_name through woocommerce_cart_item_name filter only once. Closes #38744.

* Replace additional product name filters, with already filtered variable.

* add additional params to docblock of woocommerce_cart_item_name

* bump template version to 7.9.0

* revert cart_item_name filter change in #37830

* Minor fixes

* Bump template version

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-07-04 15:16:39 +12:00
Nestor Soriano 49caf09db7
Remove the explicit creation of deletion records for child orders.
See the comment added at the end of
OrdersTableDataStore::handle_order_deletion_with_sync_disabled
2023-07-04 10:25:04 +09:00
github-actions[bot] baca2fbfe1
Delete changelog files based on PR 39048 (#39069)
Delete changelog files for 39048

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-07-04 12:16:20 +12:00
Moon 7bbffd3284
Update CSS styles for core profiler headers (#39059)
* Remove letter-spacing and use 500 for font-weight

* Add changelog

* Style updates for the header

* Set letter-spacing to normal
* Use 500 for font-weight
* Remove max-width

* Add changelog
2023-07-03 10:54:48 -07:00
Nestor Soriano 77af8532c6
Add a 'suppress_filters' arg to Abstract_WC_Order_Data_Store_CPT::delete
Also this method now fires 'woocommerce_before_delete/trash_order'
hooks, for symmetry with OrdersTableDataStore::delete.
2023-07-03 16:14:42 +09:00
Nestor Soriano 406e2acba7
Add a 'suppress_filters' arg to OrdersTableDataStore::delete
Also set it to true in DataSynchronizer::process_deleted_orders
2023-07-03 16:10:39 +09:00
Nestor Soriano 5e1624be46
Remove the "verify parent id" logic for orders 2023-07-03 14:39:19 +09:00
Nestor Soriano 79a6c798de
Merge branch 'trunk' into add/sync_of_deleted_orders 2023-07-03 14:34:20 +09:00
Nestor Soriano 0793d9da40
get_next_batch_to_process now returns changes of all types.
Previously it wouldn't mix "deleted" with "created" or "updated"
in the same batch.

Also dded the HposTestCase::set_order_as_updated method.
2023-07-03 13:45:36 +09:00
barryhughes b0f14a26ea Correct another mismatched closing tag. 2023-06-30 11:53:37 -07:00
barryhughes 213e402cc4 Closing and opening tags must match. 2023-06-30 11:50:27 -07:00
Luigi Teschio 61a6fc618c
Update WooCommerce Blocks to 10.4.5 (#39048)
bump WC Blocks to 10.4.5
2023-06-30 15:27:27 +02:00
github-actions[bot] 6fac9fe376
Delete changelog files based on PR 39030 (#39044)
Delete changelog files for 39030

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-30 16:22:39 +12:00
github-actions[bot] 192843b487
Delete changelog files based on PR 38872 (#38924)
Delete changelog files for 38872

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-30 16:13:58 +12:00
Moon 87393e0ef1
Update CSS styles for core profiler headers (#39042)
* Remove letter-spacing and use 500 for font-weight

* Add changelog
2023-06-29 20:16:44 -07:00
Daniel Dudzic 3d0c5af5fe
FSE: Fix frontend stylesheets not being enqueued in the Site Editor (#38769) 2023-06-29 22:30:02 +02:00
louwie17 690bd7da2b
Require wc-admin-functions into products tracking class (#39030)
* Require wc-admin-functions into products tracking class

* Add changelog

* Revert old change back
2023-06-29 17:00:04 -03:00
Daniel Dudzic b1dc8b67f9
Merge branch 'woocommerce:trunk' into fix/35495-stylesheets-not-enqueued-in-site-editor 2023-06-29 21:54:44 +02:00
github-actions[bot] 1aab0eccab
Delete changelog files based on PR 38987 (#39034)
Delete changelog files for 38987

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-29 13:36:20 -05:00
github-actions[bot] 3915ea496f
Delete changelog files based on PR 38929 (#39032)
Delete changelog files for 38929

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-29 13:33:07 -05:00
Gan Eng Chin f36b00021b
Replace deprecated WC_ADMIN_IMAGES_FOLDER_URL with plugins_url function call.
Co-authored-by: Jeremy Pry <JPry@users.noreply.github.com>
2023-06-30 00:29:09 +08:00
Gan Eng Chin bb8079def8
Fix PHP lint issues. 2023-06-29 19:12:48 +08:00
Gan Eng Chin f8b509a710
Add changelog. 2023-06-29 19:00:02 +08:00
Sam Seay 957fb2b07e
Update pnpm to 8.6.5 (#38990) 2023-06-29 16:51:29 +12:00
Sam Seay 59e1ba174d
MVP process manifest JSON and convert to WordPress categories/posts (#38874)
---------

Co-authored-by: Leif Singer <git@singer.sh>
2023-06-29 16:47:22 +12:00
Corey McKrill 55b2c67eda
Analytics API: Parameter to omit customer records with specific empty fields (#38827)
Adds `filter_empty` parameter, so that customer records with specific empty fields can be left out of the results, resulting in more efficient requests.

Fixes #38820
2023-06-28 17:17:53 -07:00
Corey McKrill b81a86c922
OrdersTableDataStore: capture+log exceptions when populating order properties (#38840)
Even if errors are found when populating the order properties, the order object will be returned anyway. Additionally, these errors will be logged as warnings, both when using the new HPOS-based orders datastore and when using the old CPT based datastore.
2023-06-28 17:13:33 -07:00
Nima Karimi 8d5d8d9302
Release Woo AI plugin v0.2.0 (#39011)
Updating versions and changelog
2023-06-29 02:21:33 +03:00
Moon 55280aea96
Override Jetpack connection data endpoint when Jetpack is not installed (#38987)
* Override /jetpack/v4/connection/data to return 404 to fix conflict with Android app flow

* Add changelog

* Override only for the mobile devices
2023-06-28 12:51:09 -07:00
Joel Thiessen 9927facfb3
Adding tracks events indicating visibility for ai features (#39005) 2023-06-28 10:32:12 -07:00
Nestor Soriano 43172a32e7
Log errors when setting order properties using the CPT datastore too. 2023-06-28 14:20:57 +02:00
Emmanuel Hesry 25601eaaa0
Remove hardcoded 'shop order' screen id in order edit page (#38938) 2023-06-28 10:51:56 +02:00
Karol Manijak b5cbc1d7cf
Fix "View Cart" link layout in post/page (#38950) 2023-06-28 08:46:46 +02:00
Ron Rennick 4476129595
do not use image size cache while in customizer (#38875)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-06-27 14:50:51 -07:00
Mahmoud Saeed b0ae9dac27
Use NumberUtil::round() instead of number_format() in WC_Order::get_item_subtotal() (#36760)
* Use NumberUtil::round() instead of number_format() in WC_Order::get_item_subtotal()

* Add changelog

---------

Co-authored-by: Jorge A. Torres <jorge@0xbad.com>
2023-06-27 14:32:43 -07:00
github-actions[bot] 233860b704
Delete changelog files based on PR 38834 (#38986)
Delete changelog files for 38834

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-27 16:09:46 -05:00
Mike Jolley 84171baaaa
Fix display of "empty cart" notices when using a shortcode cart and the checkout block (#38738)
* Wrap wc_empty_cart_message with a new `wc-empty-cart-message` class

* use `wc-empty-cart-message` in cart.js

* changelog

* phpcs violations
2023-06-27 12:35:44 -07:00
Nima Karimi 500cdb8b23
Update the product's permalink (slug) when an AI suggestion is selected (#38902)
* Add product id to product data

* Create a React Hook for updating product slug

* Update product slug when title is updated.

* Add changelog

* Import hooks from index

* Use getPostId util to get product ID

* Only update draft product's slug
2023-06-27 21:46:18 +03:00
github-actions[bot] 783cfd4f29
Delete changelog files based on PR 38914 (#38978)
Delete changelog files for 38914

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-27 12:03:58 -05:00
Gan Eng Chin d53192f30a
Call marketing extensions recommendations API version 1.3.
Version 1.3 contains new recommendation Klaviyo extension.
2023-06-28 00:11:37 +08:00
Fernando Marichal 611adcf2b4
Add Variations tab to Product Block Editor (#38921)
* Add Variations tab

* Add changelog

* Fix lint
2023-06-27 12:57:23 -03:00
Nathan Silveira 89129cc62a
Revert "Always show pricing group fields, disable if not available for a product type (#38531)" (#38964)
* Revert "Always show pricing group fields, disable if not available for a product type (#38531)"

This reverts commit 18f2de2bc4.

* Add changelog and fix lint issues

* Remove call to removed function
2023-06-27 12:50:02 -03:00
Gan Eng Chin ac3097227c
Make Klaviyo show up in installed extensions card. 2023-06-27 23:36:44 +08:00
Gan Eng Chin 9d473adeb7
Make Klaviyo icon shows up in installed extensions card. 2023-06-27 23:36:44 +08:00
Gan Eng Chin c00f569091
Add Klaviyo logo icon. 2023-06-27 23:36:44 +08:00
Sam Seay 7860415be5
Bump beta-tester to 2.2.1 to release support for installing trunk live branch (#38908)
Bump version of beta tester in prep to release.
2023-06-28 00:15:39 +12:00
Ahmed 2e5b6d1d1d
Add support for 6 new countries in WCPay (#38109)
* Add new countries in isWCPaySupported

* Add new countries in get_wcpay_countries

* Add new countries in default free extension 'woocommerce-payments'

* changelog

* fox linting issue

* Remove support for Czech Republic, Sweden, Hungary

* Revert "Remove support for Czech Republic, Sweden, Hungary"

This reverts commit 0a8309f664.
2023-06-27 18:35:28 +08:00
kidinov 536f39db6d Fixed the description 2023-06-27 11:18:18 +02:00
Jonathan Lane a948c72fae
Fix failing tests in create shipping zones (#38949)
* Fix failing tests, clean up locators

* Add changelog

* Fix bugs

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-06-27 10:52:52 +02:00
Karol Manijak 77dfa4a73a Add changelog entry 2023-06-27 08:48:06 +02:00
Karol Manijak f794bcd2ce Load added_to_cart styles in the posts/pages as in archive templates 2023-06-27 08:27:49 +02:00
Moon ac1b5f0b14
Restore plugins selection when there is an error (#38922)
Restore plugins selection when there is installatio error
2023-06-26 17:31:16 -07:00
Moon acfd7dc53f
Prefetch Jetpack connection and auth info (#38929)
* prefetch Jetpack connection and auth info when Jetpack is selected

* Add changelog

* Use pre-exisiting hasJetpackSelected cond
2023-06-26 17:30:46 -07:00
Ron Rennick f44694f750
Ignore cached plugin data when checking if plugins are WooCommerce-aware (#38836) 2023-06-26 15:01:11 -03:00
rodelgc 95681d2c8b
Fix `upload-plugin` spec by updating locator from core profiler (#38914)
* Update locator

* Add changelog
2023-06-26 13:03:55 +02:00
kidinov 278e10bb33 Fixed broken test 2023-06-26 12:18:51 +02:00
kidinov 6dbb0955e6 Tests adjustements 2023-06-26 10:56:49 +02:00
kidinov bff7d12c19 Better comment for test 2023-06-26 10:24:25 +02:00
kidinov 84bb1c91b8 Removed setting empty query paras 2023-06-26 10:23:54 +02:00
kidinov 89d3a1ecee Merge branch 'trunk' into update-38820-enhancement-api-search-customers-with-non-empty-email-or-name-or-address
# Conflicts:
#	plugins/woocommerce/tests/legacy/unit-tests/woocommerce-admin/api/reports-customers.php
2023-06-26 10:01:38 +02:00
kidinov 93a62e704d Tests to the separate test 2023-06-26 09:56:13 +02:00
Andrey d4b77eead6
Update query type for filter_empty
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2023-06-26 09:30:06 +02:00
nigeljamesstevenson 3b075731a5
Make e2e test `can discard industry changes when navigating back to "Store Details"` independent from previous tests (#38715)
* e2e test update

* handle modal on test

* Update deprecated method

---------

Co-authored-by: Rodel Calasagsag <rodel.calasagsag@automattic.com>
2023-06-26 14:13:02 +08:00
rodelgc b91c37fe32
Replace deprecated `page` methods (#38344) 2023-06-26 09:06:11 +08:00
Anastasio e3194c25e3
Merge branch 'woocommerce:trunk' into trunk 2023-06-25 23:54:31 +02:00
anastas10s-afk 71716bb8f1 Free shipping handling of minimum order rule
Changes when coupons added and prices are entered and displayed inclusive of tax
2023-06-25 23:53:14 +02:00
Barry Hughes 7ed5f599a2
Improve hpos cli verbose output (#38699) 2023-06-23 13:40:57 -07:00
github-actions[bot] 41d24a7643
Delete changelog files based on PR 38918 (#38928)
Delete changelog files for 38918

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-23 14:33:00 -05:00
github-actions[bot] 127ced8e79
Delete changelog files based on PR 38861 (#38926)
Delete changelog files for 38861

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-23 14:29:11 -05:00
Ron Rennick f879ebb6c7
Update plugins/woocommerce/changelog/improve-hpos-cli-verbose-output
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-06-23 15:56:53 -03:00
Alexandre Lara 960ed2d0d1
Update WooCommerce Blocks to 10.4.4 (#38918) 2023-06-23 15:29:25 -03:00
Corey McKrill fbcab41289
Improvements to the dependency injection related unit testing infrastructure (#38849)
* When ExtendedContainer::replace is used and an instance of an object is passed as the replacement, the init method of the passed object will be executed (previously the container would execute init only when creating a new instance from a class name).
* Added the ExtendedContainer::reset_replacement method, this will undo a replace and reset the registration back to its original state (so get will act as if replace had never been executed for the given class name). Note that for shared definitions this needs to be combined with reset_all_resolved.
* Similarly, added the ExtendedContainer::reset_all_replacements method.
2023-06-23 10:24:52 -07:00
Alexandre Lara 2163b5e108 Update WooCommerce Blocks to 10.4.4 2023-06-23 12:36:11 -03:00
Nestor Soriano c59b8cefad
Apply absint to the batch in DataSynchronizer::process_batch 2023-06-23 16:37:35 +02:00
Nestor Soriano ae1e340ae6
Use $wpdb->suppress_errors in the data migration 2023-06-23 16:25:29 +02:00
Nestor Soriano e83eb70599
Deletion key renamed to '_deleted_from', and moved to constant. 2023-06-23 16:19:45 +02:00
Nathan Silveira 066974538c
[Enhancement]: Add Tracks event recording to Emails settings (#38834)
* Add possibility to track select and checkbox values for non_option settings

* Track select and checkboxes in abstract-wc-settings-api

* Add changelog

* Add hook comment and ignore phpcs for actions that were already called before
2023-06-23 09:44:57 -03:00
Nestor Soriano f9e0705fc4
Fix insertion of duplicated deletion records.
With orders table authoritative, sync disabled, an order with refunds
is deleted, a duplicate deletion record was being created for the refund.

That's because 'upshift_or_delete_child_orders' was deleting the child
orders, which caused a deletion record to be already created; and
after that, 'handle_order_deletion_with_sync_disabled' was again
creating a record for these child orders.

The fix is a bit convoluted because we can't know for sure if
'upshift_or_delete_child_orders' will delete the child orders or not.
2023-06-23 13:03:17 +02:00
Vedanshu Jain e6eda7fce5
Analytics API: Search for customers using all available search fields instead of having to choose one (#38628) 2023-06-23 14:32:42 +05:30
Chi-Hsuan Huang 5fb8183682
Fix Core Profiler UI issues (#38872)
* Fix overlapping button position when the height is less than 667px (iphone SE)

* Fix misaligned check icon on mobile

* Prevent the menu from closing when clicking on a selected item

* Add changelog

* Fix lint

---------

Co-authored-by: moon <moon.kyong@automattic.com>
2023-06-22 20:54:14 -07:00
Corey McKrill 26902f0ce1
Move unit tests to existing file 2023-06-22 17:24:25 -07:00
Corey McKrill b16d362490
Add unit tests 2023-06-22 15:44:40 -07:00
github-actions[bot] b9f265c44a
Delete changelog files based on PR 38852 (#38894)
Delete changelog files for 38852

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-22 14:35:32 -05:00
github-actions[bot] a75b8fd393
Delete changelog files based on PR 38854 (#38890)
Delete changelog files for 38854

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-22 14:22:01 -05:00
Nathan Silveira b1f4907dec
Remove feature related query args after enabling/disabling it (#38852)
* Remove feature related query args after enabling/disabling it

* Test to see if E2E tests pass

* Revert "Test to see if E2E tests pass"

This reverts commit 120e971f33f22dc3e7eec6e5ab228b1908c56364.

* Add support to remove multiple query params
2023-06-22 14:42:00 -04:00
Matt Sherman 78dad448f4
Always pass defaults to product_type_options filter (#38854)
* Add wc_get_default_product_type_options function

* Use wc_get_default_product_type_options() as initial input for product_type_options filter

* Changelog
2023-06-22 08:16:34 -04:00
kidinov fc6c01736a Fixed formatting 2023-06-22 10:55:53 +02:00
kidinov 0d5bc86da2 Fixed test again 2023-06-22 09:50:50 +02:00
Nestor Soriano 15d505864f
Added a missing __construct doc comment.
(But why is phpcs complaining about this now and it wasn't before??)
2023-06-22 09:24:06 +02:00
Nestor Soriano 98a25ffd67
Treat LegacyProxy as a special case when resetting replacements. 2023-06-22 09:16:07 +02:00
Moon 30ea01c047
Refresh onboarding profile values on the Homescreen (#38861)
* Use window.location.href for redirection to refresh the page to get the latest onboarding profile values

* Add changelog

* Remove unused import
2023-06-21 22:40:42 -07:00
Matt Sherman 6076458471
Do not show "Adding new attribute failed" error message when loading of product screens is interrupted by page unload (#38815)
* Suppress "adding new attribute failed" error message on page unload
* Only attempt to add empty attribute if page has attributes list
2023-06-21 21:26:01 -04:00
Tam Mullen cd69c99ef6
E2E: Update WP Mail Logging Version (#38862)
* Removing skip in order-emails.spec.js

* Pin version of WP Mail Logging

* added changelog
2023-06-22 00:06:17 +01:00
github-actions[bot] 1ce4adcda9
Delete changelog files based on PR 38745 (#38870)
Delete changelog files for 38745

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-21 17:57:40 -05:00
github-actions[bot] 95c9578694
Delete changelog files based on PR 38835 (#38868)
Delete changelog files for 38835

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-21 17:50:20 -05:00
github-actions[bot] 1b08275b1c
Delete changelog files based on PR 38839 (#38866)
Delete changelog files for 38839

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-21 17:46:52 -05:00
github-actions[bot] 4ec56e650c
Delete changelog files based on PR 38728 (#38864)
Delete changelog files for 38728

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-21 17:23:03 -05:00
nigeljamesstevenson 97a3d7e918 add changelog 2023-06-21 20:39:50 +01:00
nigeljamesstevenson 9cd06f022c skip test causing GH PRs to fail -under investigation 2023-06-21 20:36:32 +01:00
Timothy Steele 565c1e9be7
Load `taxonomy-pa_<slug>` template before `taxonomy-product_attribute` (#37552)
* Fix for WooCommerce Issue 36560: https://github.com/woocommerce/woocommerce/issues/36560

* Add changelog

* Move changelog file to proper location

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-06-21 16:15:17 -03:00
Barry Hughes f5a601d6e1
When removing customer accounts, their content should be preserved. (#38837)
* When removing customer accounts, their content should be preserved.

* Fix test for customer data clean-up.
2023-06-21 14:03:01 -03:00
Joshua T Flowers 6bbc4dad1a
Add missing tracks events to product editor (#38728)
* Only record product update on already published products

* Add source into published product tracks event

* Add missing tracks options to product update event

* Track tab clicks in the editor

* Add source to tab clicks

* Record tracks on preview click

* Add events for media gallery, description, and attributes

* Add tracks events to more menu

* Replace new_product_page with source

* Add changelog entry

* Fix lint errors

* Add tracks for About the Editor menu item

* Add onClick event to AboutTheEditor menu item

* Use dropdown option event for classic editor menu click
2023-06-21 09:38:04 -07:00
Fernando Marichal 0be60a44a8
Add 'product_block_editor' to 'legacy_feature_ids'. (#38835)
* Add product_block_editor to legacy_feature_ids

* Add changelog
2023-06-21 13:11:11 -03:00
Nestor Soriano 46b259bc8d
Add changelog file 2023-06-21 17:44:28 +02:00
Nestor Soriano 5d4c07d23c
Improvements to the DI related unit testing infrastructure:
- When ExtendedContainer::replace is used passing an instance of
  an object, the 'init' method will be executed in the instance
  when resolving the replaced class name.
- Added the ExtendedContainer::reset_replacement method, this will
  undo a 'replace' and reset the registration back to its original state.
- Similarly, added the ExtendedContainer::reset_all_replacements method.
2023-06-21 17:39:34 +02:00
kidinov 634377bbc9 Fixed test again 2023-06-21 16:46:52 +02:00
kidinov ecccfdf2c7 Fixed test 2023-06-21 16:15:36 +02:00
kidinov c7134e6eff Fixed formatting 2023-06-21 15:44:23 +02:00
Luigi Teschio cb0602cfa9
Update to WooCommerce blocks 10.4.3 (#38839)
update to wc blocks 10.4.3
2023-06-21 15:32:11 +02:00
kidinov 071d913b0f Added tests 2023-06-21 15:15:27 +02:00
Gan Eng Chin f31eca2ec5
Marketing: Do not show "Create a campaign" button if there are no campaign types (#38825) 2023-06-21 19:43:35 +08:00
kidinov 08b08e5619 Fixed where contitions. Handle name parameter 2023-06-21 13:37:38 +02:00
Gan Eng Chin 04294c4ec8
Simplify code to display buttons in IntroductionBanner. 2023-06-21 18:53:45 +08:00
kidinov 0e1f78318e Attempt to fix formatting 2023-06-21 11:28:56 +02:00
Nestor Soriano 182d8bf7f2
Add changelog file 2023-06-21 10:29:42 +02:00
Nestor Soriano 12a453f1a5
ORdersTableDataStore: capture+log exceptions when populating order properties.
This makes the behavior of wc_get_order to be the same as when HPOS
is disabled (and Abstract_WC_Order_Data_Store_CPT is thus used
instead): the order is still retrieved (although without the errored
properties set) instead of the function just returning false.

An example of when this can happen is if an order refund has the id
of a no longer existing order as the parent id.
2023-06-21 10:25:14 +02:00
Leif Singer bc2cba7b81
fix: check whether WC_ADMIN_APP is defined before using (#38806) 2023-06-21 09:14:20 +02:00
Paul Sealock 5b0aa22402
WooCommerce: Handle legacy JS use of ES6 (#38342)
* use grunt-contrib-uglify-es

* changelog

* fix syntax

* remove null coalescence

* lockfile
2023-06-21 14:10:49 +12:00
Paul Sealock ec9f489dd0
Update phpcs-changed to version 2.11.1 (#38756)
* bump version

* composer lock file update

* changelog
2023-06-21 14:09:28 +12:00
barryhughes a473a001ce Selectively invalidate cached plugin data when needed. 2023-06-20 14:27:03 -07:00
barryhughes 1c2dd45ffd Ignore cached plugin data when checking if plugins are WooCommerce-aware. 2023-06-20 13:12:13 -07:00
Corey McKrill 79b52d2a5f
Linting: Add pnpm commands and update contributing guidelines (#38727)
Adds pnpm commands for utilizing the new phpcs-changed Composer scripts, and updates documentation to make these commands more discoverable.
2023-06-20 12:33:41 -07:00
Michael Pretty 6771b48c20
get_index_columns using SHOW INDEX FROM query instead of information_schema (#36427)
* get_index_columns using SHOW INDEX FROM query instead of information_schema

* returning empty array for clarity

* ignore interpolated query

* adding changelog entry

* Adding unit tests for the updated DatabaseUtil::get_index_columns()

---------

Co-authored-by: Michael Pretty <prettyboymp@Michaels-MacBook-Pro.local>
2023-06-20 15:34:59 -03:00
Ron Rennick f012b4d038 update remaining print_r in HPOS code 2023-06-20 14:01:02 -03:00
github-actions[bot] 87c69f38e6
Release: Remove 7.9 change files (#38814)
Delete changelog files from 7.9 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-20 11:51:33 -05:00
github-actions[bot] 1f68c707cc
Prep trunk for 8.0 cycle (#38812)
Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-20 11:51:03 -05:00
github-actions[bot] 95e7ff576e
Delete changelog files based on PR 38545 (#38568)
Delete changelog files for 38545

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-20 11:49:18 -05:00
github-actions[bot] 8b9007d470
Delete changelog files based on PR 38819 (#38829)
Delete changelog files for 38819

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-20 11:17:54 -05:00
Ismael Martín Alabarce d31b7866af
Add missing spacing in WCPay welcome incentive page cards (#38819)
* Add missing card spacing for the WCPay welcome incentive cards

* Add changelog entry
2023-06-20 11:12:44 -05:00
Gan Eng Chin 617b51c91d
Add and fix tests for Campaigns component. 2023-06-20 23:03:56 +08:00
Joshua T Flowers dad636799a
Redirect to the old editor when attempting to edit a non-supported product type (#38745)
* Redirect to the old editor when attempting to edit a non-supported product type

* Add changelog entry

* Fix lint errors
2023-06-20 10:15:56 -04:00
Gan Eng Chin c6a5e8ba41
Do not show "Add channels" button when create campaign button is not shown. 2023-06-20 22:13:24 +08:00
kidinov 683039f88b Change log file 2023-06-20 16:07:03 +02:00
kidinov dba0b6fb8d Fixed code style issue 2023-06-20 16:03:51 +02:00
kidinov 1ffacdad67 Updated DataStore to handle filter_empty field 2023-06-20 15:59:44 +02:00
Gan Eng Chin dbfb8f81d8
Add changelog. 2023-06-20 21:07:54 +08:00
Gan Eng Chin 2b477fb93f
Show create campaign button in campaigns card when there are campaign types. 2023-06-20 21:05:27 +08:00
Gan Eng Chin 81c34086fe
Display create campaign button when there are campaign types. 2023-06-20 20:54:45 +08:00
kidinov 7f8aa07cdc Added `filter_empty` parameter 2023-06-20 12:46:53 +02:00
Chi-Hsuan Huang 9509ae8136
Fix help panel links (#38817)
* Fix links under "Help" panel on Home screen

* Add changelog
2023-06-20 18:11:44 +08:00
Nestor Soriano 740e5e55a8
Add missing 'use' in HPOSToggleTrait 2023-06-20 10:38:13 +02:00
Nestor Soriano 2051e2b61b
Change 'toggle_cot' class to 'toggle_cot_feature_and_usage' 2023-06-20 10:14:23 +02:00
Nestor Soriano 2ce0d70f1e
Fix small space misalignment 2023-06-20 09:46:41 +02:00
Nestor Soriano 97d296b681
Merge branch 'trunk' into add/sync_of_deleted_orders 2023-06-20 09:25:50 +02:00
Sam Seay 924b29fd92
Add support to install master branch when using WooCommerce Beta Tester (#38536) 2023-06-20 18:54:49 +12:00
Joel Thiessen 6c3256b413
Handling errors from token endpoint (#38708) 2023-06-19 13:44:05 -07:00