Commit Graph

13 Commits

Author SHA1 Message Date
Chi-Hsuan Huang b5501426b4
Add tool to reset "Launch your store" and coming soon mode changes (#52149)
* Add tool to reset "Launch your store" and coming soon mode changes

* Update docs

* Update docs

* Address PR feedback
2024-10-21 07:22:16 +08:00
Chi-Hsuan Huang 442cb4e81b
[Beta tester] Add tool for changing woocommerce.com base URL (#51537)
* Refactor WooCommerce Helper class

This commit refactors the WooCommerce Helper class in the `class-wc-helper.php` file. The changes include:
- Updating the comparison operator from `==` to `===` in the `activate_plugin` condition.
- Renaming the `get_install_base_url` method to `get_woocommerce_com_base_url`.
- Adding a new `get_install_base_url` method that returns the base URL for the plugin auto installer.

These changes improve the readability and maintainability of the code.

* Refactor data source poller classes for marketing recommendations, payment gateway suggestions, shipping partner suggestions, inbox notifications, remote free extensions, and WooPayments promotion

- Refactor the data source poller classes for marketing recommendations, payment gateway suggestions, shipping partner suggestions, inbox notifications, remote free extensions, and WooPayments promotion to use a dynamic base URL for the data sources.
- Update the deprecated DATA_SOURCES constant to an empty array in each class.
- Add a new method get_data_sources() in each class to return the updated data sources with the dynamic base URL.
- Modify the constructor of each class to use the get_data_sources() method instead of the deprecated DATA_SOURCES constant.

* Add changelog

* Add set-woocom-base-url tool

* Add changelog

* Rename woo_com and woocom -> wccom

* Change to falsy check !url

* Change woocom/WOOCOM to wccom/WCCOM

* Change default value to https://woocommerce.com/

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2024-09-24 19:37:57 +08:00
Chi-Hsuan Huang 4dbc8aa74b
Refactor WooCommercePayments task to use woo payment gateway from`WC()->payment_gateways->payment_gateways()` (#50953)
* Fake woopayments gateway is_account_partially_onboarded return false

* Refactor WooCommercePayments class to use get_woo_payments_gateway() function

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

* Remove changelog

* Add unit tests

* Update changelog

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-08-28 10:44:28 +08:00
Chi-Hsuan Huang b04f535a54
[Beta tester] Add fake WooPayments completion tool (#50699)
* Add woocommerce beta tester fake wcpay tool

* Add changelog
2024-08-22 10:27:35 +08:00
Paul Sealock 17c6fb9b0f
[Beta Tester] Add tool to force wccom endpoint errors or timeout (#50654) 2024-08-19 20:35:59 +12:00
Chi-Hsuan Huang 8d23ac11a9
Add beta tester tool to force the coming soon landing pages to display on the front-end (#49341)
* Add tool to force the coming soon landing pages to display on the front-end

* Add changelog

* Revert line change

* Add doc comments and remove unnecessary check

* Invalidate caches

* Fix tools invalid json errors

* Set default value

* Call wc_beta_tester_override_coming_soon_options out of init
2024-07-16 11:55:38 +00:00
Matt Sherman 6e9a5fa04e Update default threshold to WARNING 2023-11-14 16:23:00 -05:00
Matt Sherman 451e73f9f9 Update default threshold to NOTICE 2023-11-14 16:23:00 -05:00
Matt Sherman e159e7ff4f API for updating the block template logging threshold 2023-11-14 16:22:59 -05:00
Luigi Teschio 762f6847e5
WooCommerce Beta Tester - CYS: implement removing patterns_ai_data post type (#41285)
* WooCommerce Beta Tester - CSY: implement removing patterns_ai_data post type

* add changelog

* Update changelog
2023-11-08 12:07:30 +01:00
Chi-Hsuan Huang 61a68131bd
Add wca test tool to reset Customize Your Store task (#40728)
* Add reset cys tool

* Add changelog

* Reset style

* Fix reset template

* Update actions.js

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>

---------

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>
2023-10-12 09:05:58 -05:00
Christopher Allford 4549bc82c5
Applied PHPCS To Beta Tester (#39476) 2023-08-08 17:20:34 -07:00
Paul Sealock 6ded9053b6 Move admin tester folders to root 2022-06-07 15:18:37 +12:00