Commit Graph

10764 Commits

Author SHA1 Message Date
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
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
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
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