update references to woocommerce.com to now reference woo.com

This commit is contained in:
Leif Singer 2023-11-06 12:45:26 +01:00
parent 21b24d9ef2
commit 808a0fc54f
387 changed files with 832 additions and 832 deletions

View File

@ -17,7 +17,7 @@ We use the `good first issue` label to mark issues that are suitable for new con
WooCommerce is licensed under the GPLv3+, and all contributions to the project will be released under the same license. You maintain copyright over any contribution you make, and by submitting a pull request, you are agreeing to release that contribution under the GPLv3+ license.
If you have questions about the process to contribute code or want to discuss details of your contribution, you can contact WooCommerce core developers on the #core channel in the [WooCommerce community Slack](https://woocommerce.com/community-slack/).
If you have questions about the process to contribute code or want to discuss details of your contribution, you can contact WooCommerce core developers on the #core channel in the [WooCommerce community Slack](https://woo.com/community-slack/).
## Getting started
@ -53,6 +53,6 @@ If you are contributing code to our (Javascript-driven) Gutenberg blocks, please
## Feature Requests 🚀
The best place to submit feature requests is over on our [dedicated feature request page](https://woocommerce.com/feature-requests/woocommerce/). You can easily search and vote for existing requests, or create new requests if necessary.
The best place to submit feature requests is over on our [dedicated feature request page](https://woo.com/feature-requests/woocommerce/). You can easily search and vote for existing requests, or create new requests if necessary.
Alternatively, if you wish to propose a straightforward technical enhancement that is unlikely to require much discussion, you can [open a new issue](https://github.com/woocommerce/woocommerce/issues/new?assignees=&labels=type%3A+enhancement%2Cstatus%3A+awaiting+triage&template=2-enhancement.yml&title=%5BEnhancement%5D%3A+) right here on GitHub and, for any that may require more discussion, consider syncing with us during office hours or publishing a thread on [GitHub Discussions](https://github.com/woocommerce/woocommerce/discussions).

View File

@ -12,10 +12,10 @@ body:
While our goal is to address all the issues reported in this repository, GitHub should be treated as a place to report confirmed bugs only.
- If you have a support request or custom code related question please follow one of the steps below:
- Review [WooCommerce Self-Service Guide](https://woocommerce.com/document/woocommerce-self-service-guide/) to see if the solutions listed there apply to your case;
- If you are a paying customer of WooCommerce, contact WooCommerce support by [opening a ticket or starting a live chat](https://woocommerce.com/contact-us/);
- Review [WooCommerce Self-Service Guide](https://woo.com/document/woocommerce-self-service-guide/) to see if the solutions listed there apply to your case;
- If you are a paying customer of WooCommerce, contact WooCommerce support by [opening a ticket or starting a live chat](https://woo.com/contact-us/);
- Make a post on [WooCommerce community forum](https://wordpress.org/support/plugin/woocommerce/)
- To get help on custom code questions go to the [WooCommerce Community Slack](https://woocommerce.com/community-slack/) and visit the `#developers` channel.
- To get help on custom code questions go to the [WooCommerce Community Slack](https://woo.com/community-slack/) and visit the `#developers` channel.
Make sure to look through the [existing `type: bug` issues](https://github.com/woocommerce/woocommerce/issues?q=is%3Aopen+is%3Aissue+label%3A%22type%3A+bug%22) to see whether your bug has already been submitted.
Feel free to contribute to any existing issues.
@ -71,7 +71,7 @@ body:
attributes:
label: WordPress Environment
description: |
We use the [WooCommerce System Status Report](https://woocommerce.com/document/understanding-the-woocommerce-system-status-report/) to help us evaluate the issue.
We use the [WooCommerce System Status Report](https://woo.com/document/understanding-the-woocommerce-system-status-report/) to help us evaluate the issue.
Without this report we won't be able to fully evaluate this issue.
placeholder: |
The System Status Report is found in your WordPress admin under **WooCommerce > Status**.
@ -89,7 +89,7 @@ body:
You will then need to enable it one by one and test every time you do that in order to figure out which plugin is causing the issue.
options:
- label: I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
- label: This bug happens with a default WordPress theme active, or [Storefront](https://woocommerce.com/storefront/).
- label: This bug happens with a default WordPress theme active, or [Storefront](https://woo.com/products/storefront/).
- label: I can reproduce this bug consistently using the steps above.
validations:
required: true

View File

@ -1,13 +1,13 @@
blank_issues_enabled: true
contact_links:
- name: Feature Requests
url: https://woocommerce.com/feature-requests/woocommerce/
url: https://woo.com/feature-requests/woocommerce/
about: If you have an idea for a new feature that you wished existed in WooCommerce, take a look at our Feature Requests and vote, or open a new Feature Request yourself!
- name: 🔒 Security issue
url: https://hackerone.com/automattic/
about: For security reasons, please report all security issues via HackerOne. If the issue is valid, a bug bounty will be paid out to you. Please disclose responsibly and not via GitHub (which allows for exploiting issues in the wild before the patch is released).
- name: ❓ Support Question
url: https://woocommerce.com/document/woocommerce-self-service-guide/
url: https://woo.com/document/woocommerce-self-service-guide/
about: If you have a question please see our docs or use our forums, helpdesk, or Slack community!
- name: WooCommerce Blocks
url: https://github.com/woocommerce/woocommerce-gutenberg-products-block

View File

@ -66,10 +66,10 @@ jobs:
GitHub should be treated as a place to report confirmed bugs only.\n\n\
The type of issue you submitted looks like a support request which may or may not reveal a bug once proper \
troubleshooting is done. In order to confirm the bug, please follow one of the steps below:\n\n\
- Review [WooCommerce Self-Service Guide](https://docs.woocommerce.com/document/woocommerce-self-service-guide/) \
- Review [WooCommerce Self-Service Guide](https://woo.com/document/woocommerce-self-service-guide/) \
to see if the solutions listed there apply to your case;\n\
- If you are a paying customer of WooCommerce, contact WooCommerce support by \
[opening a ticket or starting a live chat](https://woocommerce.com/contact-us/);\n\
[opening a ticket or starting a live chat](https://woo.com/contact-us/);\n\
- Make a post on [WooCommerce community forum](https://wordpress.org/support/plugin/woocommerce/)\n\n\
If you confirm the bug, please provide us with clear steps to reproduce it.\n\n\
We are closing this issue for now as it seems to be a support request and not a bug. \
@ -152,7 +152,7 @@ jobs:
A clear and concise description of what you expected to happen.\n\n\
**Isolating the problem (mark completed items with an [x]):**\n\n\
- [ ] I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.\n\
- [ ] This bug happens with a default WordPress theme active, or [Storefront](https://woocommerce.com/storefront/).\n\
- [ ] This bug happens with a default WordPress theme active, or [Storefront](https://woo.com/products/storefront/).\n\
- [ ] I can reproduce this bug consistently using the steps above.\n\n\
**WordPress Environment**\n\n\
Copy and paste the system status report from **WooCommerce > System Status** in WordPress admin."

View File

@ -1,6 +1,6 @@
# WooCommerce Monorepo
![WooCommerce](https://woocommerce.com/wp-content/themes/woo/images/logo-woocommerce@2x.png)
![WooCommerce](https://woo.com/wp-content/themes/woo/images/logo-woocommerce@2x.png)
Welcome to the WooCommerce Monorepo on GitHub. Here you can find all of the plugins, packages, and tools used in the development of the core WooCommerce plugin as well as WooCommerce extensions. You can browse the source, look at open issues, contribute code, and keep tracking of ongoing development.
@ -47,17 +47,17 @@ To disclose a security issue to our team, [please submit a report via HackerOne
This repository is not suitable for support. Please don't use our issue tracker for support requests, but for core WooCommerce issues only. Support can take place through the appropriate channels:
- If you have a problem, you may want to start with the [self help guide](https://docs.woocommerce.com/document/woocommerce-self-service-guide/).
- The [WooCommerce.com premium support portal](https://woocommerce.com/contact-us/) for customers who have purchased themes or extensions.
- If you have a problem, you may want to start with the [self help guide](https://woo.com/document/woocommerce-self-service-guide/).
- The [Woo.com premium support portal](https://woo.com/contact-us/) for customers who have purchased themes or extensions.
- [Our community forum on wp.org](https://wordpress.org/support/plugin/woocommerce) which is available for all WooCommerce users.
- [The Official WooCommerce Facebook Group](https://www.facebook.com/groups/advanced.woocommerce).
- For customizations, you may want to check our list of [WooExperts](https://woocommerce.com/experts/) or [Codeable](https://codeable.io/).
- For customizations, you may want to check our list of [WooExperts](https://woo.com/experts/) or [Codeable](https://codeable.io/).
NOTE: Unfortunately, we are unable to honor support requests in issues on this repository; as a result, any requests submitted in this manner will be closed.
## Community
For peer to peer support, real-time announcements, and office hours, please [join our slack community](https://woocommerce.com/community-slack/)!
For peer to peer support, real-time announcements, and office hours, please [join our slack community](https://woo.com/community-slack/)!
## Contributing to WooCommerce

View File

@ -16,7 +16,7 @@ Our most critical targets are:
* WooCommerce core (this repository)
* WooCommerce [Blocks](https://wordpress.org/plugins/woo-gutenberg-products-block/) and [Admin](https://wordpress.org/plugins/woocommerce-admin/) packages and plugins
* WooCommerce.com -- the primary marketplace and marketing site, and all of it subdomains, e.g. [developer.woocommerce.com](https://developer.woocommerce.com/)
* woo.com -- the primary marketplace and marketing site, and all of it subdomains, e.g. [developer.woocommerce.com](https://developer.woo.com/)
* wordpress.com -- hosted WooCommerce for Business and eCommerce offering on WordPress.com.
For more targets, see the `In Scope` section on [HackerOne](https://hackerone.com/automattic).

View File

@ -8088,7 +8088,7 @@
* Fix - Datepicker range for variations.
= 2.3.12 - 2015-07-06 =
* Fix - Fixed Google Chrome forcing to use SSL. This can cause some issues on websites behind load balancers or reverse proxies. [Read more](https://docs.woocommerce.com/document/ssl-and-https/#websites-behind-load-balancers-or-reverse-proxies).
* Fix - Fixed Google Chrome forcing to use SSL. This can cause some issues on websites behind load balancers or reverse proxies. [Read more](https://woo.com/document/ssl-and-https/#websites-behind-load-balancers-or-reverse-proxies).
* Fix - Escaped shop url in empty cart template.
* Fix - Escaped product tabs titles.
* Fix - Removed deprecated PHP4 constructor on Widget classes.

View File

@ -28,13 +28,13 @@ The WooCommerce ecosystem thrives on community contributions. Whether it's impro
## Support
- To request a **new document, correction, or improvement**, [create an issue](https://github.com/woocommerce/woodocs/issues/new/choose).
- For development help, start with the [WooCommerce Community Forum](https://wordpress.org/support/plugin/woocommerce/), to see if someone else has already asked the same question. You can also pose your question in the `#developers` channel of our [Community Slack](https://woocommerce.com/community-slack/). If you're not sure where to ask your question, you can always [contact us](https://woocommerce.com/contact-us/), and our Happiness Engineers will be glad to point you in the right direction.
- For additional support with customizations, you might consider hiring from [WooExperts](https://woocommerce.com/experts/) or [Codeable](https://codeable.io/).
- For development help, start with the [WooCommerce Community Forum](https://wordpress.org/support/plugin/woocommerce/), to see if someone else has already asked the same question. You can also pose your question in the `#developers` channel of our [Community Slack](https://woo.com/community-slack/). If you're not sure where to ask your question, you can always [contact us](https://woo.com/contact-us/), and our Happiness Engineers will be glad to point you in the right direction.
- For additional support with customizations, you might consider hiring from [WooExperts](https://woo.com/experts/) or [Codeable](https://codeable.io/).
### Additional Resources
- [WooCommerce Official Website](https://woocommerce.com/)
- [Woo Marketplace](https://woocommerce.com/marketplace)
- [WooCommerce Official Website](https://woo.com/)
- [Woo Marketplace](https://woo.com/marketplace)
- All [WooCommerce Repositories on GitHub](https://woocommerce.github.io/)
### Other documentation

View File

@ -44,4 +44,4 @@ if ( ! function_exists( 'YOUR_PREFIX_woocommerce_available_variation' ) ) {
}
```
If you are looking for a little more power, check out our [Min/Max Quantities](http://woocommerce.com/products/minmax-quantities) extension!
If you are looking for a little more power, check out our [Min/Max Quantities](http://woo.com/products/minmax-quantities) extension!

View File

@ -1,6 +1,6 @@
# Customizing checkout fields using actions and filters
If you are unfamiliar with code and resolving potential conflicts, we have an extension that can help: [WooCommerce Checkout Field Editor](https://woocommerce.com/products/woocommerce-checkout-field-editor/). Installing and activating this extension overrides any code below that you try to implement; and you cannot have custom checkout field code in your functions.php file when the extension is activated.
If you are unfamiliar with code and resolving potential conflicts, we have an extension that can help: [WooCommerce Checkout Field Editor](https://woo.com/products/woocommerce-checkout-field-editor/). Installing and activating this extension overrides any code below that you try to implement; and you cannot have custom checkout field code in your functions.php file when the extension is activated.
Custom code should be copied into your child themes **functions.php** file.
@ -203,7 +203,7 @@ The priority argument is set during the [add_action](https://developer.wordpress
In the example below, blue text is the name of the hook were modifying, green text is the name of our custom function, and red is the priority we set.
![Setting priority for the hooked function](https://woocommerce.com/wp-content/uploads/2012/04/priority-markup.png)
![Setting priority for the hooked function](https://woo.com/wp-content/uploads/2012/04/priority-markup.png)
## Examples
@ -292,7 +292,7 @@ function my_custom_checkout_field_display_admin_order_meta($order){
}
```
![It's alive!](https://woocommerce.com/wp-content/uploads/2012/04/WooCommerce-Codex-Shipping-Field-Hook.png)
![It's alive!](https://woo.com/wp-content/uploads/2012/04/WooCommerce-Codex-Shipping-Field-Hook.png)
Its alive!
@ -330,7 +330,7 @@ function my_custom_checkout_field( $checkout ) {
This gives us:
![WooCommerce Codex - Checkout Field Hook](https://woocommerce.com/wp-content/uploads/2012/04/WooCommerce-Codex-Checkout-Field-Hook.png)
![WooCommerce Codex - Checkout Field Hook](https://woo.com/wp-content/uploads/2012/04/WooCommerce-Codex-Checkout-Field-Hook.png)
Next we need to validate the field when the checkout form is posted. For this example the field is required and not optional:
@ -350,7 +350,7 @@ function my_custom_checkout_field_process() {
A checkout error is displayed if the field is blank:
![WooCommerce Codex - Checkout Field Notice](https://woocommerce.com/wp-content/uploads/2012/04/WooCommerce-Codex-Checkout-Field-Notice.png)
![WooCommerce Codex - Checkout Field Notice](https://woo.com/wp-content/uploads/2012/04/WooCommerce-Codex-Checkout-Field-Notice.png)
Finally, lets save the new field to order custom fields using the following code:
@ -384,7 +384,7 @@ function my_custom_checkout_field_display_admin_order_meta( $order ){
This is the result:
[![checkout_field_custom_field_admin](https://woocommerce.com/wp-content/uploads/2012/04/checkout_field_custom_field_admin.png)](https://woocommerce.com/wp-content/uploads/2012/04/checkout_field_custom_field_admin.png)
[![checkout_field_custom_field_admin](https://woo.com/wp-content/uploads/2012/04/checkout_field_custom_field_admin.png)](https://woo.com/wp-content/uploads/2012/04/checkout_field_custom_field_admin.png)
### Make phone number not required

View File

@ -76,7 +76,7 @@ Add this to `wp-config.php`:
define( 'WCPAY_DEV_MODE', true );
```
Also see [this document](https://docs.woocommerce.com/document/payments/testing/dev-mode).
Also see [this document](https://woo.com/document/payments/testing/dev-mode).
## WooCommerce Admin install timestamp

View File

@ -12,7 +12,7 @@ Lets say we had an extension that adds a slider to a single product page. Thi
Thats only two options, specifically related to **Products**. We could quite easily just append them onto the core WooCommerce Products Settings (**WooCommerce > Settings > Products**), but that wouldnt be very user friendly. Users wouldnt know where to look initially so theyd have to scan all of the Products options and it would be difficult / impossible to link the options directly. Fortunately, as of WooCommerce 2.2.2, there is a new filter in place that allows you add a new **section**, beneath one of the core settings tabs.
> **Note:** This is a **Developer level** doc. If you are unfamiliar with code/templates and resolving potential conflicts, select a [WooExpert or Developer](https://woocommerce.com/customizations/) for assistance. We are unable to provide support for customizations under our [Support Policy](http://www.woocommerce.com/support-policy/).
> **Note:** This is a **Developer level** doc. If you are unfamiliar with code/templates and resolving potential conflicts, select a [WooExpert or Developer](https://woo.com/customizations/) for assistance. We are unable to provide support for customizations under our [Support Policy](http://woo.com/support-policy/).
## [How to Create a Section](https://github.com/woocommerce/woocommerce/blob/trunk/docs/extesion-developlment/adding-a-section-to-a-settings-tab.md#section-2)

View File

@ -44,7 +44,7 @@ In addition to the software listed above, youll also want to have some way of
### Minimum server requirements
Regardless of the tool you choose for managing your development environment, you should make sure it [meets the server recommendations](https://woocommerce.com/document/server-requirements/?utm_source=wooextdevguide) for WooCommerce as well as the [requirements for running WordPress](https://wordpress.org/about/requirements/).
Regardless of the tool you choose for managing your development environment, you should make sure it [meets the server recommendations](https://woo.com/document/server-requirements/?utm_source=wooextdevguide) for WooCommerce as well as the [requirements for running WordPress](https://wordpress.org/about/requirements/).
## Anatomy of a WordPress development environment (public_html/)

View File

@ -7,13 +7,13 @@ Your WooCommerce extension should:
- Adhere to all WordPress plugin coding standards, as well as [best practice guidelines](https://developer.wordpress.org/plugins/plugin-basics/best-practices/) for harmonious existence within WordPress and alongside other WordPress plugins.
- Have a single core purpose and use WooCommerce features as much as possible.
- Not do anything malicious, illegal, or dishonest — for example, inserting spam links or executable code via third-party systems if not part of the service or  explicitly permitted in the services terms of use.
- Adhere to WooCommerce [compatibility and interoperability guidelines](https://woocommerce.com/document/marketplace-overview/#section-9).
- Adhere to WooCommerce [compatibility and interoperability guidelines](https://woo.com/document/marketplace-overview/#section-9).
Merchants make use of WooCommerce extensions daily, and should have a unified and pleasant experience while doing so without advertising invading their WP Admin or store.
Note: We provide this page as a best practice for developers.
## [Check if WooCommerce is active](https://woocommerce.com/document/create-a-plugin/#section-1)
## [Check if WooCommerce is active](https://woo.com/document/create-a-plugin/#section-1)
Most WooCommerce plugins do not need to run unless WooCommerce is already active. You can wrap your plugin in a check to see if WooCommerce is installed:
@ -41,25 +41,25 @@ in_array( $plugin_path, wp_get_active_and_valid_plugins() )
Note that this check will fail if the WC plugin folder is named anything other than woocommerce.
## [Main file naming](https://woocommerce.com/document/create-a-plugin/#section-2)
## [Main file naming](https://woo.com/document/create-a-plugin/#section-2)
The main plugin file should adopt the name of the plugin, e.g., A plugin with the directory name plugin-name would have its main file named plugin-name.php.
## [Text domains](https://woocommerce.com/document/create-a-plugin/#section-3)
## [Text domains](https://woo.com/document/create-a-plugin/#section-3)
Follow guidelines for [Internationalization for WordPress Developers](https://codex.wordpress.org/I18n_for_WordPress_Developers), the text domain should match your plugin directory name, e.g., A plugin with a directory name of plugin-name would have the text domain plugin-name. Do not use underscores.
## [Localization](https://woocommerce.com/document/create-a-plugin/#section-4)
## [Localization](https://woo.com/document/create-a-plugin/#section-4)
All text strings within the plugin code should be in English. This is the WordPress default locale, and English should always be the first language. If your plugin is intended for a specific market (e.g., Spain or Italy), include appropriate translation files for those languages within your plugin package. Learn more at [Using Makepot to translate your plugin](https://codex.wordpress.org/I18n_for_WordPress_Developers#Translating_Plugins_and_Themes).
## [Follow WordPress PHP Guidelines](https://woocommerce.com/document/create-a-plugin/#section-5)
## [Follow WordPress PHP Guidelines](https://woo.com/document/create-a-plugin/#section-5)
WordPress has a [set of guidelines](http://make.wordpress.org/core/handbook/coding-standards/php/) to keep all WordPress code consistent and easy to read. This includes quotes, indentation, brace style, shorthand php tags, yoda conditions, naming conventions, and more. Please review the guidelines.
Code conventions also prevent basic mistakes, as [Apple made with iOS 7.0.6](https://www.imperialviolet.org/2014/02/22/applebug.html).
## [Custom Database Tables & Data Storage](https://woocommerce.com/document/create-a-plugin/#section-6)
## [Custom Database Tables & Data Storage](https://woo.com/document/create-a-plugin/#section-6)
Avoid creating custom database tables. Whenever possible, use WordPress [post types](http://codex.wordpress.org/Post_Types#Custom_Post_Types), [taxonomies](http://codex.wordpress.org/Taxonomies), and [options](http://codex.wordpress.org/Creating_Options_Pages).
@ -71,9 +71,9 @@ Consider the permanence of your data. Heres a quick primer:
- If the data type is an entity with n units, consider a post type.
- If the data is a means or sorting/categorizing an entity, consider a taxonomy.
Logs should be written to a file using the [WC_Logger](https://woocommerce.com/wc-apidocs/class-WC_Logger.html) class.
Logs should be written to a file using the [WC_Logger](https://woo.com/wc-apidocs/class-WC_Logger.html) class.
## [Prevent Data Leaks](https://woocommerce.com/document/create-a-plugin/#section-7)
## [Prevent Data Leaks](https://woo.com/document/create-a-plugin/#section-7)
Try to prevent direct access data leaks. Add this line of code after the opening PHP tag in each PHP file:
@ -83,7 +83,7 @@ exit; // Exit if accessed directly
}
```
## [Readme](https://woocommerce.com/document/create-a-plugin/#section-8)
## [Readme](https://woo.com/document/create-a-plugin/#section-8)
All plugins need a [standard WordPress readme](http://wordpress.org/plugins/about/readme.txt).
@ -101,7 +101,7 @@ License: GPLv3 or later License
URI: http://www.gnu.org/licenses/gpl-3.0.html
```
## [Plugin Author Name](https://woocommerce.com/document/create-a-plugin/#section-9)
## [Plugin Author Name](https://woo.com/document/create-a-plugin/#section-9)
To ensure a consistent experience for all WooCommerce users,including finding information on who to contact with queries, the following plugin headers should be in place:
@ -113,7 +113,7 @@ For example:
```php
/**
* Plugin Name: WooCommerce Extension
* Plugin URI: http://woocommerce.com/products/woocommerce-extension/
* Plugin URI: https://woo.com/products/woocommerce-extension/
* Description: Your extension's description text.
* Version: 1.0.0
* Author: Your Name
@ -132,18 +132,18 @@ For example:
*/
```
## [Declaring required and supported WooCommerce version](https://woocommerce.com/document/create-a-plugin/#section-10)
## [Declaring required and supported WooCommerce version](https://woo.com/document/create-a-plugin/#section-10)
Use the follow headers to declare “required” and “tested up to” versions:
- WC requires at least
- WC tested up to
## [Plugin URI](https://woocommerce.com/document/create-a-plugin/#section-11)
## [Plugin URI](https://woo.com/document/create-a-plugin/#section-11)
Ensure that the Plugin URI line of the above plugin header is provided. This line should contain the URL of the plugins product/sale page or to a dedicated page for the plugin on your website.
## [Make it Extensible](https://woocommerce.com/document/create-a-plugin/#section-13)
## [Make it Extensible](https://woo.com/document/create-a-plugin/#section-13)
Developers should use WordPress actions and filters to allow for modification/customization without requiring users to touch the plugins core code base.
@ -151,23 +151,23 @@ If your plugin creates a front-end output, we recommend to having a templating e
For more information, check out Pippins post on [Writing Extensible Plugins with Actions and Filters](http://code.tutsplus.com/tutorials/writing-extensible-plugins-with-actions-and-filters--wp-26759).
## [Use of External Libraries](https://woocommerce.com/document/create-a-plugin/#section-14)
## [Use of External Libraries](https://woo.com/document/create-a-plugin/#section-14)
The use of entire external libraries is typically not suggested as this can open up the product to security vulnerabilities. If an external library is absolutely necessary, developers should be thoughtful about the code used and assume ownership as well as of responsibility for it. Try to  only include the strictly necessary part of the library, or use a WordPress-friendly version or opt to build your own version. For example, if needing to use a text editor such as TinyMCE, we recommend using the WordPress-friendly version, TinyMCE Advanced.
## [Remove Unused Code](https://woocommerce.com/document/create-a-plugin/#section-15)
## [Remove Unused Code](https://woo.com/document/create-a-plugin/#section-15)
With version control, theres no reason to leave commented-out code; its annoying to scroll through and read. Remove it and add it back later if needed.
## [Comment](https://woocommerce.com/document/create-a-plugin/#section-16)
## [Comment](https://woo.com/document/create-a-plugin/#section-16)
If you have a function, what does the function do? There should be comments for most if not all functions in your code. Someone/You may want to modify the plugin, and comments are helpful for that. We recommend using [PHP Doc Blocks](http://en.wikipedia.org/wiki/PHPDoc)  similar to [WooCommerce](https://github.com/woocommerce/woocommerce/).
## [Avoid God Objects](https://woocommerce.com/document/create-a-plugin/#section-17)
## [Avoid God Objects](https://woo.com/document/create-a-plugin/#section-17)
[God Objects](http://en.wikipedia.org/wiki/God_object) are objects that know or do too much. The point of object-oriented programming is to take a large problem and break it into smaller parts. When functions do too much, its hard to follow their logic, making bugs harder to fix. Instead of having massive functions, break them down into smaller pieces.
## [Test Extension Quality & Security with Quality Insights Tool](https://woocommerce.com/document/create-a-plugin/#section-18)
## [Test Extension Quality & Security with Quality Insights Tool](https://woo.com/document/create-a-plugin/#section-18)
Integrate the [Quality Insights Toolkit (QIT)](https://woocommerce.github.io/qit-documentation/) into your development workflow to ensure your extension adheres to WordPress / WooCommerce quality and security standards. The QIT allows the ability to test your extensions against new releases of PHP, WooCommerce, and WordPress, as well as other active extensions, at the same time. The following tests are available today:
@ -177,24 +177,24 @@ Integrate the [Quality Insights Toolkit (QIT)](https://woocommerce.github.io/qit
- [PHPStan](https://woocommerce.github.io/qit-documentation/#/test-types/phpstan)
- [API](https://woocommerce.github.io/qit-documentation/#/test-types/api)
## [Test Your Code with WP_DEBUG](https://woocommerce.com/document/create-a-plugin/#section-19)
## [Test Your Code with WP_DEBUG](https://woo.com/document/create-a-plugin/#section-19)
Always develop with [WP_DEBUG](http://codex.wordpress.org/Debugging_in_WordPress) mode on, so you can see all PHP warnings sent to the screen. This will flag things like making sure a variable is set before checking the value.
## [Separate Business Logic & Presentation Logic](https://woocommerce.com/document/create-a-plugin/#section-20)
## [Separate Business Logic & Presentation Logic](https://woo.com/document/create-a-plugin/#section-20)
Its a good practice to separate business logic (i.e., how the plugin works) from [presentation logic](http://en.wikipedia.org/wiki/Presentation_logic) (i.e., how it looks). Two separate pieces of logic are more easily maintained and swapped if necessary. An example is to have two different classes — one for displaying the end results, and one for the admin settings page.
## [Use Transients to Store Offsite Information](https://woocommerce.com/document/create-a-plugin/#section-21)
## [Use Transients to Store Offsite Information](https://woo.com/document/create-a-plugin/#section-21)
If you provide a service via an API, its best to store that information so future queries can be done faster and the load on your service is lessened. [WordPress transients](http://codex.wordpress.org/Transients_API) can be used to store data for a certain amount of time.
## [Logging Data](https://woocommerce.com/document/create-a-plugin/#section-22)
## [Logging Data](https://woo.com/document/create-a-plugin/#section-22)
You may want to log data that can be useful for debugging purposes. This is great with two conditions:
- Allow any logging as an opt in.
- Use the [WC_Logger](https://woocommerce.com/wc-apidocs/class-WC_Logger.html) class. A user can then view logs on their system status page.
- Use the [WC_Logger](https://woo.com/wc-apidocs/class-WC_Logger.html) class. A user can then view logs on their system status page.
If adding logging to your extension, heres a snippet for presenting a link to the logs, in a way the extension user can easily make use of.

View File

@ -26,7 +26,7 @@ Below is an example of what the header content might look like for an extension
```php
/**
* Plugin Name: My Great WooCommerce Extension
* Plugin URI: http://woocommerce.com/products/woocommerce-extension/
* Plugin URI: http://woo.com/products/woocommerce-extension/
* Description: Your extension's description text.
* Version: 1.0.0
* Author: Your Name
@ -260,7 +260,7 @@ Below is an example of what a main plugin file might look like for a very simple
```php
/**
* Plugin Name: My Great WooCommerce Extension
* Plugin URI: http://woocommerce.com/products/woocommerce-extension/
* Plugin URI: http://woo.com/products/woocommerce-extension/
* Description: Your extension's description text.
* Version: 1.0.0
* Author: Your Name

View File

@ -3,7 +3,7 @@
Attributes that can be used for the layered nav are a custom taxonomy, which means you can display them in menus, or display products by attributes. This requires some work on your part, and archives must be enabled.
> **Note:** This is a **Developer level** doc. If you are unfamiliar with code/templates and resolving potential conflicts, select a [WooExpert or Developer](https://woocommerce.com/customizations/) for assistance. We are unable to provide support for customizations under our [Support Policy](http://www.woocommerce.com/support-policy/).
> **Note:** This is a **Developer level** doc. If you are unfamiliar with code/templates and resolving potential conflicts, select a [WooExpert or Developer](https://woo.com/customizations/) for assistance. We are unable to provide support for customizations under our [Support Policy](https://woo.com/support-policy/).
# Register the taxonomy for menus

View File

@ -6,7 +6,7 @@ This guide is a great starting point for WooCommerce development. From setting u
There are a few different ways you might want to get started utilizing WooCommerce. Choose a path below to start developing based on your code comfort level!
### [Installing and setting up WooCommerce](https://woocommerce.com/document/build-online-store/)
### [Installing and setting up WooCommerce](https://woo.com/document/build-online-store/)
If youre brand new to Woo, this guide will show you How to build an online store on WooCommerce. This is where you can learn the ins and outs of how WooCommerce works before you start developing.
@ -18,9 +18,9 @@ This no-configuration quick-start package will scaffold a local copy of an exten
This guide will have you building your first extension with best practices and helpful tips.
### [Marketplace Contribution Guidelines](https://woocommerce.com/document/marketplace-overview/)
### [Marketplace Contribution Guidelines](https://woo.com/document/marketplace-overview/)
Are you hoping to sell your extension in the [Woo Marketplace](https://woocommerce.com/marketplace/)? Read our guidelines to make sure your extension is marketplace-ready.
Are you hoping to sell your extension in the [Woo Marketplace](https://woo.com/marketplace/)? Read our guidelines to make sure your extension is marketplace-ready.
### [Contributor Guidelines](https://github.com/woocommerce/woocommerce/blob/trunk/.github/CONTRIBUTING.md)
@ -45,7 +45,7 @@ The resources below contain low-level documentation about features, libraries, e
The WooCommerce REST API lets you create, read, update, and delete WooCommerce data using HTTP requests, so you can integrate external applications with WooCommerce and build extensions that make use of asynchronous UI frameworks such as React.
### [Core API](https://docs.woocommerce.com/wc-apidocs/index.html)
### [Core API](https://woo.com/wc-apidocs/index.html)
The WooCommerce Core API code reference contains information about packages and classes that make up WooCommerce's core functionality.
@ -57,11 +57,11 @@ The Store API provides public Rest API endpoints for the development of customer
WooCommerce Blocks give you the ability to integrate WooCommerce with Gutenberg. Use the documentation and resources here as a starting point for developing new block types for WooCommerce.
### [Core Action and Filter Hooks](https://docs.woocommerce.com/wc-apidocs/hooks/hooks.html)
### [Core Action and Filter Hooks](https://woo.com/wc-apidocs/hooks/hooks.html)
This contains an index of hooks found across all template files, functions, shortcodes, widgets, data stores, and core classes. You can use these hooks to extend the core WooCommerce platform by introducing custom behavior or modifying data that WooCommerce passes around.
### [Shortcodes Included with WooCommerce](https://docs.woocommerce.com/document/woocommerce-shortcodes/)
### [Shortcodes Included with WooCommerce](https://woo.com/document/woocommerce-shortcodes/)
While WooCommerce Blocks are now the easiest and most flexible way to display your products on posts and pages, WooCommerce still comes with several shortcodes to insert content.
@ -89,7 +89,7 @@ This is the official WordPress organization on GitHub a go-to source for
All the resources you need for developing with WordPress. If youre not familiar with the WordPress development ecosystem, this is a great place to start.
### [WooCommerce Community Slack](https://woocommerce.com/community-slack)
### [WooCommerce Community Slack](https://woo.com/community-slack)
Join our community on Slack. We hold regular sessions where we share information and field questions, but you can also connect with other developers to share challenges and ask questions.

View File

@ -1,6 +1,6 @@
# WooCommerce Endpoints
**Note:** We are unable to provide support for customizations under our **[Support Policy](http://www.woocommerce.com/support-policy/)**. If you need to further customize a snippet, or extend its functionality, we highly recommend [**Codeable**](https://codeable.io/?ref=z4Hnp), or a [**Certified WooExpert**](https://woocommerce.com/experts/).
**Note:** We are unable to provide support for customizations under our **[Support Policy](https://woo.com/support-policy/)**. If you need to further customize a snippet, or extend its functionality, we highly recommend [**Codeable**](https://codeable.io/?ref=z4Hnp), or a [**Certified WooExpert**](https://woo.com/experts/).
Endpoints are an extra part in the website URL that is detected to show different content when present.
@ -37,7 +37,7 @@ The following endpoints are used for account-related functionality and are appe
The URL for each endpoint can be customized in **WooCommerce > Settings > Advanced** in the Page setup section.
![Endpoints](https://woocommerce.com/wp-content/uploads/2014/02/endpoints.png)
![Endpoints](https://woo.com/wp-content/uploads/2014/02/endpoints.png)
Ensure that they are unique to avoid conflicts. If you encounter issues with 404s, go to **Settings > Permalinks** and save to flush the rewrite rules.
@ -45,7 +45,7 @@ Ensure that they are unique to avoid conflicts. If you encounter issues with 404
If you want to include an endpoint in your menus, you need to use the Links section:
![2014-02-26 at 14.26](https://woocommerce.com/wp-content/uploads/2014/02/2014-02-26-at-14.26.png)
![2014-02-26 at 14.26](https://woo.com/wp-content/uploads/2014/02/2014-02-26-at-14.26.png)
Enter the full URL to the endpoint and then insert that into your menu.
@ -103,4 +103,4 @@ Landing on the wrong page when clicking an endpoint URL is typically caused by i
Sometimes the “Downloads” endpoint on the “My account” page does not need to be displayed. This can be removed by going to **WooCommerce → Settings → Advanced → Account endpoints** and clearing the Downloads endpoint field.
![Account endpoints](https://woocommerce.com/wp-content/uploads/2023/04/Screenshot-2023-04-09-at-11.45.58-PM.png?w=650)
![Account endpoints](https://woo.com/wp-content/uploads/2023/04/Screenshot-2023-04-09-at-11.45.58-PM.png?w=650)

View File

@ -124,27 +124,27 @@ You can switch between data stores freely to sync the data between the tables.
- If you select **“WordPress Post Tables”**, the system will save the order data within `_post` and `_postmeta` tables. The order tables are not utilized in this scenario.
![Select WordPress Post Tables](https://woocommerce.com/wp-content/uploads/2023/10/image-18.png?w=650)
![Select WordPress Post Tables](https://woo.com/wp-content/uploads/2023/10/image-18.png?w=650)
- If you select **“High-Performance Order Storage”**, the system will save the order data within the new WooCommerce order tables
![Select High-Performance Order Storage](https://woocommerce.com/wp-content/uploads/2023/10/image-19.png?w=650)
![Select High-Performance Order Storage](https://woo.com/wp-content/uploads/2023/10/image-19.png?w=650)
- If you select **“WordPress Post Tables”** and **“Enable compatibility mode”**, the system will sync the order data between the posts/postmeta and the WooCommerce order tables.
![Select WordPress Post Tables and Enable compatibility mode](https://woocommerce.com/wp-content/uploads/2023/10/image-20.png?w=650)
![Select WordPress Post Tables and Enable compatibility mode](https://woo.com/wp-content/uploads/2023/10/image-20.png?w=650)
## [Incompatible Plugins](https://github.com/woocommerce/woocommerce/blob/trunk/docs/high-performance-order-storage/#section-9)
If you are using a plugin that is not compatible with High-Performance Order Storage, then the HPOS option will be disabled under **WooCommerce > Settings > Advanced > Features**.
![Incompatible plugin](https://woocommerce.com/wp-content/uploads/2023/10/image-21.png?w=650)
![Incompatible plugin](https://woo.com/wp-content/uploads/2023/10/image-21.png?w=650)
- You can click on “**View and manage**” to review the list of incompatible plugins
- Or you can visit `https://example.com/wp-admin/plugins.php?plugin_status=incompatible_with_feature&feature_id=custom_order_tables` to review the list of incompatible plugins (please replace `example.com` with your site domain)
![Plugins page](https://woocommerce.com/wp-content/uploads/2023/10/image-22.png?w=650)
![Plugins page](https://woo.com/wp-content/uploads/2023/10/image-22.png?w=650)
> **Note:** If you are using a third-party extension that isnt working properly with High-Performance Order Storage then please notify the developers of the extension and ask them to update their extension to add support for HPOS. Its up to the extension developers to add support for HPOS. We have [developer resources and documentation](https://developer.woocommerce.com/2022/09/14/high-performance-order-storage-progress-report/) available to help with their integration efforts.
@ -155,7 +155,7 @@ If you encounter problems or if you need to continue working with plugins that a
To do this, navigate to **WooCommerce ▸ Settings ▸ Advanced ▸ Features** and start by making sure that **compatibility mode** is enabled. If it was not already enabled, you may find you need to wait for some time while order data is synchronized across data-stores.
![WooCommerce ▸ Settings ▸ Advanced ▸ Features Screen](https://woocommerce.com/wp-content/uploads/2023/10/hpos-feature-settings.png?w=650)
![WooCommerce ▸ Settings ▸ Advanced ▸ Features Screen](https://woo.com/wp-content/uploads/2023/10/hpos-feature-settings.png?w=650)
Once synchronization has completed, you can select **WordPress posts storage (legacy)** as your preferred option. You can also disable compatibility mode at this point. Once you are ready to re-enable HPOS, simply follow the instructions posted at the [start of this doc](https://github.com/woocommerce/woocommerce/blob/trunk/docs/high-performance-order-storage/#section-3). Finally, remember to save this page between changes!

View File

@ -7,7 +7,7 @@ To activate High-Performance Order Storage, existing stores will first need to g
1/ Navigate to **WooCommerce > Settings > Advanced > Features**
2/ Turn on the **“Enable compatibility mode (synchronizes orders to the posts table)”** setting.
![Enable HPOS Screen](https://woocommerce.com/wp-content/uploads/2023/10/New-Project-4.jpg?w=650)
![Enable HPOS Screen](https://woo.com/wp-content/uploads/2023/10/New-Project-4.jpg?w=650)
3/ Once this setting is activated, background actions will be scheduled.
@ -16,8 +16,8 @@ To activate High-Performance Order Storage, existing stores will first need to g
- You can either wait for these actions to run on their own, which should be quite soon, or you can go to **WooCommerce > Status > Scheduled Actions**, find the actions and click on the run button.
- The action will backfill 25 orders at a time, if there are more orders to be synced, then more actions will be scheduled as soon as the previous actions are completed.
![wc_schedule_pending_batch_process Screen](https://woocommerce.com/wp-content/uploads/2023/10/2.jpg?w=650)
![wc_run_batch_process Screen](https://woocommerce.com/wp-content/uploads/2023/10/New-Project-5.jpg?w=650)
![wc_schedule_pending_batch_process Screen](https://woo.com/wp-content/uploads/2023/10/2.jpg?w=650)
![wc_run_batch_process Screen](https://woo.com/wp-content/uploads/2023/10/New-Project-5.jpg?w=650)
4/ After both tables are successfully synchronized, youll be able to select the option to switch to High-Performance Order Storage (HPOS).

View File

@ -30,19 +30,19 @@ If youre new to translating, check out the [translators handbook](https://mak
1. Go to [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/woocommerce) and look for your language in the list.
2. Click the title to be taken to the section for that language.
![screenshot](https://woocommerce.com/wp-content/uploads/2012/01/2016-02-17-at-09.57.png)
![screenshot](https://woo.com/wp-content/uploads/2012/01/2016-02-17-at-09.57.png)
3. Click the heading under `Set/Sub Project` to view and download a Stable version.
![screenshot](https://woocommerce.com/wp-content/uploads/2012/01/2016-02-17-at-09.59.png)
![screenshot](https://woo.com/wp-content/uploads/2012/01/2016-02-17-at-09.59.png)
4. Scroll to the bottom for export options. Export a `.mo` file for use on your site.
![screenshot](https://woocommerce.com/wp-content/uploads/2012/01/2016-02-17-at-10.00.png)
![screenshot](https://woo.com/wp-content/uploads/2012/01/2016-02-17-at-10.00.png)
5. Rename this file to `woocommerce-YOURLANG.mo` (e.g., Great Britain English should be `en_GB`). The corresponding language code can be found by going to [https://translate.wordpress.org/projects/wp-plugins/woocommerce/](https://translate.wordpress.org/projects/wp-plugins/woocommerce/) and opening the desired language. The language code is visible in the upper-right corner.
![screenshot](https://woocommerce.com/wp-content/uploads/2023/10/Screenshot-2023-10-17-at-09.44.53.png)
![screenshot](https://woo.com/wp-content/uploads/2023/10/Screenshot-2023-10-17-at-09.44.53.png)
6. Upload to your site under `wp-content/languages/woocommerce/`. Once uploaded, this translation file may be used.
@ -59,12 +59,12 @@ To get started:
1. Open PoEdit and select `Create new translation from POT template`.
2. Choose `woocommerce.pot` and PoEdit will show the catalog properties window.
![screenshot](https://woocommerce.com/wp-content/uploads/2012/01/Screen-Shot-2013-05-09-at-10.16.46.png)
![screenshot](https://woo.com/wp-content/uploads/2012/01/Screen-Shot-2013-05-09-at-10.16.46.png)
3. Enter your name and details, so other translators know who you are, and click `OK`.
4. Save your `.po` file. Name it based on what you are translating to, i.e., a GB translation is saved as `woocommerce-en_GB.po`. Now the strings are listed.
![screenshot](https://woocommerce.com/wp-content/uploads/2012/01/Screen-Shot-2013-05-09-at-10.20.58.png)
![screenshot](https://woo.com/wp-content/uploads/2012/01/Screen-Shot-2013-05-09-at-10.20.58.png)
5. Save after translating strings. The `.mo` file is generated automatically.
6. Update your `.po` file by opening it and then go to `Catalog » Update from POT file`.
@ -72,7 +72,7 @@ To get started:
## Making your translation upgrade safe
> **Note:** We are unable to provide support for customizations under our [Support Policy](http://www.woocommerce.com/support-policy/). If you need to further customize a snippet, or extend its functionality, we highly recommend [Codeable](https://codeable.io/?ref=z4Hnp), or a [Certified WooExpert](https://woocommerce.com/experts/).
> **Note:** We are unable to provide support for customizations under our [Support Policy](https://woo.com/support-policy/). If you need to further customize a snippet, or extend its functionality, we highly recommend [Codeable](https://codeable.io/?ref=z4Hnp), or a [Certified WooExpert](https://woo.com/experts/).
WooCommerce keeps translations in `wp-content/languages/plugins`, like all other plugins. But if you wish to include a custom translation, you can use the directory `wp-content/languages/woocommerce`, or you can use a snippet to load a custom translation stored elsewhere:
@ -116,7 +116,7 @@ There are some other third-party tools that can help with translations. The foll
You may see that some of the strings are not being translated on the Checkout page. For example, in the screenshot below, `Local pickup` shipping method, `Cash on delivery` payment method and a message related to Privacy Policy are not being translated to Russian while the rest of the form is indeed translated:
![screenshot](https://woocommerce.com/wp-content/uploads/2012/01/not_translated.jpg)
![screenshot](https://woo.com/wp-content/uploads/2012/01/not_translated.jpg)
This usually happens when you first install WooCommerce and select default site language (English) and later change the site language to another one. In WooCommerce, the strings that have not been translated in the screenshot, are stored in the database after the initial WooCommerce installation. Therefore, if the site language is changed to another one, there is no way for WooCommerce to detect a translatable string since these are database entries.
@ -153,8 +153,8 @@ If some of your translated strings dont show up as expected on your WooCommer
This screenshot shows that the Singular translation is available:
![screenshot](https://woocommerce.com/wp-content/uploads/2023/10/Screenshot-2023-10-17-at-10.10.06.png)
![screenshot](https://woo.com/wp-content/uploads/2023/10/Screenshot-2023-10-17-at-10.10.06.png)
While this screenshot shows that the Plural translation is not available:
![screenshot](https://woocommerce.com/wp-content/uploads/2023/10/Screenshot-2023-10-17-at-10.10.21.png)
![screenshot](https://woo.com/wp-content/uploads/2023/10/Screenshot-2023-10-17-at-10.10.21.png)

View File

@ -2,7 +2,7 @@
Payment gateways in WooCommerce are class based and can be added through traditional plugins. This guide provides an intro to gateway development.
**Note:** We are unable to provide support for customizations under our **[Support Policy](http://www.woocommerce.com/support-policy/)**. If you need to further customize a snippet, or extend its functionality, we highly recommend [**Codeable**](https://codeable.io/?ref=z4Hnp), or a [**Certified WooExpert**](https://woocommerce.com/experts/).
**Note:** We are unable to provide support for customizations under our **[Support Policy](https://woo.com/support-policy/)**. If you need to further customize a snippet, or extend its functionality, we highly recommend [**Codeable**](https://codeable.io/?ref=z4Hnp), or a [**Certified WooExpert**](https://woo.com/experts/).
## Types of payment gateway
@ -13,13 +13,13 @@ Payment gateways come in several varieties:
3. **Direct** This is when the payment fields are shown directly on the checkout page and the payment is made when place order is pressed. _Example_: PayPal Pro, Authorize.net AIM
4. **Offline** No online payment is made. _Example_: Cheque, Bank Transfer
Form and iFrame based gateways post data offsite, meaning there are less security issues for you to think about. Direct gateways, however, require server security to be implemented ([SSL certificates](https://woocommerce.com/document/ssl-and-https/), etc.) and may also require a level of [PCI compliance](https://woocommerce.com/document/pci-dss-compliance-and-woocommerce/).
Form and iFrame based gateways post data offsite, meaning there are less security issues for you to think about. Direct gateways, however, require server security to be implemented ([SSL certificates](https://woo.com/document/ssl-and-https/), etc.) and may also require a level of [PCI compliance](https://woo.com/document/pci-dss-compliance-and-woocommerce/).
## Creating a basic payment gateway
**Note:** We are unable to provide support for customizations under our [Support Policy](http://www.woocommerce.com/support-policy/). If you are unfamiliar with code/templates and resolving potential conflicts, select a [WooExpert or Developer](https://woocommerce.com/customizations/)  for assistance.
**Note:** We are unable to provide support for customizations under our [Support Policy](https://woo.com/support-policy/). If you are unfamiliar with code/templates and resolving potential conflicts, select a [WooExpert or Developer](https://woo.com/customizations/)  for assistance.
**Note:** The instructions below are for the default Checkout page. If youre looking to add a custom payment method for the new Checkout block, check out [this documentation.](https://github.com/woocommerce/woocommerce-blocks/blob/trunk/docs/third-party-developers/extensibility/checkout-payment-methods/payment-method-integration.md)
@ -29,7 +29,7 @@ Payment gateways should be created as additional plugins that hook into WooComme
add_action( 'plugins_loaded', 'init_your_gateway_class' );
```
It is also important that your gateway class extends the WooCommerce base gateway class, so you have access to important methods and the [settings API](https://woocommerce.com/document/settings-api/ "https://woocommerce.com/document/settings-api/"):
It is also important that your gateway class extends the WooCommerce base gateway class, so you have access to important methods and the [settings API](https://woo.com/document/settings-api/ "https://woo.com/document/settings-api/"):
``` php
function init_your_gateway_class() {
@ -89,7 +89,7 @@ add_action( 'woocommerce_update_options_payment_gateways\_' . $this->id, array(
#### init_form_fields()
Use this method to set `$this->form_fields` these are options youll show in admin on your gateway settings page and make use of the [WC Settings API](https://woocommerce.com/document/settings-api/ "https://woocommerce.com/document/settings-api/").
Use this method to set `$this->form_fields` these are options youll show in admin on your gateway settings page and make use of the [WC Settings API](https://woo.com/document/settings-api/ "https://woo.com/document/settings-api/").
A basic set of settings for your gateway would consist of _enabled_, _title_ and _description_:
@ -243,7 +243,7 @@ add_action( 'woocommerce_api_wc_gateway_paypal', array( $this, 'check_ipn_respon
WooCommerce will call your gateway and run the action when the URL is called.
For more information, see [WC_API — The WooCommerce API Callback](https://woocommerce.com/document/wc_api-the-woocommerce-api-callback/).
For more information, see [WC_API — The WooCommerce API Callback](https://woo.com/document/wc_api-the-woocommerce-api-callback/).
## Hooks in Gateways

View File

@ -261,7 +261,7 @@ These flows will continually evolve as the platform evolves with flows updated,
| User Type | Flow Area | Flow Name | Test File |
| --------- | ---------------- | --------------------------------------- | --------- |
| Merchant | My Subscriptions | Can initiate WooCommerce.com Connection | |
| Merchant | My Subscriptions | Can initiate Woo.com Connection | |
### Merchant - Pages

View File

@ -1,7 +1,7 @@
# Removing /product/ , /product-category/ , or /shop/ from the URLs
**Note:** This is a **Developer level** doc. If you are unfamiliar with code/templates and resolving potential conflicts, select a [WooExpert or Developer](https://woocommerce.com/customizations/) for assistance. We are unable to provide support for customizations under our [Support Policy](http://www.woocommerce.com/support-policy/).
**Note:** This is a **Developer level** doc. If you are unfamiliar with code/templates and resolving potential conflicts, select a [WooExpert or Developer](https://woo.com/customizations/) for assistance. We are unable to provide support for customizations under our [Support Policy](https://woo.com/support-policy/).
## [In sum](https://github.com/woocommerce/woocommerce/blob/trunk/docs/quality-and-best-practices/removing-product-product-category-or-shop-from-the-urls.md#section-1)

View File

@ -49,7 +49,7 @@ Therefore, a PR could have testing instructions for multiple scenarios, in fact,
3. Identify the **preconditions**, **action** and **validation** steps.
4. Write **as many preconditions as you need** to explain how to set up the state of WooCommerce so that you can execute the desired action to test every flow.
1. Try to be detailed when explaining the interactions the user needs to perform in WooCommerce.
2. If there are several preconditions for a user flow that is explained in a public guide, feel free to simply link the guide in the testing instructions instead of writing several steps. For example, _"Enable dev mode in WooCommerce Payments by following the steps mentioned [here](https://woocommerce.com/document/woocommerce-payments/testing-and-troubleshooting/dev-mode/)"_.
2. If there are several preconditions for a user flow that is explained in a public guide, feel free to simply link the guide in the testing instructions instead of writing several steps. For example, _"Enable dev mode in WooCommerce Payments by following the steps mentioned [here](https://woo.com/document/woocommerce-payments/testing-and-troubleshooting/dev-mode/)"_.
5. Write **the action step**, which should cover the specific action that we want to test as part of this user flow.
6. Write **as many validation steps** as needed in order to assess that the actual result meets expectations.
1. Bear in mind to check only the steps needed to validate that this change works.

View File

@ -72,7 +72,7 @@ if ( ! class_exists( 'WC_Your_Shipping_Method' ) ) {
## Defining settings/options
You can then define your options using the settings API. In the snippets above youll notice we init_form_fields and init_settings. These load up the settings API. To see how to add settings, see [WooCommerce settings API](https://woocommerce.com/document/settings-api/).
You can then define your options using the settings API. In the snippets above youll notice we init_form_fields and init_settings. These load up the settings API. To see how to add settings, see [WooCommerce settings API](https://woo.com/document/settings-api/).
## The calculate_shipping() method
@ -110,11 +110,11 @@ The skeleton shipping method code all put together looks like this:
<?php
/*
Plugin Name: Your Shipping plugin
Plugin URI: https://woocommerce.com/
Plugin URI: https://woo.com/
Description: Your shipping method plugin
Version: 1.0.0
Author: WooThemes
Author URI: https://woocommerce.com/
Author URI: https://woo.com/
*/
/**

View File

@ -4,7 +4,7 @@ This guide covers general guidelines and best practices to follow in order to en
We recommend you review the [UI best practices for WordPress](https://developer.wordpress.org/themes/advanced-topics/ui-best-practices/) to ensure your theme is aligned with the WordPress theme requirements.
Make sure your theme fits one or more industries currently available in the [WooCommerce themes store](https://woocommerce.com/product-category/themes). Its important that the theme offers enough originality and distinctiveness in its design, while keeping it familiar, in order to be distinguished from other themes on the WooCommerce theme store. Your theme should avoid copying existing themes on the WooCommerce theme store or other WordPress theme marketplaces.
Make sure your theme fits one or more industries currently available in the [WooCommerce themes store](https://woo.com/product-category/themes). Its important that the theme offers enough originality and distinctiveness in its design, while keeping it familiar, in order to be distinguished from other themes on the WooCommerce theme store. Your theme should avoid copying existing themes on the WooCommerce theme store or other WordPress theme marketplaces.
## Design

View File

@ -6,7 +6,7 @@ The [full plugin code](https://github.com/EdithAllison/woo-product-custom-fields
## Prerequisites
To do this tutorial you will need to have a WordPress install with the WooCommerce plugin activated, and you will need at least one [simple product set up](https://woocommerce.com/document/managing-products/), or you can [import the WooCommerce sample product range](https://woocommerce.com/document/importing-woocommerce-sample-data/).
To do this tutorial you will need to have a WordPress install with the WooCommerce plugin activated, and you will need at least one [simple product set up](https://woo.com/document/managing-products/), or you can [import the WooCommerce sample product range](https://woo.com/document/importing-woocommerce-sample-data/).
## Setting up the plugin
@ -201,7 +201,7 @@ Below is a bonus task if you are interested in variable products. Feel free to c
## How to handle variable products?
The above example was done with a simple product. But what if we have variations, for example, a T-Shirt in multiple sizes and we wanted to store different stock information for each variant? WooCommerce lets us do that with the [variable product type](https://woocommerce.com/document/variable-product/).
The above example was done with a simple product. But what if we have variations, for example, a T-Shirt in multiple sizes and we wanted to store different stock information for each variant? WooCommerce lets us do that with the [variable product type](https://woo.com/document/variable-product/).
A variable product type has variations as its children. To add a custom field to a variation, we can use the `woocommerce_variation_options_inventory` hook, and to save `woocommerce_save_product_variation` so lets update our `hooks()` method with the new action hooks like so:

View File

@ -31,4 +31,4 @@ In extensions:
- Use standard punctuation and avoid excessive exclamation marks.
- Use American English.
For more, read our [Grammar, Punctuation, and Capitalization guide](https://woocommerce.com/document/grammar-punctuation-style-guide/).
For more, read our [Grammar, Punctuation, and Capitalization guide](https://woo.com/document/grammar-punctuation-style-guide/).

View File

@ -10,4 +10,4 @@ When using components with text, such as buttons, cards, or navigation, the back
- [Color contrast ratio checker](http://webaim.org/resources/contrastchecker/)
- [More resources regarding accessibility and color testing](http://webaim.org/resources/contrastchecker/)
For WooCommerce-specific color use, review our [Style Guide](https://woocommerce.com/brand-and-logo-guidelines/).
For WooCommerce-specific color use, review our [Style Guide](https://woo.com/brand-and-logo-guidelines/).

View File

@ -4,7 +4,7 @@
Plugins should choose between implementing a Task or Inbox note based on the following guidelines. Avoid implementing both Task and Inbox note for the same message, which adds clutter and reduces the impact of the message.
Use the Task List and Inbox sparingly. Messages should be clear, concise, and maintain a consistent tone. Follow the [Grammar, Punctuation, and Capitalization guide](https://woocommerce.com/document/grammar-punctuation-style-guide/).
Use the Task List and Inbox sparingly. Messages should be clear, concise, and maintain a consistent tone. Follow the [Grammar, Punctuation, and Capitalization guide](https://woo.com/document/grammar-punctuation-style-guide/).
### Task List

View File

@ -2,9 +2,9 @@
This guide covers general guidelines, and best practices to follow in order to ensure your product experience aligns with WooCommerce for ease of use, seamless integration, and strong adoption.
We strongly recommend you review the current [WooCommerce setup experience](https://woocommerce.com/documentation/plugins/woocommerce/getting-started/) to get familiar with the user experience and taxonomy.
We strongly recommend you review the current [WooCommerce setup experience](https://woo.com/documentation/plugins/woocommerce/getting-started/) to get familiar with the user experience and taxonomy.
We also recommend you review the [WordPress core guidelines](https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/) to ensure your product isnt breaking any rules, and review [this helpful resource](https://woocommerce.com/document/grammar-punctuation-style-guide/) on content style.
We also recommend you review the [WordPress core guidelines](https://developer.wordpress.org/plugins/wordpress-org/detailed-plugin-guidelines/) to ensure your product isnt breaking any rules, and review [this helpful resource](https://woo.com/document/grammar-punctuation-style-guide/) on content style.
## General

View File

@ -3800,7 +3800,7 @@ Output just the id when the operation is successful.
## wc com
The `com` command allows interacting with the WooCommerce.com marketplace via CLI. Connecting to the marketplace via *WooCommerce > Extensions > My Subscriptions* in your WooCommerce store is required.
The `com` command allows interacting with the Woo.com marketplace via CLI. Connecting to the marketplace via *WooCommerce > Extensions > My Subscriptions* in your WooCommerce store is required.
### wc com extension list

View File

@ -2,7 +2,7 @@
"name": "woocommerce-monorepo",
"title": "WooCommerce Monorepo",
"description": "Monorepo for the WooCommerce ecosystem",
"homepage": "https://woocommerce.com/",
"homepage": "https://woo.com/",
"engines": {
"node": "^16.14.1",
"pnpm": "^8.6.7"

View File

@ -23,7 +23,7 @@ const initialValues = { firstName: '' };
| Name | Type | Default | Description |
| ------------- | -------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `fields` | {} or [] | [] | An object to describe the structure and types of all fields, matching the structure returned by the [Settings API](https://woocommerce.com/document/settings-api/) |
| `fields` | {} or [] | [] | An object to describe the structure and types of all fields, matching the structure returned by the [Settings API](https://woo.com/document/settings-api/) |
| `isBusy` | Boolean | false | Boolean indicating busy state of submit button |
| `onSubmit` | Function | `noop` | Function to call when a form is submitted with valid fields |
| `onChange` | Function | `noop` | Function to call when any values on the form are changed |
@ -32,7 +32,7 @@ const initialValues = { firstName: '' };
### Fields structure
Please reference the [WordPress settings API documentation](https://woocommerce.com/document/settings-api/) to better understand the structure expected for the fields property. This component accepts the object returned via the `settings` property when querying a gateway via the API, or simply the array provided by `Object.values(settings)`.
Please reference the [WordPress settings API documentation](https://woo.com/document/settings-api/) to better understand the structure expected for the fields property. This component accepts the object returned via the `settings` property when querying a gateway via the API, or simply the array provided by `Object.values(settings)`.
### Currently Supported Types

View File

@ -30,11 +30,11 @@ export default {
export const External = () => {
return (
<Link
href="https://woocommerce.com"
href="https://woo.com"
type="external"
onClick={ logLinkClick }
>
WooCommerce.com
Woo.com
</Link>
);
};

View File

@ -12,17 +12,17 @@ import { Link } from '..';
describe( 'Link', () => {
it( 'should render `external` links', () => {
const { container } = render(
<Link href="https://woocommerce.com" type="external">
WooCommerce.com
<Link href="https://woo.com" type="external">
Woo.com
</Link>
);
expect( container.firstChild ).toMatchInlineSnapshot( `
<a
data-link-type="external"
href="https://woocommerce.com"
href="https://woo.com"
>
WooCommerce.com
Woo.com
</a>
` );
} );
@ -84,12 +84,12 @@ describe( 'Link', () => {
it( 'should allow custom props to be passed through', () => {
const { container } = render(
<Link
href="https://woocommerce.com"
href="https://woo.com"
type="external"
className="foo"
target="bar"
>
WooCommerce.com
Woo.com
</Link>
);
@ -97,10 +97,10 @@ describe( 'Link', () => {
<a
class="foo"
data-link-type="external"
href="https://woocommerce.com"
href="https://woo.com"
target="bar"
>
WooCommerce.com
Woo.com
</a>
` );
} );
@ -114,15 +114,15 @@ describe( 'Link', () => {
render(
<Link
href="https://woocommerce.com"
href="https://woo.com"
type="external"
onClick={ clickHandler }
>
WooCommerce.com
Woo.com
</Link>
);
const testLink = screen.getByText( 'WooCommerce.com' );
const testLink = screen.getByText( 'Woo.com' );
fireEvent.click( testLink );

View File

@ -72,8 +72,8 @@ export default {
export const Default = () => {
const listItems = [
{
title: 'WooCommerce.com',
href: 'https://woocommerce.com',
title: 'Woo.com',
href: 'https://woo.com',
onClick: logItemClick,
},
{
@ -105,8 +105,8 @@ export const BeforeAndAfter = () => {
{
before: <Gridicon icon="cart" />,
after: <Gridicon icon="chevron-right" />,
title: 'WooCommerce.com',
href: 'https://woocommerce.com',
title: 'Woo.com',
href: 'https://woo.com',
onClick: logItemClick,
},
{
@ -143,10 +143,10 @@ export const CustomStyleAndTags = () => {
{
before: <Gridicon icon="cart" />,
after: <Gridicon icon="chevron-right" />,
title: 'WooCommerce.com',
href: 'https://woocommerce.com',
title: 'Woo.com',
href: 'https://woo.com',
onClick: logItemClick,
listItemTag: 'woocommerce.com-link',
listItemTag: 'woo.com-link',
},
{
before: <Gridicon icon="my-sites" />,

View File

@ -16,8 +16,8 @@ describe( 'List', () => {
const clickHandler = jest.fn();
const listItems = [
{
title: 'WooCommerce.com',
href: 'https://woocommerce.com',
title: 'Woo.com',
href: 'https://woo.com',
},
{
title: 'Click me!',
@ -34,8 +34,8 @@ describe( 'List', () => {
const clickHandler = jest.fn();
const listItems = [
{
title: 'WooCommerce.com',
href: 'https://woocommerce.com',
title: 'Woo.com',
href: 'https://woo.com',
},
{
title: 'Click me!',
@ -65,8 +65,8 @@ describe( 'List', () => {
linkType: 'wc-admin',
},
{
title: 'WooCommerce.com',
href: 'https://woocommerce.com',
title: 'Woo.com',
href: 'https://woo.com',
linkType: 'external',
},
{
@ -86,7 +86,7 @@ describe( 'List', () => {
.dataset.linkType
).toBe( 'wc-admin' );
expect(
screen.getByRole( 'menuitem', { name: 'WooCommerce.com' } )
screen.getByRole( 'menuitem', { name: 'Woo.com' } )
.dataset.linkType
).toBe( 'external' );
expect(
@ -110,10 +110,10 @@ describe( 'List', () => {
listItemTag: 'marketing',
},
{
title: 'WooCommerce.com',
href: 'https://woocommerce.com',
title: 'Woo.com',
href: 'https://woo.com',
linkType: 'external',
listItemTag: 'woocommerce.com-site',
listItemTag: 'woo.com-site',
},
{
title: 'WordPress.org',
@ -132,9 +132,9 @@ describe( 'List', () => {
.dataset.listItemTag
).toBe( 'marketing' );
expect(
screen.getByRole( 'menuitem', { name: 'WooCommerce.com' } )
screen.getByRole( 'menuitem', { name: 'Woo.com' } )
.dataset.listItemTag
).toBe( 'woocommerce.com-site' );
).toBe( 'woo.com-site' );
expect(
screen.getByRole( 'menuitem', { name: 'WordPress.org' } )
.dataset.listItemTag

View File

@ -8,7 +8,7 @@
{{#author}}
* Author: {{author}}
{{/author}}
* Author URI: https://woocommerce.com
* Author URI: https://woo.com
* Text Domain: {{textdomain}}
* Domain Path: /languages
*
@ -37,7 +37,7 @@ use {{slugPascalCase}}\Admin\Setup;
*/
function {{slugSnakeCase}}_missing_wc_notice() {
/* translators: %s WC download URL link. */
echo '<div class="error"><p><strong>' . sprintf( esc_html__( '{{title}} requires WooCommerce to be installed and active. You can download %s here.', '{{slugSnakeCase}}' ), '<a href="https://woocommerce.com/" target="_blank">WooCommerce</a>' ) . '</strong></p></div>';
echo '<div class="error"><p><strong>' . sprintf( esc_html__( '{{title}} requires WooCommerce to be installed and active. You can download %s here.', '{{slugSnakeCase}}' ), '<a href="https://woo.com/" target="_blank">WooCommerce</a>' ) . '</strong></p></div>';
}
register_activation_hook( __FILE__, '{{slugSnakeCase}}_activate' );

View File

@ -31,7 +31,7 @@ msgid "WooCommerce"
msgstr ""
#. Author URI of the plugin
msgid "https://woocommerce.com"
msgid "https://woo.com"
msgstr ""
#: build/index.js:1

View File

@ -83,7 +83,7 @@ The functions to access the core tests are:
- `runMerchantOrderEmailsTest` - Merchant can receive order emails and resend emails by Order Actions
- `runAnalyticsPageLoadsTest` - Merchant can load and see all pages in Analytics
- `runImportProductsTest` - Merchant can import products via CSV file
- `runInitiateWccomConnectionTest` - Merchant can initiate connection to WooCommerce.com
- `runInitiateWccomConnectionTest` - Merchant can initiate connection to Woo.com
- `runAdminPageLoadTests` - Merchant can load pages from the WP Admin sidebar
### Shopper

View File

@ -20,7 +20,7 @@ const runInitiateWccomConnectionTest = () => {
// Click on a tab to choose WooCommerce Subscriptions extension
await Promise.all( [
expect( page ).toClick( 'a.nav-tab', {
text: 'WooCommerce.com Subscriptions',
text: 'Woo.com Subscriptions',
} ),
page.waitForNavigation( { waitUntil: 'networkidle0' } ),
] );

View File

@ -30,7 +30,7 @@ describe( 'InboxNoteCard', () => {
id: 1,
name: 'wc-admin-wc-helper-connection',
type: 'info',
title: 'Connect to WooCommerce.com',
title: 'Connect to Woo.com',
content: 'Connect to get important product notifications and updates.',
status: 'unactioned',
date_created: '2020-05-10T16:57:31',

View File

@ -54,7 +54,7 @@ export const WCPayCardBody: React.VFC< WCPayCardBodyProps > = ( {
target="_blank"
type="external"
rel="noreferrer"
href="https://woocommerce.com/payments/?utm_medium=product"
href="https://woo.com/payments/?utm_medium=product"
onClick={ onLinkClick }
>
{ __( 'Learn more', 'woocommerce' ) }

View File

@ -87,7 +87,7 @@ export function Edit( {
),
globalAttributeLink: (
<Link
href="https://woocommerce.com/document/variable-product/#add-attributes-to-use-for-variations"
href="https://woo.com/document/variable-product/#add-attributes-to-use-for-variations"
type="external"
target="_blank"
/>

View File

@ -39,7 +39,7 @@ export const DetailsFeatureField = () => {
{
moreLink: (
<Link
href="https://woocommerce.com/document/woocommerce-shortcodes/#products"
href="https://woo.com/document/woocommerce-shortcodes/#products"
target="_blank"
type="external"
onClick={ () =>

View File

@ -1,7 +1,7 @@
{
"name": "woocommerce/woo-ai",
"description": "Run AI experiments in WooCommerce.",
"homepage": "https://woocommerce.com/",
"homepage": "https://woo.com/",
"type": "wordpress-plugin",
"license": "GPL-3.0-or-later",
"prefer-stable": true,

View File

@ -5,7 +5,7 @@
* Description: Enable AI experiments within the WooCommerce experience. <a href="https://automattic.com/ai-guidelines" target="_blank" rel="noopener noreferrer">Learn more</a>.
* Version: 0.5.0
* Author: WooCommerce
* Author URI: http://woocommerce.com/
* Author URI: http://woo.com/
* Requires at least: 5.8
* Tested up to: 6.3
* WC requires at least: 6.7

View File

@ -30,27 +30,27 @@ function getHomeItems() {
return [
{
title: __( 'Get Support', 'woocommerce' ),
link: 'https://woocommerce.com/my-account/create-a-ticket/?utm_medium=product',
link: 'https://woo.com/my-account/create-a-ticket/?utm_medium=product',
},
{
title: __( 'Home Screen', 'woocommerce' ),
link: 'https://woocommerce.com/document/home-screen/?utm_medium=product',
link: 'https://woo.com/document/home-screen/?utm_medium=product',
},
{
title: __( 'Inbox', 'woocommerce' ),
link: 'https://woocommerce.com/document/home-screen/?utm_medium=product#section-4',
link: 'https://woo.com/document/home-screen/?utm_medium=product#section-4',
},
{
title: __( 'Stats Overview', 'woocommerce' ),
link: 'https://woocommerce.com/document/home-screen/?utm_medium=product#section-5',
link: 'https://woo.com/document/home-screen/?utm_medium=product#section-5',
},
{
title: __( 'Store Management', 'woocommerce' ),
link: 'https://woocommerce.com/document/home-screen/?utm_medium=product#section-10',
link: 'https://woo.com/document/home-screen/?utm_medium=product#section-10',
},
{
title: __( 'Store Setup Checklist', 'woocommerce' ),
link: 'https://woocommerce.com/document/woocommerce-setup-wizard?utm_medium=product#store-setup-checklist',
link: 'https://woo.com/document/woocommerce-setup-wizard?utm_medium=product#store-setup-checklist',
},
];
}
@ -62,18 +62,18 @@ function getAppearanceItems() {
'Showcase your products and tailor your shopping experience using Blocks',
'woocommerce'
),
link: 'https://woocommerce.com/document/woocommerce-blocks/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/woocommerce-blocks/?utm_source=help_panel&utm_medium=product',
},
{
title: __(
'Manage Store Notice, Catalog View and Product Images',
'woocommerce'
),
link: 'https://woocommerce.com/document/woocommerce-customizer/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/woocommerce-customizer/?utm_source=help_panel&utm_medium=product',
},
{
title: __( 'How to choose and change a theme', 'woocommerce' ),
link: 'https://woocommerce.com/document/choose-change-theme/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/choose-change-theme/?utm_source=help_panel&utm_medium=product',
},
];
}
@ -88,11 +88,11 @@ function getMarketingItems( props ) {
},
activePlugins.includes( 'google-listings-and-ads' ) && {
title: __( 'Set up Google Listing & Ads', 'woocommerce' ),
link: 'https://woocommerce.com/document/google-listings-and-ads/?utm_medium=product#get-started',
link: 'https://woo.com/document/google-listings-and-ads/?utm_medium=product#get-started',
},
activePlugins.includes( 'pinterest-for-woocommerce' ) && {
title: __( 'Set up Pinterest for WooCommerce', 'woocommerce' ),
link: 'https://woocommerce.com/products/pinterest-for-woocommerce/',
link: 'https://woo.com/products/pinterest-for-woocommerce/',
},
activePlugins.includes( 'mailchimp-for-woocommerce' ) && {
title: __( 'Connect Mailchimp for WooCommerce', 'woocommerce' ),
@ -111,54 +111,54 @@ function getPaymentGatewaySuggestions( props ) {
return [
{
title: __( 'Which Payment Option is Right for Me?', 'woocommerce' ),
link: 'https://woocommerce.com/document/premium-payment-gateway-extensions/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/premium-payment-gateway-extensions/?utm_source=help_panel&utm_medium=product',
},
paymentGatewaySuggestions.woocommerce_payments && {
title: __( 'WooPayments Start Up Guide', 'woocommerce' ),
link: 'https://woocommerce.com/document/payments/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/payments/?utm_source=help_panel&utm_medium=product',
},
paymentGatewaySuggestions.woocommerce_payments && {
title: __( 'WooPayments FAQs', 'woocommerce' ),
link: 'https://woocommerce.com/documentation/woocommerce-payments/woocommerce-payments-faqs/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/documentation/woocommerce-payments/woocommerce-payments-faqs/?utm_source=help_panel&utm_medium=product',
},
paymentGatewaySuggestions.stripe && {
title: __( 'Stripe Setup and Configuration', 'woocommerce' ),
link: 'https://woocommerce.com/document/stripe/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/stripe/?utm_source=help_panel&utm_medium=product',
},
paymentGatewaySuggestions[ 'ppcp-gateway' ] && {
title: __(
'PayPal Checkout Setup and Configuration',
'woocommerce'
),
link: 'https://woocommerce.com/document/2-0/woocommerce-paypal-payments/?utm_medium=product#section-3',
link: 'https://woo.com/document/2-0/woocommerce-paypal-payments/?utm_medium=product#section-3',
},
paymentGatewaySuggestions.square_credit_card && {
title: __( 'Square - Get started', 'woocommerce' ),
link: 'https://woocommerce.com/document/woocommerce-square/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/woocommerce-square/?utm_source=help_panel&utm_medium=product',
},
paymentGatewaySuggestions.kco && {
title: __( 'Klarna - Introduction', 'woocommerce' ),
link: 'https://woocommerce.com/document/klarna-checkout/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/klarna-checkout/?utm_source=help_panel&utm_medium=product',
},
paymentGatewaySuggestions.klarna_payments && {
title: __( 'Klarna - Introduction', 'woocommerce' ),
link: 'https://woocommerce.com/document/klarna-payments/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/klarna-payments/?utm_source=help_panel&utm_medium=product',
},
paymentGatewaySuggestions.payfast && {
title: __( 'Payfast Setup and Configuration', 'woocommerce' ),
link: 'https://woocommerce.com/document/payfast-payment-gateway/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/payfast-payment-gateway/?utm_source=help_panel&utm_medium=product',
},
paymentGatewaySuggestions.eway && {
title: __( 'Eway Setup and Configuration', 'woocommerce' ),
link: 'https://woocommerce.com/document/eway/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/eway/?utm_source=help_panel&utm_medium=product',
},
{
title: __( 'Direct Bank Transfer (BACS)', 'woocommerce' ),
link: 'https://woocommerce.com/document/bacs/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/bacs/?utm_source=help_panel&utm_medium=product',
},
{
title: __( 'Cash on Delivery', 'woocommerce' ),
link: 'https://woocommerce.com/document/cash-on-delivery/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/cash-on-delivery/?utm_source=help_panel&utm_medium=product',
},
].filter( Boolean );
}
@ -167,22 +167,22 @@ function getProductsItems() {
return [
{
title: __( 'Adding and Managing Products', 'woocommerce' ),
link: 'https://woocommerce.com/document/managing-products/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/managing-products/?utm_source=help_panel&utm_medium=product',
},
{
title: __(
'Import products using the CSV Importer and Exporter',
'woocommerce'
),
link: 'https://woocommerce.com/document/product-csv-importer-exporter/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/product-csv-importer-exporter/?utm_source=help_panel&utm_medium=product',
},
{
title: __( 'Migrate products using Cart2Cart', 'woocommerce' ),
link: 'https://woocommerce.com/products/cart2cart/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/products/cart2cart/?utm_source=help_panel&utm_medium=product',
},
{
title: __( 'Learn more about setting up products', 'woocommerce' ),
link: 'https://woocommerce.com/documentation/plugins/woocommerce/getting-started/setup-products/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/documentation/plugins/woocommerce/getting-started/setup-products/?utm_source=help_panel&utm_medium=product',
},
];
}
@ -194,29 +194,29 @@ function getShippingItems( { activePlugins, countryCode } ) {
return [
{
title: __( 'Setting up Shipping Zones', 'woocommerce' ),
link: 'https://woocommerce.com/document/setting-up-shipping-zones/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/setting-up-shipping-zones/?utm_source=help_panel&utm_medium=product',
},
{
title: __( 'Core Shipping Options', 'woocommerce' ),
link: 'https://woocommerce.com/documentation/plugins/woocommerce/getting-started/shipping/core-shipping-options/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/documentation/plugins/woocommerce/getting-started/shipping/core-shipping-options/?utm_source=help_panel&utm_medium=product',
},
{
title: __( 'Product Shipping Classes', 'woocommerce' ),
link: 'https://woocommerce.com/document/product-shipping-classes/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/product-shipping-classes/?utm_source=help_panel&utm_medium=product',
},
showWCS && {
title: __(
'WooCommerce Shipping setup and configuration',
'woocommerce'
),
link: 'https://woocommerce.com/document/woocommerce-shipping-and-tax/?utm_source=help_panel&utm_medium=product#section-3',
link: 'https://woo.com/document/woocommerce-shipping-and-tax/?utm_source=help_panel&utm_medium=product#section-3',
},
{
title: __(
'Learn more about configuring your shipping settings',
'woocommerce'
),
link: 'https://woocommerce.com/document/plugins/woocommerce/getting-started/shipping/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/plugins/woocommerce/getting-started/shipping/?utm_source=help_panel&utm_medium=product',
},
].filter( Boolean );
}
@ -244,14 +244,14 @@ function getTaxItems( props ) {
return [
{
title: __( 'Setting up Taxes in WooCommerce', 'woocommerce' ),
link: 'https://woocommerce.com/document/setting-up-taxes-in-woocommerce/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/document/setting-up-taxes-in-woocommerce/?utm_source=help_panel&utm_medium=product',
},
showWCS && {
title: __(
'Automated Tax calculation using WooCommerce Tax',
'woocommerce'
),
link: 'https://woocommerce.com/document/woocommerce-services/?utm_source=help_panel&utm_medium=product#section-10',
link: 'https://woo.com/document/woocommerce-services/?utm_source=help_panel&utm_medium=product#section-10',
},
].filter( Boolean );
}
@ -295,7 +295,7 @@ function getListItems( props ) {
const itemsByType = getItems( props );
const genericDocsLink = {
title: __( 'WooCommerce Docs', 'woocommerce' ),
link: 'https://woocommerce.com/documentation/?utm_source=help_panel&utm_medium=product',
link: 'https://woo.com/documentation/?utm_source=help_panel&utm_medium=product',
};
itemsByType.push( genericDocsLink );

View File

@ -77,7 +77,7 @@ export const IntroOptIn = ( {
components: {
link: (
<Link
href="https://woocommerce.com/usage-tracking?utm_medium=product"
href="https://woo.com/usage-tracking?utm_medium=product"
target="_blank"
type="external"
/>

View File

@ -22,8 +22,8 @@ const plugins = [
key: 'jetpack',
label: 'Enhance security with Jetpack',
image_url:
'https://woocommerce.com/wp-content/plugins/wccom-plugins/obw-free-extensions/images/core-profiler/logo-jetpack.svg',
learn_more_link: 'https://woocommerce.com/products/jetpack',
'https://woo.com/wp-content/plugins/wccom-plugins/obw-free-extensions/images/core-profiler/logo-jetpack.svg',
learn_more_link: 'https://woo.com/products/jetpack',
install_priority: 8,
is_installed: true,
is_activated: true,
@ -33,14 +33,14 @@ const plugins = [
name: 'Pinterest for WooCommerce',
description: 'Get your products in front of a highly engaged audience.',
image_url:
'https://woocommerce.com/wp-content/plugins/wccom-plugins/obw-free-extensions/images/core-profiler/logo-pinterest.svg',
'https://woo.com/wp-content/plugins/wccom-plugins/obw-free-extensions/images/core-profiler/logo-pinterest.svg',
manage_url: 'admin.php?page=wc-admin&path=%2Fpinterest%2Flanding',
is_built_by_wc: true,
min_php_version: '7.3',
key: 'pinterest-for-woocommerce',
label: 'Showcase your products with Pinterest',
learn_more_link:
'https://woocommerce.com/products/pinterest-for-woocommerce',
'https://woo.com/products/pinterest-for-woocommerce',
install_priority: 2,
is_visible: true,
is_installed: false,

View File

@ -454,7 +454,7 @@ Object {
I agree to share my data to tailor my store setup experience and get more relevant content (WooCommerce will never rent or sell your data, and you can opt out at any time in WooCommerce settings.
<a
data-link-type="external"
href="https://woocommerce.com/usage-tracking?utm_medium=product"
href="https://woo.com/usage-tracking?utm_medium=product"
target="_blank"
>
Learn more about usage tracking.
@ -599,7 +599,7 @@ Object {
I agree to share my data to tailor my store setup experience and get more relevant content (WooCommerce will never rent or sell your data, and you can opt out at any time in WooCommerce settings.
<a
data-link-type="external"
href="https://woocommerce.com/usage-tracking?utm_medium=product"
href="https://woo.com/usage-tracking?utm_medium=product"
target="_blank"
>
Learn more about usage tracking.
@ -974,7 +974,7 @@ Object {
I agree to share my data to tailor my store setup experience and get more relevant content (WooCommerce will never rent or sell your data, and you can opt out at any time in WooCommerce settings.
<a
data-link-type="external"
href="https://woocommerce.com/usage-tracking?utm_medium=product"
href="https://woo.com/usage-tracking?utm_medium=product"
target="_blank"
>
Learn more about usage tracking.
@ -1119,7 +1119,7 @@ Object {
I agree to share my data to tailor my store setup experience and get more relevant content (WooCommerce will never rent or sell your data, and you can opt out at any time in WooCommerce settings.
<a
data-link-type="external"
href="https://woocommerce.com/usage-tracking?utm_medium=product"
href="https://woo.com/usage-tracking?utm_medium=product"
target="_blank"
>
Learn more about usage tracking.
@ -1881,7 +1881,7 @@ Object {
I agree to share my data to tailor my store setup experience and get more relevant content (WooCommerce will never rent or sell your data, and you can opt out at any time in WooCommerce settings.
<a
data-link-type="external"
href="https://woocommerce.com/usage-tracking?utm_medium=product"
href="https://woo.com/usage-tracking?utm_medium=product"
target="_blank"
>
Learn more about usage tracking.
@ -2026,7 +2026,7 @@ Object {
I agree to share my data to tailor my store setup experience and get more relevant content (WooCommerce will never rent or sell your data, and you can opt out at any time in WooCommerce settings.
<a
data-link-type="external"
href="https://woocommerce.com/usage-tracking?utm_medium=product"
href="https://woo.com/usage-tracking?utm_medium=product"
target="_blank"
>
Learn more about usage tracking.

View File

@ -42,7 +42,7 @@ class CartModal extends Component {
} );
const url = getInAppPurchaseUrl(
'https://woocommerce.com/cart?utm_medium=product',
'https://woo.com/cart?utm_medium=product',
{
'wccom-replace-with': productIds.join( ',' ),
}

View File

@ -26,7 +26,7 @@ export const getSteps = (): TourKitTypes.WooStep[] => {
descriptions: {
desktop: createInterpolateElement(
__(
"Power up your store by adding extra functionality with extensions or integrate your store with other software and services.<br/><br/>Here you'll find hundreds of trusted solutions for your store — all reviewed and approved by the Woo team.<br/><br/>You can also browse the Woo Marketplace at WooCommerce.com.",
"Power up your store by adding extra functionality with extensions or integrate your store with other software and services.<br/><br/>Here you'll find hundreds of trusted solutions for your store — all reviewed and approved by the Woo team.<br/><br/>You can also browse the Woo Marketplace at Woo.com.",
'woocommerce'
),
{
@ -113,14 +113,14 @@ export const getSteps = (): TourKitTypes.WooStep[] => {
descriptions: {
desktop: createInterpolateElement(
__(
"All of your Woo Marketplace purchases can be found here, or on WooCommerce.com.<br/><br/>Every purchase is backed by our <a1>30-day money-back guarantee</a1>, and includes <a2>email and live chat support</a2>.<br/><br/>That's it! You're now ready to power up your store.",
"All of your Woo Marketplace purchases can be found here, or on Woo.com.<br/><br/>Every purchase is backed by our <a1>30-day money-back guarantee</a1>, and includes <a2>email and live chat support</a2>.<br/><br/>That's it! You're now ready to power up your store.",
'woocommerce'
),
{
a1: createElement(
'a',
{
href: 'https://woocommerce.com/refund-policy/',
href: 'https://woo.com/refund-policy/',
'aria-label': __(
'Refund policy',
'woocommerce'
@ -134,7 +134,7 @@ export const getSteps = (): TourKitTypes.WooStep[] => {
a2: createElement(
'a',
{
href: 'https://woocommerce.com/my-account/create-a-ticket/',
href: 'https://woo.com/my-account/create-a-ticket/',
'aria-label': __(
'Contact support',
'woocommerce'

View File

@ -8,7 +8,7 @@ export const MobileAppInstallationInfo = () => {
<div>
<QRCodeSVG
value={
'https://woocommerce.com/mobile/?utm_source=wc_onboarding_mobile_task'
'https://woo.com/mobile/?utm_source=wc_onboarding_mobile_task'
}
size={ 140 }
/>

View File

@ -35,7 +35,7 @@ export const MobileAppLoginInfo = ( {
components: {
link: (
<Link
href="https://woocommerce.com/document/android-ios-apps-login-help-faq/"
href="https://woo.com/document/android-ios-apps-login-help-faq/"
target="_blank"
type="external"
onClick={ () => {

View File

@ -41,7 +41,7 @@ export const MobileAppLoginStepper = ( {
key: 'first',
label: __( 'Install the mobile app', 'woocommerce' ),
description: __(
'Scan the code below to download or upgrade the app, or visit woocommerce.com/mobile from your mobile device.',
'Scan the code below to download or upgrade the app, or visit woo.com/mobile from your mobile device.',
'woocommerce'
),
content: (

View File

@ -29,7 +29,7 @@ jest.mock( '~/marketing/hooks', () => ( {
const google = {
id: 'google-ads',
icon: 'https://woocommerce.com/wp-content/uploads/2021/06/woo-GoogleListingsAds-jworee.png',
icon: 'https://woo.com/wp-content/uploads/2021/06/woo-GoogleListingsAds-jworee.png',
name: 'Google Ads',
description:
'Boost your product listings with a campaign that is automatically optimized to meet your goals.',
@ -43,9 +43,9 @@ const pinterest = {
title: 'Pinterest for WooCommerce',
description:
'Grow your business on Pinterest! Use this official plugin to allow shoppers to Pin products while browsing your store, track conversions, and advertise on Pinterest.',
url: 'https://woocommerce.com/products/pinterest-for-woocommerce/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons',
url: 'https://woo.com/products/pinterest-for-woocommerce/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons',
direct_install: true,
icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/pinterest.svg',
icon: 'https://woo.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/pinterest.svg',
product: 'pinterest-for-woocommerce',
plugin: 'pinterest-for-woocommerce/pinterest-for-woocommerce.php',
categories: [ 'marketing' ],
@ -63,9 +63,9 @@ const amazon = {
title: 'Amazon, eBay & Walmart Integration for WooCommerce',
description:
'Convert WooCommerce into a fully-featured omnichannel commerce platform, leveraging powerful automation and real-time sync to connect your brand with millions of new customers on the worlds largest online marketplaces.',
url: 'https://woocommerce.com/products/amazon-ebay-integration/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons',
url: 'https://woo.com/products/amazon-ebay-integration/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons',
direct_install: false,
icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/amazon-ebay.svg',
icon: 'https://woo.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/amazon-ebay.svg',
product: 'amazon-ebay-integration',
plugin: 'woocommerce-amazon-ebay-integration/woocommerce-amazon-ebay-integration.php',
categories: [ 'marketing' ],

View File

@ -15,7 +15,7 @@ const ReadBlogMessage = () => {
link: (
<Link
type="external"
href="https://woocommerce.com/blog/marketing/coupons/?utm_medium=product"
href="https://woo.com/blog/marketing/coupons/?utm_medium=product"
target="_blank"
/>
),

View File

@ -17,21 +17,21 @@ const mockPosts = [
{
title: 'WooCommerce Blog Post 1',
date: '2020-05-28T15:00:00',
link: 'https://woocommerce.com/posts/woo-blog-post-1/',
link: 'https://woo.com/posts/woo-blog-post-1/',
author_name: 'John Doe',
author_avatar: 'https://avatar.domain/avatar1.png',
},
{
title: 'WooCommerce Blog Post 2',
date: '2020-04-29T12:00:00',
link: 'https://woocommerce.com/posts/woo-blog-post-2/',
link: 'https://woo.com/posts/woo-blog-post-2/',
author_name: 'Jane Doe',
author_avatar: 'https://avatar.domain/avatar2.png',
},
{
title: 'WooCommerce Blog Post 3',
date: '2020-03-29T12:00:00',
link: 'https://woocommerce.com/posts/woo-blog-post-3/',
link: 'https://woo.com/posts/woo-blog-post-3/',
author_name: 'Jim Doe',
author_avatar: 'https://avatar.domain/avatar3.png',
},
@ -392,7 +392,7 @@ describe( 'Page with single post', () => {
{
title: 'WooCommerce Blog Post 1',
date: '2020-05-28T15:00:00',
link: 'https://woocommerce.com/posts/woo-blog-post-1/',
link: 'https://woo.com/posts/woo-blog-post-1/',
author_name: 'John Doe',
author_avatar: 'https://avatar.domain/avatar1.png',
},

View File

@ -18,7 +18,7 @@ const mockExtensions = [
{
title: 'AutomateWoo',
description: 'Does things.',
url: 'https://woocommerce.com/products/automatewoo/',
url: 'https://woo.com/products/automatewoo/',
icon: 'icons/automatewoo.svg',
product: 'automatewoo',
plugin: 'automatewoo/automatewoo.php',
@ -26,7 +26,7 @@ const mockExtensions = [
{
title: 'Mailchimp for WooCommerce',
description: 'Does things.',
url: 'https://woocommerce.com/products/mailchimp-for-woocommerce/',
url: 'https://woo.com/products/mailchimp-for-woocommerce/',
icon: 'icons/mailchimp.svg',
product: 'mailchimp-for-woocommerce',
plugin: 'mailchimp-for-woocommerce/mailchimp-woocommerce.php',
@ -160,7 +160,7 @@ describe( 'Click Recommendations', () => {
title={ 'AutomateWoo' }
description={ 'Does things.' }
icon={ 'icons/automatewoo.svg' }
url={ 'https://woocommerce.com/products/automatewoo/' }
url={ 'https://woo.com/products/automatewoo/' }
product={ 'automatewoo' }
category={ 'marketing' }
/>

View File

@ -35,7 +35,7 @@ const createTestCampaign = ( programId: string ) => {
description: '',
cost: `USD 30`,
manageUrl: `https://wc1.test/wp-admin/admin.php?page=wc-admin&path=/google/dashboard&subpath=/campaigns/edit&programId=${ programId }`,
icon: 'https://woocommerce.com/wp-content/uploads/2021/06/woo-GoogleListingsAds-jworee.png',
icon: 'https://woo.com/wp-content/uploads/2021/06/woo-GoogleListingsAds-jworee.png',
channelName: 'Google Listings and Ads',
channelSlug: 'google-listings-and-ads',
};
@ -203,7 +203,7 @@ describe( 'Campaigns component', () => {
create_url:
'https://wc1.test/wp-admin/admin.php?page=wc-admin&path=/google/dashboard&subpath=/campaigns/create',
icon_url:
'https://woocommerce.com/wp-content/uploads/2021/06/woo-GoogleListingsAds-jworee.png',
'https://woo.com/wp-content/uploads/2021/06/woo-GoogleListingsAds-jworee.png',
},
],
} );

View File

@ -69,9 +69,9 @@ describe( 'DiscoverTools component', () => {
title: 'Google Listings and Ads',
description:
'Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.',
url: 'https://woocommerce.com/products/google-listings-and-ads/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons',
url: 'https://woo.com/products/google-listings-and-ads/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons',
direct_install: true,
icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/google.svg',
icon: 'https://woo.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/google.svg',
product: 'google-listings-and-ads',
plugin: 'google-listings-and-ads/google-listings-and-ads.php',
categories: [ 'marketing' ],
@ -116,9 +116,9 @@ describe( 'DiscoverTools component', () => {
title: 'WooCommerce Zapier',
description:
'Integrate your WooCommerce store with 5000+ cloud apps and services today. Trusted by 11,000+ users.',
url: 'https://woocommerce.com/products/woocommerce-zapier/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons',
url: 'https://woo.com/products/woocommerce-zapier/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons',
direct_install: false,
icon: 'https://woocommerce.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/zapier.png',
icon: 'https://woo.com/wp-content/plugins/wccom-plugins/marketing-tab-rest-api/icons/zapier.png',
product: 'woocommerce-zapier',
plugin: 'woocommerce-zapier/woocommerce-zapier.php',
categories: [ 'marketing' ],

View File

@ -50,7 +50,7 @@ export const DiscoverTools = () => {
</div>
<Button
variant="tertiary"
href="https://woocommerce.com/product-category/woocommerce-extensions/marketing-extensions/"
href="https://woo.com/product-category/woocommerce-extensions/marketing-extensions/"
onClick={ () => {
recordEvent( 'marketing_explore_more_extensions' );
} }

View File

@ -75,25 +75,25 @@ describe( 'LearnMarketing component', () => {
{
title: 'Grow Your Store with an Omnichannel Presence',
date: '2022-09-21T19:46:40',
link: 'https://woocommerce.com/posts/grow-store-omnichannel-ecommerce/',
link: 'https://woo.com/posts/grow-store-omnichannel-ecommerce/',
author_name: 'Kathryn Marr',
author_avatar:
'https://secure.gravatar.com/avatar/431b87d722d366103cc5d9b26c66c665?s=96&d=mm&r=g',
image: 'https://woocommerce.com/wp-content/uploads/2022/09/blog-fb-Omnichannel@2x.jpg?resize=650,340&crop=1',
image: 'https://woo.com/wp-content/uploads/2022/09/blog-fb-Omnichannel@2x.jpg?resize=650,340&crop=1',
},
{
title: 'What is Affiliate Marketing and How to Use it to Make More Money Online',
date: '2022-08-30T22:03:54',
link: 'https://woocommerce.com/posts/what-is-affliate-marketing/',
link: 'https://woo.com/posts/what-is-affliate-marketing/',
author_name: 'Kathryn Marr',
author_avatar:
'https://secure.gravatar.com/avatar/431b87d722d366103cc5d9b26c66c665?s=96&d=mm&r=g',
image: 'https://woocommerce.com/wp-content/uploads/2022/08/blog-fb-Affiliate@2x.jpg?resize=650,340&crop=1',
image: 'https://woo.com/wp-content/uploads/2022/08/blog-fb-Affiliate@2x.jpg?resize=650,340&crop=1',
},
{
title: 'Ten Customer Retention Strategies to Boost Revenue for eCommerce Stores',
date: '2022-06-22T17:58:12',
link: 'https://woocommerce.com/posts/10-ecommerce-customer-retention-strategies-boost-revenue/',
link: 'https://woo.com/posts/10-ecommerce-customer-retention-strategies-boost-revenue/',
author_name: 'Craig Cohen',
author_avatar:
'https://secure.gravatar.com/avatar/66c306ae543fb47f594ef9b9cdb88d93?s=96&d=mm&r=g',
@ -101,11 +101,11 @@ describe( 'LearnMarketing component', () => {
{
title: 'TikTok Marketing: A Guide for WooCommerce Stores',
date: '2022-05-25T14:03:00',
link: 'https://woocommerce.com/posts/tiktok-marketing-a-guide-for-woocommerce-stores/',
link: 'https://woo.com/posts/tiktok-marketing-a-guide-for-woocommerce-stores/',
author_name: 'Elina Vilk',
author_avatar:
'https://secure.gravatar.com/avatar/fc7aedb0e531795eeffa3654ce203a8e?s=96&d=mm&r=g',
image: 'https://woocommerce.com/wp-content/uploads/2022/05/Facebook-Post-1200x630@2x3.jpg?resize=650,340&crop=1',
image: 'https://woo.com/wp-content/uploads/2022/05/Facebook-Post-1200x630@2x3.jpg?resize=650,340&crop=1',
},
],
} );

View File

@ -1,5 +1,5 @@
export const DEFAULT_TAB_KEY = 'discover';
export const MARKETPLACE_HOST = 'https://woocommerce.com';
export const MARKETPLACE_HOST = 'https://woo.com';
export const MARKETPLACE_PATH = '/extensions';
export const MARKETPLACE_SEARCH_API_PATH =
'/wp-json/wccom-extensions/1.0/search';

View File

@ -110,7 +110,7 @@ export default function HeaderAccount(): JSX.Element {
className="woocommerce-marketplace__menu-icon"
/>
{ __(
'WooCommerce.com account',
'Woo.com account',
'woocommerce'
) }
</MenuItem>

View File

@ -94,7 +94,7 @@ async function fetchJsonWithCache(
} );
}
// Fetch search results for a given set of URLSearchParams from the WooCommerce.com API
// Fetch search results for a given set of URLSearchParams from the Woo.com API
async function fetchSearchResults(
params: URLSearchParams,
abortSignal?: AbortSignal
@ -138,7 +138,7 @@ async function fetchSearchResults(
} );
}
// Fetch data for the discover page from the WooCommerce.com API
// Fetch data for the discover page from the Woo.com API
async function fetchDiscoverPageData(): Promise< ProductGroup[] > {
let url = '/wc/v3/marketplace/featured';

View File

@ -35,7 +35,7 @@ export const apms: Apm[] = [
title: strings.apms.paypal.title,
icon: `${ WC_ASSET_URL }images/payment_methods/72x72/paypal.png`,
description: strings.apms.paypal.description,
link: 'https://woocommerce.com/products/woocommerce-paypal-payments/',
link: 'https://woo.com/products/woocommerce-paypal-payments/',
extension: 'woocommerce-paypal-payments',
},
{
@ -43,7 +43,7 @@ export const apms: Apm[] = [
title: strings.apms.amazonpay.title,
icon: `${ WC_ASSET_URL }images/payment_methods/72x72/amazonpay.png`,
description: strings.apms.amazonpay.description,
link: 'https://woocommerce.com/products/pay-with-amazon/',
link: 'https://woo.com/products/pay-with-amazon/',
extension: 'woocommerce-gateway-amazon-payments-advanced',
},
{
@ -51,7 +51,7 @@ export const apms: Apm[] = [
title: strings.apms.klarna.title,
icon: `${ WC_ASSET_URL }images/payment_methods/72x72/klarna.png`,
description: strings.apms.klarna.description,
link: 'https://woocommerce.com/products/klarna-payments/',
link: 'https://woo.com/products/klarna-payments/',
extension: 'klarna-payments-for-woocommerce',
},
];
@ -124,7 +124,7 @@ const ApmList: React.FunctionComponent< ApmListProps > = ( {
<List items={ apmsList } />
</CardBody>
<CardFooter>
<ExternalLink href="https://woocommerce.com/product-category/woocommerce-extensions/payment-gateways/wallets/?categoryIds=28682&collections=product&page=1">
<ExternalLink href="https://woo.com/product-category/woocommerce-extensions/payment-gateways/wallets/?categoryIds=28682&collections=product&page=1">
{ strings.apms.seeMore }
</ExternalLink>
</CardFooter>

View File

@ -15,7 +15,7 @@ const FrequentlyAskedQuestionsSimple: React.FC = () => {
<Icon icon={ help } />
<span>{ strings.faq.haveQuestions } </span>
<a
href="https://www.woocommerce.com/my-account/tickets/"
href="https://woo.com/my-account/tickets/"
target="_blank"
rel="noreferrer"
>

View File

@ -26,7 +26,7 @@ import { getPluginSlug } from '~/utils';
import { isWcPaySupported } from './utils';
const SEE_MORE_LINK =
'https://woocommerce.com/product-category/woocommerce-extensions/payment-gateways/?utm_source=payments_recommendations';
'https://woo.com/product-category/woocommerce-extensions/payment-gateways/?utm_source=payments_recommendations';
const WcPayPromotionGateway = document.querySelector(
'[data-gateway_id="pre_install_woocommerce_payments_promotion"]'

View File

@ -38,7 +38,7 @@ export const AttributesSectionFills = () => (
</span>
<Link
className="woocommerce-form-section__header-link"
href="https://woocommerce.com/document/managing-product-taxonomies/#product-attributes"
href="https://woo.com/document/managing-product-taxonomies/#product-attributes"
target="_blank"
type="external"
onClick={ () => {

View File

@ -38,7 +38,7 @@ export const ImagesSectionFills = () => (
</span>
<Link
className="woocommerce-form-section__header-link"
href="https://woocommerce.com/posts/fast-high-quality-product-photos/"
href="https://woo.com/posts/fast-high-quality-product-photos/"
target="_blank"
type="external"
onClick={ () => {

View File

@ -156,7 +156,7 @@ export const PricingSaleField: React.FC< PricingListFieldProps > = ( {
),
moreLink: (
<Link
href="https://woocommerce.com/document/managing-products/#product-data"
href="https://woo.com/document/managing-products/#product-data"
target="_blank"
type="external"
onClick={ () =>

View File

@ -59,7 +59,7 @@ export const PricingTaxesClassField = () => {
components: {
link: (
<Link
href="https://woocommerce.com/document/setting-up-taxes-in-woocommerce/#shipping-tax-class"
href="https://woo.com/document/setting-up-taxes-in-woocommerce/#shipping-tax-class"
target="_blank"
type="external"
>

View File

@ -121,7 +121,7 @@ export const PricingSectionFills: React.FC< PricingSectionFillsType > = ( {
</span>
<Link
className="woocommerce-form-section__header-link"
href="https://woocommerce.com/posts/how-to-price-products-strategies-expert-tips/"
href="https://woo.com/posts/how-to-price-products-strategies-expert-tips/"
target="_blank"
type="external"
onClick={ () => {

View File

@ -48,7 +48,7 @@ export const ProductVariationsSection: React.FC = () => {
</span>
<Link
className="woocommerce-form-section__header-link"
href="https://woocommerce.com/posts/product-variations-display/"
href="https://woo.com/posts/product-variations-display/"
target="_blank"
type="external"
onClick={ () => {

View File

@ -87,7 +87,7 @@ const BlockEditorGuide = ( { onCloseGuide }: BlockEditorGuideProps ) => {
className="woocommerce-block-editor-guide"
contentLabel=""
finishButtonText={ __( 'Tell me more', 'woocommerce' ) }
finishButtonLink="https://woocommerce.com/product-form-beta"
finishButtonLink="https://woo.com/product-form-beta"
onFinish={ onCloseGuide }
pages={ pages }
/>

View File

@ -129,7 +129,7 @@ export const isSellingElsewhere = ( selectedOption ) =>
].includes( selectedOption );
const getWccomMigrationUrl = ( selectedOption ) => {
return `https://woocommerce.com/migrate/?utm_source=nux&utm_medium=product&utm_campaign=migrate&utm_content=${ selectedOption }`;
return `https://woo.com/migrate/?utm_source=nux&utm_medium=product&utm_campaign=migrate&utm_content=${ selectedOption }`;
};
export const isSellingOtherPlatformInPerson = ( selectedOption ) =>

View File

@ -147,14 +147,14 @@ const BundleExtensionCheckbox = ( {
if (
! link ||
! event.currentTarget.contains( link ) ||
! link.href.startsWith( 'https://woocommerce.com/products/' )
! link.href.startsWith( 'https://woo.com/products/' )
) {
return;
}
recordEvent( 'storeprofiler_store_business_features_link_click', {
extension_name: link.href.split(
'https://woocommerce.com/products/'
'https://woo.com/products/'
)[ 1 ],
} );
};

View File

@ -17,7 +17,7 @@ const testProps = {
paidProduct: {
description: 'Paid product type',
label: 'Paid product',
more_url: 'https://woocommerce.com/paid-product',
more_url: 'https://woo.com/paid-product',
product: 100,
slug: 'paid-product',
yearly_price: 120,

View File

@ -14,7 +14,7 @@ const defaultProps = {
annualPrice: 120,
label: 'Product type label',
description: 'Product type description',
moreUrl: 'https://woocommerce.com/my-product-type',
moreUrl: 'https://woo.com/my-product-type',
slug: 'my-product-type',
};

View File

@ -116,7 +116,7 @@ class UsageModal extends Component {
components: {
link: (
<Link
href="https://woocommerce.com/usage-tracking?utm_medium=product"
href="https://woo.com/usage-tracking?utm_medium=product"
target="_blank"
type="external"
/>

View File

@ -27,7 +27,7 @@ const { Fill, Slot } = createSlotFill( '__EXPERIMENTAL__WcAdminConflictError' );
const LearnMore = () => (
<Button
href="https://woocommerce.com/document/setting-up-taxes-in-woocommerce/"
href="https://woo.com/document/setting-up-taxes-in-woocommerce/"
target="_blank"
>
{ __( 'Learn more', 'woocommerce' ) }

View File

@ -49,7 +49,7 @@ const WooCommerceServicesItem: React.FC< {
'woocommerce'
) }
<br />
<ExternalLink href="https://woocommerce.com/woocommerce-shipping/">
<ExternalLink href="https://woo.com/woocommerce-shipping/">
{ __( 'Learn more', 'woocommerce' ) }
</ExternalLink>
</span>

View File

@ -82,7 +82,7 @@ export const ShippingRecommendationsList: React.FC = ( { children } ) => (
<CardFooter>
<Button
className="woocommerce-recommended-shipping-extensions__more_options_cta"
href="https://woocommerce.com/product-category/woocommerce-extensions/shipping-methods/?utm_source=shipping_recommendations"
href="https://woo.com/product-category/woocommerce-extensions/shipping-methods/?utm_source=shipping_recommendations"
target="_blank"
isTertiary
>

View File

@ -66,7 +66,7 @@ const WooCommerceServicesItem: React.FC< {
'woocommerce'
) }
<br />
<ExternalLink href="https://woocommerce.com/woocommerce-shipping/">
<ExternalLink href="https://woo.com/woocommerce-shipping/">
{ __( 'Learn more', 'woocommerce' ) }
</ExternalLink>
</span>

View File

@ -38,7 +38,7 @@ export const UsageModal = () => {
components: {
link: (
<Link
href="https://woocommerce.com/usage-tracking?utm_medium=product"
href="https://woo.com/usage-tracking?utm_medium=product"
target="_blank"
type="external"
/>

View File

@ -231,7 +231,7 @@ export const PaymentGatewaySuggestions = ( { onComplete, query } ) => {
markConfigured={ markConfigured }
footerLink={
<Button
href="https://woocommerce.com/product-category/woocommerce-extensions/payment-gateways/?utm_source=payments_recommendations"
href="https://woo.com/product-category/woocommerce-extensions/payment-gateways/?utm_source=payments_recommendations"
target="_blank"
onClick={ trackSeeMore }
isTertiary

View File

@ -28,7 +28,7 @@ export const LoadSampleProductConfirmModal: React.VFC< Props > = ( {
>
<Text className="woocommerce-confirmation-modal__message">
{ __(
"We'll import images from woocommerce.com to set up your sample products.",
"We'll import images from Woo.com to set up your sample products.",
'woocommerce'
) }
</Text>

View File

@ -19,7 +19,7 @@ global.fetch = jest.fn().mockImplementation( () =>
);
const confirmModalText =
"We'll import images from woocommerce.com to set up your sample products.";
"We'll import images from Woo.com to set up your sample products.";
describe( 'Products', () => {
beforeEach( () => {

View File

@ -38,7 +38,7 @@ global.fetch = jest.fn().mockImplementation( () =>
jest.mock( '@woocommerce/tracks', () => ( { recordEvent: jest.fn() } ) );
const confirmModalText =
"We'll import images from woocommerce.com to set up your sample products.";
"We'll import images from Woo.com to set up your sample products.";
describe( 'Products', () => {
beforeEach( () => {

View File

@ -315,7 +315,7 @@ export class Shipping extends Component {
components: {
link: (
<Link
href="https://woocommerce.com/products/shipstation-integration?utm_medium=product"
href="https://woo.com/products/shipstation-integration?utm_medium=product"
target="_blank"
type="external"
/>

View File

@ -63,7 +63,7 @@ export const Card: React.FC< TaxChildProps > = ( { task } ) => {
window.open(
new URL(
'https://woocommerce.com/products/woocommerce-avatax/'
'https://woo.com/products/woocommerce-avatax/'
).toString(),
'_blank'
);

View File

@ -49,7 +49,7 @@ export const Configure: React.FC<
components: {
link: (
<Link
href="https://woocommerce.com/document/setting-up-taxes-in-woocommerce/?utm_medium=product#section-1"
href="https://woo.com/document/setting-up-taxes-in-woocommerce/?utm_medium=product#section-1"
target="_blank"
type="external"
>

View File

@ -74,7 +74,7 @@ const BetaFeaturesTrackingModal = ( { updateOptions } ) => {
'Testing new features requires sharing non-sensitive data via ',
'woocommerce'
) }
<a href="https://woocommerce.com/usage-tracking?utm_medium=product">
<a href="https://woo.com/usage-tracking?utm_medium=product">
{ __( 'usage tracking', 'woocommerce' ) }
</a>
{ __(

View File

@ -12,7 +12,7 @@ const PAYMENT_METHOD_PROMOTIONS = [
{
gatewayId: 'pre_install_woocommerce_payments_promotion',
pluginSlug: 'woocommerce-payments',
url: 'https://woocommerce.com/payments/?utm_medium=product',
url: 'https://woo.com/payments/?utm_medium=product',
},
];

View File

@ -422,7 +422,7 @@ export class ShippingBanner extends Component {
),
wcsLink: (
<ExternalLink
href="https://woocommerce.com/products/shipping/?utm_medium=product"
href="https://woo.com/products/shipping/?utm_medium=product"
target="_blank"
type="external"
onClick={

View File

@ -6,4 +6,4 @@
- [Features](features/)
- [Layout](layout.md)
- [Page Controller](page-controller.md)
- [woocommerce.com](woocommerce.com/)
- [Woo.com](https://woo.com/)

Some files were not shown because too many files have changed in this diff Show More