Commit Graph

20536 Commits

Author SHA1 Message Date
Ramon Ahnert 49c379c5a7
Fix typo in the Exposing your data in the Store API documentation (#43488)
* Fix basic usage code snippet example in extend-rest-api-add-data.md

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-13 15:20:07 +07:00
Chi-Hsuan Huang b28adc1703
Use a real em dash character (—) in the coming soon site template (#47394)
* Use a real em dash character (—) in the coming soon template

* Add changelog
2024-05-13 15:51:42 +08:00
Prahesa Kusuma Setia db804f4193
Tracks event for WooCommerce.com connect notice (#47003)
* add tracks event in the wc settings connect notice

* add clicked and dismissed tracks event in the marketplace connect notice

* add shown tracks event in the marketplace connect notice

* add changelog

* fix linter error

* Add Tracks event when connect-notice in plugin is shown and clicked

* Add docblock for maybe_enqueue_scripts_for_connect_notice_in_plugins

---------

Co-authored-by: Akeda Bagus <akeda.bagus@automattic.com>
2024-05-13 13:45:43 +07:00
Ilyas Foo c4ca5f87d9
Reenable global styles for coming soon entire site template (#47388)
* Reenable global styles for coming soon pages

* Changelog

* Update fix-lys-reenable-global-styles
2024-05-13 13:38:54 +08:00
Moon 6cf09f30a8
LYS - Use flow layout for the coming soon template (#47335)
* Use flow layout

* Tmp fix - fix broken test

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

* Use flex layout

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-13 13:15:47 +08:00
RJ 2898efa648
add: lys badge tracks (#46509) 2024-05-13 07:52:49 +08:00
Cem Ünalan 23773e19f0
Freemium: update marketplace product card label (#45982)
* Freemium: update marketplace product card label

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

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-10 15:00:05 -05:00
github-actions[bot] 821d764b04
Delete changelog files based on PR 47205 (#47367)
Delete changelog files for 47205

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-05-10 17:13:50 +02:00
Matt Allan 6a89723685
Update when PayPal Standard is loaded to further reduce new store using this legacy payment method (#47205)
* Change default PP Standard should_load logic to be more strict when setting to true

* Remove filter allowing stores to enable PayPal Standard programmatically

* Adds new function to check if the store has any PayPal Standard orders

* Upgrade script that disables PayPal Standard on stores that aren't using it.

* Add changelog entries

* Fix extra comma

* PayPal email is defaulted to the admin email which means checking needs_setup() isn't reliable

* Load PayPal standard in unit tests

* Before installing WC, set the Paypal Standard should load to true

* Remove unnecessary ternary when setting default should_load

* On upgrading WC, only check for PayPal Standard live keys to determine if it's setup

* Remove admin notice if PayPal Standard is disabled on ugprade

* Display an admin notice if the store is using the deprecated filter to load PayPal Standard.

* Add docblock comment above the apply filters

* Added checks around the filter and give pref to enabled.

git add .

* Remove the should load filter notice.

* Add comment noting that init class shouldnt be removed.

* Use proper casting for this->enabled before usage.

---------

Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
2024-05-10 14:04:32 +01:00
Moon d0a8477b51
LYS - Add padding-left to the copy link (#47313)
* Adding padding to the copy link

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

* Tmp fix - fix broken test

* Fix lint errors

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-10 05:02:35 -07:00
Néstor Soriano 772d796ea3
Fixes in the receipts rendering engine (#47300)
* Fix permission check in RestApiControllerBase

Extra arguments were being passed incorrectly to current_user_can,
causing wrong authentication failures in some cases (e.g.
when hitting the endpoints in a wp.com site via Jetpack tunneling).

* Fix get_order_data in ReceiptRenderingEngine

A fatal error was being thrown when one of the products referenced
in the order did no longer exist.
2024-05-10 13:12:54 +02:00
Moon 0873ed47c3
LYS - Update toolbar store link text (#47315)
* Update toolbar store link

"Preview store" when coming soon mode is enabled
"View store" when the site is set to live

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

* Fix broken test

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-10 04:00:41 -07:00
Moon a8cf226987
LYS - Use Woo branded colors for LYS confetti (#47334)
* Update LYS congrats confetti

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

* remove temporary fix

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-10 04:00:33 -07:00
Naman Malhotra 01069666e6
Fix: Reset password form missing required indicator (#47229)
* Fix: Reset password form missing required indicator

* Added changelog

* Updated templae version

* Address feedback
2024-05-10 10:08:05 +00:00
Moon 7556b7bffc
LYS - Remove admin toolbar button hover background (#47314)
* Remove hover background

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

* Tmp fix - fix broken test

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-10 02:16:54 -07:00
Jonathan Lane c78292e6cc
Add API test for refunds endpoint (#47340)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-05-10 11:56:53 +03:00
Jonathan Lane 396c29d3ec
Install and set up BuildKite test analytics (#47202)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
Co-authored-by: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com>
2024-05-10 11:47:23 +03:00
Néstor Soriano b7d32ffa30
Add hooks to customize the order receipt generation (#46224)
Also:

- Move CSS to a separate template
- Access receipt data through a $data array in the template
  (don't extract the variables anymore)
2024-05-10 09:26:27 +02:00
Luigi Teschio 8954785c96
CYS: not run font picker tests on WordPress 6.4 (#47182)
* CYS: not run font picker tests on WordPress 6.4

* improve how the test is skipped

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-10 10:26:56 +08:00
Chi-Hsuan Huang 66c57693c1
Fix RIN Display Logic for Banner Alert Notifications (#47167)
* Fix RIN Display Logic for Banner Alert Notifications

* Add tests

* Add changelog

* Update test

* Add test

* chore: fix unactioned note status check in EvaluateAndGetStatus.php
2024-05-10 09:58:09 +08:00
Moon 14018bec62
Replace Options API usage with LaunchYourStore endpoint for LYS (#47252)
* Replace Options.php usage with LaunchYourStore controller

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

* Catch error, but ignore it

* Tmp fix - fix broken test

* Lint fixes

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-09 15:59:36 -07:00
Moon 7360928502
Use wp_plugin_dependencies_slug in PluginVersionRuleProcessor (#47235)
* Use wp_plugin_dependencies_slug

* Fix incorrect function name

* Remove unnessary content-type header

* Add doc block for wp_plugin_dependencies_slug filter

* Add changefile(s) from automation for the following project(s): woocommerce-beta-tester, woocommerce

* Tmp fix - fix broken test

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-09 15:30:12 -07:00
Corey McKrill 576db0933c
REST API: Add missing line item schemas to refunds endpoint (#47254)
* REST API: Add missing line item schemas to refunds endpoint

In #28241, `fee_lines`, `shipping_lines`, and `tax_lines` properties
were all added to the refund data object sent by v2 and v3 of the
REST API. However, the schema was never updated, so the characteristics
of those properties have not been very discoverable. This simply
copies the relevant schema data from the orders endpoint over to the
refunds endpoint.

Towards #43444

* phpcs cleanup
2024-05-09 21:59:30 +00:00
Corey McKrill 35908b8ee3
Update `WC_Admin_Tests_API_Plugins` to use different plugins for testing (#47337)
Updates the tests in WC_Admin_Tests_API_Plugins to use plugins other than `facebook-for-woocommerce` to hopefully be more reliable in the future.
2024-05-09 13:03:59 -07:00
Adrian Moldovan 5591b25367
[ci-jobs] Add the optional property for jobs (#47261) 2024-05-09 12:22:44 +03:00
Jonathan Lane 18e83a2467
🧪 Fix for a couple of failing e2e tests (#47253)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-05-09 11:33:26 +03:00
Chi-Hsuan Huang f2cf6b56aa
Update @automattic/tour-kit to 1.1.3 and @automattic/components to 2.1.1 (#47129)
* Use @automattic/tour-kit@1.1.3

* Update onPreviousStep and onNextStep callback

* Add changelog

* Add changelog

* Update @automattic/components

* Update package.json

* Fix pnpm-lock.yaml

* Update changelog

* Add changelog

* Enable autoScroll for shipping tour
2024-05-09 08:56:08 +08:00
Jorge A. Torres 875d1a7f8e
Override `get_edit_post_link()` URL for HPOS placeholder posts (#47149)
Rewrites edit post links for HPOS placeholder posts so they go to the actual HPOS orders.

Fixes #45806
2024-05-08 14:08:56 -07:00
github-actions[bot] a06bf69976
Delete changelog files based on PR 47171 (#47282)
Delete changelog files for 47171

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2024-05-08 17:39:00 +02:00
Adrian Moldovan 082719b0fd
[e2e tests] Disable broken product editor tests (#47268)
Co-authored-by: Luigi Teschio <gigitux@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
2024-05-08 09:33:27 -05:00
Albert Juhé Lluveras 8b47443a1c
Remove unnecessary links to an ephemeral site (#47270)
* Remove unnecessary links to an ephemeral site

* Add changelog file

* Disable markdown lint in some lines
2024-05-08 15:24:25 +02:00
Luigi Teschio 5cdc7fcd43
CYS: fix color picker E2E test (#47274)
Co-authored-by: github-actions <github-actions@github.com>
2024-05-08 16:08:22 +03:00
Niels Lange e7aff9428f
[Enhancement]: Block-based checkout - Pickup section updates (#47173)
* Change “Pickup options” to “Pickup locations”

* Always show pickup location and truncate pickup details

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

* Adjust spacing between pickup details and more link

* Hide pickup details of unselected pickup location

* Adjust line height of truncated text

* Show “Read more/less” instead of “more/less”

* Ensure both lines are equally filled with text

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-08 17:58:09 +07:00
Bart Kalisz 3ad9ebf52a
Blocks E2E: Fix flaky Product Collection tests (#47211) 2024-05-08 11:26:52 +02:00
Niels Lange 99bed6d7ba
Display price in place order button (#47083)
* WIP: Display price in place order button

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

* Fix JS lint error

* Update e2e tests

* Display default place order button including placeholder in page editor

* Update plugins/woocommerce-blocks/assets/js/blocks/checkout/inner-blocks/checkout-actions-block/constants.tsx

Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>

* Optimise i18n using sprintf

* Wrap cart totals in “useSelect”

* Temporary skip failing e2e test

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Seghir Nadir <nadir.seghir@gmail.com>
2024-05-08 16:18:48 +07:00
Bart Kalisz c464afc7ad
Blocks E2E: Remove discouraged waitForTimeout from tests (#47214) 2024-05-08 10:14:24 +02:00
Bart Kalisz 2936c4eac8
Blocks E2E: Fix flaky block insertion tests (#47213) 2024-05-08 10:13:30 +02:00
Luigi Teschio 2296e45d33
CYS - Core: Invert the color of the button block inside the cover block when the active style variation is New - Neutral (#47220)
* CYS - Core: fix cover button

* fix type

* fix build

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

* update color in the homepage preview

* move comment

* fix switch style variation

* add comment

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-08 09:36:45 +02:00
Alba Rincón 7a7b513771
[CYS] Fix the triggered event when starting the "no AI" flow (#47181)
* Fix event when starting the no AI flow

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-08 08:52:33 +02:00
Niels Lange b6d9b3a013
Fix broken checkout address forms layout (#47131)
* Fix broken checkout address forms layout

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-05-08 10:30:12 +07:00
Scott 94ed6a943f
Fix coupon usage limits on failed trashed orders (#47125)
This addresses coupon usage limits for failed & trashed orders by ensuring that coupon usage is decremented when a transaction fails or an order is trashed.

Fixes #31245

* Added tests to check coupon usage count on failed & trashed orders

Signed-off-by: Scott Fleming <scott@noblwheels.com>

* Add filter woocommerce_update_coupon_usage_invalid_statuses, wc_update_coupon_usage_counts actions -> failed/trashed

Signed-off-by: Scott Fleming <scott@noblwheels.com>

* document woocommerce_update_coupon_usage_invalid_statuses filter

Signed-off-by: Scott Fleming <scott@noblwheels.com>

* formatting

Signed-off-by: Scott Fleming <scott@noblwheels.com>

* Add changelog file

Signed-off-by: Scott Fleming <scott@noblwheels.com>

* Update plugins/woocommerce/includes/wc-order-functions.php

Appease the code style linter

* Update plugins/woocommerce/tests/php/includes/wc-order-functions-test.php

Appease the code style linter

---------

Signed-off-by: Scott Fleming <scott@noblwheels.com>
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2024-05-07 10:45:38 -07:00
Ron Rennick 15f087da06
Update community PR assignment list for vortex (#47225)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2024-05-07 10:16:37 -07:00
Justin Palmer f401a98301
Stamp the order attribution HTML element (only once) on a wider set of checkout form actions (#46834)
* Inject the fields (only once) on a large set of checkout form actions

* Changelog

* Better doc format

* Add _once to the new method to clarify functionality

* Filter to modify the default list of actions
2024-05-07 15:54:32 +02:00
Maikel Perez 40486a0151
Remove duplicate code lines in css (#47122)
* Remove duplicate css code from any woo scss file

* Add changelog files
2024-05-07 08:35:25 -04:00
Jonathan Lane 1671523cc0
Remove upload plugin test from Slack reporting on daily (#47067)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-05-07 14:40:12 +03:00
Tom Cafferkey f040e3acf7
Customer Account: Don't hook block unless filter is available. (#47171)
* Check WP version before adding Customer Account hooked block due to usage of hooked_block_{} filter

* Changelog

* Replace global  with get_bloginfo('version') for getting WP version
2024-05-07 09:46:22 +01:00
Ilyas Foo 82795a220b
Remove `noindex` meta from coming soon pages (#47178)
* Remove noindex robot call for coming soon page

* Changelog
2024-05-07 10:01:45 +08:00
Chi-Hsuan Huang e8af1c2ce4
Display `Import Product` task item text and header copies when merchant indicates they are already selling (#47164)
* Update product task header texts

* Update product task item item text

* Add changelog
2024-05-07 09:28:48 +08:00
Maikel Perez b7e30ea5b3
Prevent non used blocks to be registered in the product editor page (#47066)
* Create a hook to filter the woocommerce blocks that can be registered.
This will decrease the server execution time, the amount of css and javascript downloaded.
In the case of the product editor the woocommerce blocks are non needed or required, so it's not necesary to register them all.

* Add changelog file

* Fix php linter errors
2024-05-06 14:29:26 -04:00
kkmuffme 6c3ace8a5d
Logging: prevent file logger from writing only an empty line to a file (#47091)
* Fix https://github.com/woocommerce/woocommerce/issues/47090

* Update plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php

Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>

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

* Update plugins/woocommerce/src/Internal/Admin/Logging/FileV2/File.php

Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>

---------

Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2024-05-06 10:25:43 -07:00