migrating images out of docs folder (#42851)
* migrating images out of docs folder Migrating images from '_media' folders to developer.woo.com/docs media folder and removing media folders and image files from docs folder. * Delete 73 results - 16 files.md
|
@ -205,7 +205,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 we're modifying, green text is the name of our custom function, and red is the priority we set.
|
In the example below, blue text is the name of the hook we're modifying, green text is the name of our custom function, and red is the priority we set.
|
||||||
|
|
||||||
![Setting priority for the hooked function](https://woo.com/wp-content/uploads/2012/04/priority-markup.png)
|
![Setting priority for the hooked function](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/priority-markup.png)
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
@ -294,7 +294,7 @@ function my_custom_checkout_field_display_admin_order_meta($order){
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
![It's alive!](https://woo.com/wp-content/uploads/2012/04/WooCommerce-Codex-Shipping-Field-Hook.png)
|
![adding custom sthipping and billing fields](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/Webp-to-PNG-Shipping-Field-Hook.png)
|
||||||
|
|
||||||
It's alive!
|
It's alive!
|
||||||
|
|
||||||
|
@ -332,7 +332,7 @@ function my_custom_checkout_field( $checkout ) {
|
||||||
|
|
||||||
This gives us:
|
This gives us:
|
||||||
|
|
||||||
![WooCommerce Codex - Checkout Field Hook](https://woo.com/wp-content/uploads/2012/04/WooCommerce-Codex-Checkout-Field-Hook.png)
|
![WooCommerce Codex - Checkout Field Hook](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/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:
|
Next we need to validate the field when the checkout form is posted. For this example the field is required and not optional:
|
||||||
|
|
||||||
|
@ -352,7 +352,7 @@ function my_custom_checkout_field_process() {
|
||||||
|
|
||||||
A checkout error is displayed if the field is blank:
|
A checkout error is displayed if the field is blank:
|
||||||
|
|
||||||
![WooCommerce Codex - Checkout Field Notice](https://woo.com/wp-content/uploads/2012/04/WooCommerce-Codex-Checkout-Field-Notice.png)
|
![WooCommerce Codex - Checkout Field Notice](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/WooCommerce-Codex-Checkout-Field-Notice.png)
|
||||||
|
|
||||||
Finally, let's save the new field to order custom fields using the following code:
|
Finally, let's save the new field to order custom fields using the following code:
|
||||||
|
|
||||||
|
@ -386,7 +386,7 @@ function my_custom_checkout_field_display_admin_order_meta( $order ){
|
||||||
|
|
||||||
This is the result:
|
This is the result:
|
||||||
|
|
||||||
[![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)
|
![checkout_field_custom_field_admin](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/checkout_field_custom_field_admin.png)
|
||||||
|
|
||||||
### Make phone number not required
|
### Make phone number not required
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ post_title: WooCommerce Git flow
|
||||||
|
|
||||||
For core development, we use the following structure and flow.
|
For core development, we use the following structure and flow.
|
||||||
|
|
||||||
![Git Flow](https://woocommerce.files.wordpress.com/2023/10/flow-1.png)
|
![Git Flow WooCommerce uses for core development](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/flow-1.png)
|
||||||
|
|
||||||
## Branches
|
## Branches
|
||||||
|
|
||||||
|
|
|
@ -72,4 +72,4 @@ addFilter(
|
||||||
|
|
||||||
Here's a screen shot using our new custom store management link:
|
Here's a screen shot using our new custom store management link:
|
||||||
|
|
||||||
![screen shot of custom store management link in wp-admin](https://i.imgur.com/yvXeSya.png)
|
![screen shot of custom store management link in wp-admin](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/yvXeSya.png)
|
||||||
|
|
|
@ -39,7 +39,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.
|
The URL for each endpoint can be customized in **WooCommerce > Settings > Advanced** in the Page setup section.
|
||||||
|
|
||||||
![Endpoints](https://woo.com/wp-content/uploads/2014/02/endpoints.png)
|
![Endpoints](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/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.
|
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.
|
||||||
|
|
||||||
|
@ -47,7 +47,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:
|
If you want to include an endpoint in your menus, you need to use the Links section:
|
||||||
|
|
||||||
![2014-02-26 at 14.26](https://woo.com/wp-content/uploads/2014/02/2014-02-26-at-14.26.png)
|
![The Links section of a menu iteam in WordPress](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/2014-02-26-at-14.26.png)
|
||||||
|
|
||||||
Enter the full URL to the endpoint and then insert that into your menu.
|
Enter the full URL to the endpoint and then insert that into your menu.
|
||||||
|
|
||||||
|
@ -105,4 +105,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.
|
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://woo.com/wp-content/uploads/2023/04/Screenshot-2023-04-09-at-11.45.58-PM.png?w=650)
|
![Account endpoints](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/Screenshot-2023-04-09-at-11.45.58-PM.png)
|
||||||
|
|
|
@ -126,27 +126,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.
|
- 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://woo.com/wp-content/uploads/2023/10/image-18.png?w=650)
|
![Select WordPress Post Tables](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/image-18.png)
|
||||||
|
|
||||||
- If you select **“High-Performance Order Storage”**, the system will save the order data within the new WooCommerce order tables
|
- 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://woo.com/wp-content/uploads/2023/10/image-19.png?w=650)
|
![Select High-Performance Order Storage](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/image-19.png)
|
||||||
|
|
||||||
- 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.
|
- 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://woo.com/wp-content/uploads/2023/10/image-20.png?w=650)
|
![Select WordPress Post Tables and Enable compatibility mode](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/image-20.png)
|
||||||
|
|
||||||
|
|
||||||
## [Incompatible Plugins](https://github.com/woocommerce/woocommerce/blob/trunk/docs/high-performance-order-storage/#section-9)
|
## [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**.
|
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://woo.com/wp-content/uploads/2023/10/image-21.png?w=650)
|
![Incompatible plugin](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/image-21.png)
|
||||||
|
|
||||||
- You can click on “**View and manage**” to review the list of incompatible plugins
|
- 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)
|
- 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://woo.com/wp-content/uploads/2023/10/image-22.png?w=650)
|
![Plugins page](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/image-22.png)
|
||||||
|
|
||||||
> **Note:** If you are using a third-party extension that isn't 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. It's up to the extension developers to add support for HPOS. We have [developer resources and documentation](https://developer.woo.com/2022/09/14/high-performance-order-storage-progress-report/) available to help with their integration efforts.
|
> **Note:** If you are using a third-party extension that isn't 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. It's up to the extension developers to add support for HPOS. We have [developer resources and documentation](https://developer.woo.com/2022/09/14/high-performance-order-storage-progress-report/) available to help with their integration efforts.
|
||||||
|
|
||||||
|
@ -157,7 +157,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.
|
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://woo.com/wp-content/uploads/2023/10/hpos-feature-settings.png?w=650)
|
![WooCommerce ▸ Settings ▸ Advanced ▸ Features Screen](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/hpos-feature-settings.png)
|
||||||
|
|
||||||
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!
|
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!
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ To activate High-Performance Order Storage, existing stores will first need to g
|
||||||
1/ Navigate to **WooCommerce > Settings > Advanced > Features**
|
1/ Navigate to **WooCommerce > Settings > Advanced > Features**
|
||||||
2/ Turn on the **“Enable compatibility mode (synchronizes orders to the posts table)”** setting.
|
2/ Turn on the **“Enable compatibility mode (synchronizes orders to the posts table)”** setting.
|
||||||
|
|
||||||
![Enable HPOS Screen](https://woo.com/wp-content/uploads/2023/10/New-Project-4.jpg?w=650)
|
![Enable HPOS Screen](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/New-Project-4.jpg)
|
||||||
|
|
||||||
3/ Once this setting is activated, background actions will be scheduled.
|
3/ Once this setting is activated, background actions will be scheduled.
|
||||||
|
|
||||||
|
@ -18,8 +18,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.
|
- 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.
|
- 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://woo.com/wp-content/uploads/2023/10/2.jpg?w=650)
|
![wc_schedule_pending_batch_process Screen](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/2.jpg)
|
||||||
![wc_run_batch_process Screen](https://woo.com/wp-content/uploads/2023/10/New-Project-5.jpg?w=650)
|
![wc_run_batch_process Screen](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/New-Project-5.jpg)
|
||||||
|
|
||||||
4/ After both tables are successfully synchronized, you'll be able to select the option to switch to High-Performance Order Storage (HPOS).
|
4/ After both tables are successfully synchronized, you'll be able to select the option to switch to High-Performance Order Storage (HPOS).
|
||||||
|
|
||||||
|
|
|
@ -32,19 +32,17 @@ If you're new to translating, check out the [translators handbook](https://make.
|
||||||
1. Go to [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/woocommerce) and look for your language in the list.
|
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.
|
2. Click the title to be taken to the section for that language.
|
||||||
|
|
||||||
![screenshot](https://woo.com/wp-content/uploads/2012/01/2016-02-17-at-09.57.png)
|
![screenshot of WooCommerce translation page on wordpress.org](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/2016-02-17-at-09.57.png)
|
||||||
|
|
||||||
3. Click the heading under `Set/Sub Project` to view and download a Stable version.
|
3. Click the heading under `Set/Sub Project` to view and download a Stable version.
|
||||||
|
|
||||||
![screenshot](https://woo.com/wp-content/uploads/2012/01/2016-02-17-at-09.59.png)
|
![list of versions available for selected language](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/2016-02-17-at-09.59.png)
|
||||||
|
|
||||||
4. Scroll to the bottom for export options. Export a `.mo` file for use on your site.
|
4. Scroll to the bottom for export options. Export a `.mo` file for use on your site.
|
||||||
|
|
||||||
![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.
|
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://woo.com/wp-content/uploads/2023/10/Screenshot-2023-10-17-at-09.44.53.png)
|
![screenshot of plugin card with associated language code](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/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.
|
6. Upload to your site under `wp-content/languages/woocommerce/`. Once uploaded, this translation file may be used.
|
||||||
|
|
||||||
|
@ -61,12 +59,12 @@ To get started:
|
||||||
1. Open PoEdit and select `Create new translation from POT template`.
|
1. Open PoEdit and select `Create new translation from POT template`.
|
||||||
2. Choose `woocommerce.pot` and PoEdit will show the catalog properties window.
|
2. Choose `woocommerce.pot` and PoEdit will show the catalog properties window.
|
||||||
|
|
||||||
![screenshot](https://woo.com/wp-content/uploads/2012/01/Screen-Shot-2013-05-09-at-10.16.46.png)
|
![screenshot](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/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`.
|
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.
|
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://woo.com/wp-content/uploads/2012/01/Screen-Shot-2013-05-09-at-10.20.58.png)
|
![screenshot](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/Screen-Shot-2013-05-09-at-10.20.58.png)
|
||||||
|
|
||||||
5. Save after translating strings. The `.mo` file is generated automatically.
|
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`.
|
6. Update your `.po` file by opening it and then go to `Catalog » Update from POT file`.
|
||||||
|
@ -118,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:
|
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://woo.com/wp-content/uploads/2012/01/not_translated.jpg)
|
![checkout page with some strings not translated](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/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.
|
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.
|
||||||
|
|
||||||
|
@ -155,8 +153,8 @@ If some of your translated strings don't show up as expected on your WooCommerce
|
||||||
|
|
||||||
This screenshot shows that the Singular translation is available:
|
This screenshot shows that the Singular translation is available:
|
||||||
|
|
||||||
![screenshot](https://woo.com/wp-content/uploads/2023/10/Screenshot-2023-10-17-at-10.10.06.png)
|
![This screenshot shows that the Singular translation is available:](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/Screenshot-2023-10-17-at-10.10.06.png)
|
||||||
|
|
||||||
While this screenshot shows that the Plural translation is not available:
|
While this screenshot shows that the Plural translation is not available:
|
||||||
|
|
||||||
![screenshot](https://woo.com/wp-content/uploads/2023/10/Screenshot-2023-10-17-at-10.10.21.png)
|
![this screenshot shows that the Plural translation is not available](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/Screenshot-2023-10-17-at-10.10.21.png)
|
||||||
|
|
|
@ -8,7 +8,7 @@ This handbook is a guide for extension developers looking to add support for the
|
||||||
|
|
||||||
The product editor's UI consists of Groups (currently rendered as tabs), Sections, and Fields, which are all blocks. For guidelines on how to extend the product editor (e.g. where to add blocks), please refer to the [Product Editor Extensibility Guidelines](./product-editor-extensibility-guidelines.md).
|
The product editor's UI consists of Groups (currently rendered as tabs), Sections, and Fields, which are all blocks. For guidelines on how to extend the product editor (e.g. where to add blocks), please refer to the [Product Editor Extensibility Guidelines](./product-editor-extensibility-guidelines.md).
|
||||||
|
|
||||||
![Product editor structure](https://woocommerce.files.wordpress.com/2023/09/groups-sections-fields.jpg)
|
![Product editor structure](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/groups-sections-fields.jpg)
|
||||||
|
|
||||||
The form's structure is defined in PHP using a Template, which is a tree structure of blocks. The template can be modified by using the Template API to add new Groups, Sections, and Fields as well as remove existing ones.
|
The form's structure is defined in PHP using a Template, which is a tree structure of blocks. The template can be modified by using the Template API to add new Groups, Sections, and Fields as well as remove existing ones.
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ Like everything in the new product form, each extension point is a separate bloc
|
||||||
|
|
||||||
The new product form consists of groups currently displayed as tabs. Each is a separate view and may contain any number of sections and subsections. All areas serve a specific purpose, allowing merchants to quickly find the information they're looking for (both in default Woo features and extensions).
|
The new product form consists of groups currently displayed as tabs. Each is a separate view and may contain any number of sections and subsections. All areas serve a specific purpose, allowing merchants to quickly find the information they're looking for (both in default Woo features and extensions).
|
||||||
|
|
||||||
![Product form groups](https://woocommerce.files.wordpress.com/2023/11/product-editor-ext-guidelines-form-groups.gif)
|
![Product form groups](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/product-editor-ext-guidelines-form-groups.gif)
|
||||||
|
|
||||||
If a tab doesn't contain any sections, it won't be shown to merchants.
|
If a tab doesn't contain any sections, it won't be shown to merchants.
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ With so much advanced functionality, the plugin would best register a new produc
|
||||||
|
|
||||||
### Fields
|
### Fields
|
||||||
|
|
||||||
![Fields example](https://woocommerce.files.wordpress.com/2023/11/product-editor-ext-guidelines-fields.png)
|
![Fields example](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/product-editor-ext-guidelines-fields.png)
|
||||||
|
|
||||||
Fields are the simplest type of extension. They let users add extra product information, replace or manage the visibility of other fields assigned to a specific product type, and control the contents of other fields.
|
Fields are the simplest type of extension. They let users add extra product information, replace or manage the visibility of other fields assigned to a specific product type, and control the contents of other fields.
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ Field extensions should always be logically related to the form area they are in
|
||||||
|
|
||||||
### Subsections
|
### Subsections
|
||||||
|
|
||||||
![Subsections example](https://woocommerce.files.wordpress.com/2023/11/product-editor-ext-guidelines-subsections.png)
|
![Subsections example](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/product-editor-ext-guidelines-subsections.png)
|
||||||
|
|
||||||
Subsections add extra fields to existing form groups. They are small forms with a low to medium level of complexity. This interface location works best for extensions that add extra features that build off an existing Woo functionality.
|
Subsections add extra fields to existing form groups. They are small forms with a low to medium level of complexity. This interface location works best for extensions that add extra features that build off an existing Woo functionality.
|
||||||
|
|
||||||
|
@ -150,7 +150,7 @@ If you're developing an extension that allows merchants to upload 360 images or
|
||||||
|
|
||||||
### Sections
|
### Sections
|
||||||
|
|
||||||
![Sections example](https://woocommerce.files.wordpress.com/2023/11/product-editor-ext-guidelines-sections.png)
|
![Sections example](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/product-editor-ext-guidelines-sections.png)
|
||||||
|
|
||||||
Sections are significant parts of the form that may consist of multiple subsections and fields. They should be used sparsely throughout the form, so merchants are not overwhelmed with options while filling out the information about their products.
|
Sections are significant parts of the form that may consist of multiple subsections and fields. They should be used sparsely throughout the form, so merchants are not overwhelmed with options while filling out the information about their products.
|
||||||
|
|
||||||
|
@ -178,7 +178,7 @@ If you're working on an extension that allows merchants to offer discounts based
|
||||||
|
|
||||||
### Top bar (header) *(future feature)*
|
### Top bar (header) *(future feature)*
|
||||||
|
|
||||||
![Top bar example](https://woocommerce.files.wordpress.com/2023/11/product-editor-ext-guidelines-top-bar.png)
|
![Top bar example](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/product-editor-ext-guidelines-top-bar.png)
|
||||||
|
|
||||||
Top bar extensions offer supplementary experiences **not vital** to the critical product creation flows. They're secondary, meaning that they shouldn't contain information that may impact the product's overall quality or completeness.
|
Top bar extensions offer supplementary experiences **not vital** to the critical product creation flows. They're secondary, meaning that they shouldn't contain information that may impact the product's overall quality or completeness.
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ Depending on their roles, top bar extensions can be displayed in either a **popo
|
||||||
|
|
||||||
### Dialog extensions *(future feature)*
|
### Dialog extensions *(future feature)*
|
||||||
|
|
||||||
![Dialog example](https://woocommerce.files.wordpress.com/2023/11/product-editor-ext-guidelines-dialog-extensions.png)
|
![Dialog example](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/product-editor-ext-guidelines-dialog-extensions.png)
|
||||||
|
|
||||||
Dialog extensions differ from other extensions as they are unrelated to any section or functionality within the product form. They can connect to third-party systems or come with complex interfaces that require a separate, focused experience.
|
Dialog extensions differ from other extensions as they are unrelated to any section or functionality within the product form. They can connect to third-party systems or come with complex interfaces that require a separate, focused experience.
|
||||||
|
|
||||||
|
|
|
@ -81,11 +81,11 @@ Therefore, a PR could have testing instructions for multiple scenarios, in fact,
|
||||||
|
|
||||||
#### Example 1
|
#### Example 1
|
||||||
|
|
||||||
![Sample of good quality instructions](https://woocommerce.files.wordpress.com/2023/10/213682695-3dc51613-b836-4e7e-93ef-f75078ab48ac.png)
|
![Sample of good quality instructions](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/213682695-3dc51613-b836-4e7e-93ef-f75078ab48ac.png)
|
||||||
|
|
||||||
#### Example 2
|
#### Example 2
|
||||||
|
|
||||||
![Another sample of good quality instructions](https://woocommerce.files.wordpress.com/2023/10/213682778-b552ab07-a518-48a7-9358-16adc5762aca.png)
|
![Another sample of good quality instructions](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/213682778-b552ab07-a518-48a7-9358-16adc5762aca.png)
|
||||||
|
|
||||||
### Improving real testing instructions
|
### Improving real testing instructions
|
||||||
|
|
||||||
|
@ -93,48 +93,48 @@ In this section, you will see some real examples of testing instructions that ha
|
||||||
|
|
||||||
Before:
|
Before:
|
||||||
|
|
||||||
![Instructions needing improvement](https://woocommerce.files.wordpress.com/2023/10/213682262-25bec5c3-154c-45ec-aa3d-d3e07f52669e.png)
|
![Instructions needing improvement](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/213682262-25bec5c3-154c-45ec-aa3d-d3e07f52669e.png)
|
||||||
|
|
||||||
After:
|
After:
|
||||||
|
|
||||||
![Improved instructions](https://woocommerce.files.wordpress.com/2023/10/213682303-1b12ab97-f27a-41cb-a8db-da8a78d18840.png)
|
![Improved instructions](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/213682303-1b12ab97-f27a-41cb-a8db-da8a78d18840.png)
|
||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
![Changes made](https://woocommerce.files.wordpress.com/2023/10/213682323-0ecc998d-69ab-4201-8daa-820b948315e8.png)
|
![Changes made](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/213682323-0ecc998d-69ab-4201-8daa-820b948315e8.png)
|
||||||
|
|
||||||
Before:
|
Before:
|
||||||
|
|
||||||
![Instructions needing improvement](https://woocommerce.files.wordpress.com/2023/10/213682396-8c52d20e-1fca-4ac1-8345-f381c15a102a.png)
|
![Instructions needing improvement](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/213682396-8c52d20e-1fca-4ac1-8345-f381c15a102a.png)
|
||||||
|
|
||||||
After:
|
After:
|
||||||
|
|
||||||
![Improved instructions](https://woocommerce.files.wordpress.com/2023/10/213682480-c01e0e84-5969-4456-8f43-70cbb8509e8d.png)
|
![Improved instructions](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/213682480-c01e0e84-5969-4456-8f43-70cbb8509e8d.png)
|
||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
![Changes made](https://woocommerce.files.wordpress.com/2023/10/213682597-8d06e638-35dd-4ff8-9236-63c6ec5d05b8.jpg)
|
![Changes made](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/213682597-8d06e638-35dd-4ff8-9236-63c6ec5d05b8.jpg)
|
||||||
|
|
||||||
Before:
|
Before:
|
||||||
|
|
||||||
![Screenshot 2023-02-02 at 16 07 29](https://woocommerce.files.wordpress.com/2023/10/216365611-b540a814-3b8f-40f3-ae64-81018b9f97fb.png)
|
![example before providing improved instructions](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/216365611-b540a814-3b8f-40f3-ae64-81018b9f97fb.png)
|
||||||
|
|
||||||
After:
|
After:
|
||||||
|
|
||||||
![Screenshot 2023-02-02 at 16 22 31](https://woocommerce.files.wordpress.com/2023/10/216366043-967e5daa-6a23-4ab8-adda-5f3082d1ebf7.png)
|
![example after providing improved instructions](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/216366043-967e5daa-6a23-4ab8-adda-5f3082d1ebf7.png)
|
||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
![Screenshot 2023-02-02 at 16 09 24](https://woocommerce.files.wordpress.com/2023/10/216366152-b331648d-bcef-443b-b126-de2621a20862.png)
|
![example of improvements](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/216366152-b331648d-bcef-443b-b126-de2621a20862.png)
|
||||||
|
|
||||||
Before:
|
Before:
|
||||||
|
|
||||||
![Screenshot 2023-02-02 at 17 25 07](https://woocommerce.files.wordpress.com/2023/10/216388785-8806ea74-62e6-42da-8887-c8e291e7dfe2-1.png)
|
![example before providing improved instructions](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/216388785-8806ea74-62e6-42da-8887-c8e291e7dfe2-1.png)
|
||||||
|
|
||||||
After:
|
After:
|
||||||
|
|
||||||
![Screenshot 2023-02-02 at 17 49 22](https://woocommerce.files.wordpress.com/2023/10/216388842-e5ab433e-d288-4306-862f-72f6f81ab2cd.png)
|
![example after providing improved instructions](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/216388842-e5ab433e-d288-4306-862f-72f6f81ab2cd.png)
|
||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
![Screenshot 2023-02-02 at 17 39 23](https://woocommerce.files.wordpress.com/2023/10/216388874-c5b21fc3-f693-4a7e-a58a-c5d1b6606682.png)
|
![example of improvements](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/216388874-c5b21fc3-f693-4a7e-a58a-c5d1b6606682.png)
|
|
@ -43,7 +43,7 @@ Next, set up some orders to have sample data. Using WooCommerce > Settings > Cur
|
||||||
|
|
||||||
After doing so, check out WC-Admin to make sure the orders are showing up by going to `/wp-admin/admin.php?page=wc-admin&period=today&path=%2Fanalytics%2Forders&compare=previous_year`. Note that without any modification currency figures show according to what I have currently in WooCommerce settings, which is New Zealand Dollar in this case.
|
After doing so, check out WC-Admin to make sure the orders are showing up by going to `/wp-admin/admin.php?page=wc-admin&period=today&path=%2Fanalytics%2Forders&compare=previous_year`. Note that without any modification currency figures show according to what I have currently in WooCommerce settings, which is New Zealand Dollar in this case.
|
||||||
|
|
||||||
![screenshot of wp-admin showing processing orders](https://woocommerce.files.wordpress.com/2020/02/screen-shot-2020-02-19-at-12.11.34-pm.png?w=851)
|
![screenshot of wp-admin showing processing orders](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/screen-shot-2020-02-19-at-12.11.34-pm.png?w=851)
|
||||||
|
|
||||||
We can confirm each order's currency by running the following query on the `wp_posts` table and joining `wp_postmeta` to gather currency meta values. Results show an order in NZD, USD, and MXN. This query is similar to the one we'll implement later in the guide to gather and display currency values.
|
We can confirm each order's currency by running the following query on the `wp_posts` table and joining `wp_postmeta` to gather currency meta values. Results show an order in NZD, USD, and MXN. This query is similar to the one we'll implement later in the guide to gather and display currency values.
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ ORDER BY wp_posts.post_date DESC
|
||||||
LIMIT 3
|
LIMIT 3
|
||||||
```
|
```
|
||||||
|
|
||||||
![screenshot of resulting query](https://woocommerce.files.wordpress.com/2020/02/screen-shot-2020-02-19-at-12.33.45-pm.png?w=756)
|
![screenshot of resulting query](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/screen-shot-2020-02-19-at-12.33.45-pm.png?w=756)
|
||||||
|
|
||||||
## Add a UI dropdown
|
## Add a UI dropdown
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ add_action( 'init', 'add_currency_settings' );
|
||||||
|
|
||||||
In the console, you can confirm the data has safely made its way to the client.
|
In the console, you can confirm the data has safely made its way to the client.
|
||||||
|
|
||||||
![screnshot of console](https://woocommerce.files.wordpress.com/2020/02/screen-shot-2020-02-19-at-1.11.50-pm.png?w=476)
|
![screnshot of console](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/screen-shot-2020-02-19-at-1.11.50-pm.png?w=476)
|
||||||
|
|
||||||
In `index.js` create the custom currency filter and add it the Orders Report.
|
In `index.js` create the custom currency filter and add it the Orders Report.
|
||||||
|
|
||||||
|
@ -128,7 +128,7 @@ addFilter(
|
||||||
|
|
||||||
If we check out the Orders Report, we can see our new dropdown. Play around with it and you'll notice the currency query parameter gets added to the url. If you check out the Network tab, you'll also see this value included in requests for data used to populate the report. For example, see the requests to orders stats endpoint, `/wp-json/wc-analytics/reports/orders/stats`. Next we'll use that query parameter to adjust report results.
|
If we check out the Orders Report, we can see our new dropdown. Play around with it and you'll notice the currency query parameter gets added to the url. If you check out the Network tab, you'll also see this value included in requests for data used to populate the report. For example, see the requests to orders stats endpoint, `/wp-json/wc-analytics/reports/orders/stats`. Next we'll use that query parameter to adjust report results.
|
||||||
|
|
||||||
![screenshot showing UI dropdown in wp-admin](https://woocommerce.files.wordpress.com/2020/02/screen-shot-2020-02-19-at-1.16.44-pm.png?w=512)
|
![screenshot showing UI dropdown in wp-admin](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/screen-shot-2020-02-19-at-1.16.44-pm.png?w=512)
|
||||||
|
|
||||||
## Handle currency parameters on the server
|
## Handle currency parameters on the server
|
||||||
|
|
||||||
|
@ -205,7 +205,7 @@ add_filter( 'woocommerce_analytics_clauses_select_orders_stats_interval', 'add_s
|
||||||
|
|
||||||
Lets head back to the Orders Report and see if it works. You can manipulate the dropdown and see the relevant order reflected in the table.
|
Lets head back to the Orders Report and see if it works. You can manipulate the dropdown and see the relevant order reflected in the table.
|
||||||
|
|
||||||
![screenshot of WooCommerce Orders tab in wp-admin showing the relevant order reflected in the table.](https://woocommerce.files.wordpress.com/2020/02/screen-shot-2020-02-19-at-1.38.54-pm.png?w=585)
|
![screenshot of WooCommerce Orders tab in wp-admin showing the relevant order reflected in the table.](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/screen-shot-2020-02-19-at-1.38.54-pm.png?w=585)
|
||||||
|
|
||||||
## Finishing touches
|
## Finishing touches
|
||||||
|
|
||||||
|
@ -245,15 +245,15 @@ const addTableColumn = (reportTableData) => {
|
||||||
addFilter("woocommerce_admin_report_table", "dev-blog-example", addTableColumn);
|
addFilter("woocommerce_admin_report_table", "dev-blog-example", addTableColumn);
|
||||||
```
|
```
|
||||||
|
|
||||||
![screenshot of customized table](https://woocommerce.files.wordpress.com/2020/02/screen-shot-2020-02-19-at-4.02.15-pm.png?w=861)
|
![screenshot of customized table](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/screen-shot-2020-02-19-at-4.02.15-pm.png?w=861)
|
||||||
|
|
||||||
While adding a column is certainly helpful, currency figures in the table and chart only reflect the store currency.
|
While adding a column is certainly helpful, currency figures in the table and chart only reflect the store currency.
|
||||||
|
|
||||||
![screenshot of report](https://woocommerce.files.wordpress.com/2020/02/screen-shot-2020-02-19-at-4.03.42-pm.png?w=865)
|
![screenshot of report](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/screen-shot-2020-02-19-at-4.03.42-pm.png?w=865)
|
||||||
|
|
||||||
In order to change a Report's currency and number formatting, we can make use of the `woocommerce_admin_report_currency` JS hook. You can see the store's default sent to the client in `wcSettings.currency`, but we'll need to change these depending on the currency being viewed and designated by the query parameter `?currency=NZD`.
|
In order to change a Report's currency and number formatting, we can make use of the `woocommerce_admin_report_currency` JS hook. You can see the store's default sent to the client in `wcSettings.currency`, but we'll need to change these depending on the currency being viewed and designated by the query parameter `?currency=NZD`.
|
||||||
|
|
||||||
![screenshot of currency settings](https://woocommerce.files.wordpress.com/2020/04/screen-shot-2020-04-03-at-11.18.42-am.png?w=238)
|
![screenshot of currency settings](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/screen-shot-2020-04-03-at-11.18.42-am.png?w=238)
|
||||||
|
|
||||||
First, lets create some configs in index.js.
|
First, lets create some configs in index.js.
|
||||||
|
|
||||||
|
@ -297,7 +297,7 @@ addFilter(
|
||||||
|
|
||||||
🎉 We can now view our Orders Report and see the currency reflected in monetary values throughout the report.
|
🎉 We can now view our Orders Report and see the currency reflected in monetary values throughout the report.
|
||||||
|
|
||||||
![Screenshot of customized order report](https://woocommerce.files.wordpress.com/2020/04/screen-shot-2020-04-03-at-11.29.05-am.png?w=912)
|
![Screenshot of customized order report](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/screen-shot-2020-04-03-at-11.29.05-am.png?w=912)
|
||||||
|
|
||||||
## Conclusion
|
## Conclusion
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 154 KiB |
Before Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 126 KiB |
Before Width: | Height: | Size: 133 KiB |
Before Width: | Height: | Size: 50 KiB |
|
@ -8,7 +8,7 @@ The REST API is a powerful part of WooCommerce which lets you read and write var
|
||||||
|
|
||||||
In order to access the REST API using the standard endpoint URI structure (e.g. `wc/v3/products`), you must have your WordPress permalinks configured to something other than "Plain". Go to **Settings > Permalinks** and choose an option.
|
In order to access the REST API using the standard endpoint URI structure (e.g. `wc/v3/products`), you must have your WordPress permalinks configured to something other than "Plain". Go to **Settings > Permalinks** and choose an option.
|
||||||
|
|
||||||
![Permalinks options](_media/permalinks.webp)
|
![Permalinks options](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/permalinks.webp)
|
||||||
|
|
||||||
## API reference
|
## API reference
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ To start using REST API, you first need to generate API keys.
|
||||||
4. Click *Generate api key*.
|
4. Click *Generate api key*.
|
||||||
5. Your keys will be shown - do not close this tab yet, the secret will be hidden if you try to view the key again.
|
5. Your keys will be shown - do not close this tab yet, the secret will be hidden if you try to view the key again.
|
||||||
|
|
||||||
![Generated API Keys](_media/keys.png)
|
![Generated API Keys](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/keys.png)
|
||||||
|
|
||||||
## Make a basic request
|
## Make a basic request
|
||||||
|
|
||||||
|
@ -42,11 +42,11 @@ In Postman, you need to set the fields for request type, request URL, and the se
|
||||||
|
|
||||||
Once done, hit send and you'll see the JSON response from the API if all worked well. You should see something like this:
|
Once done, hit send and you'll see the JSON response from the API if all worked well. You should see something like this:
|
||||||
|
|
||||||
![Generated API Keys](_media/postman.png)
|
![Generated API Keys](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/postman.png)
|
||||||
|
|
||||||
Insomnia is almost identical to Postman; fill in the same fields and again use basic auth.
|
Insomnia is almost identical to Postman; fill in the same fields and again use basic auth.
|
||||||
|
|
||||||
![Insomnia](_media/insomnia.png)
|
![Insomnia](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/insomnia.png)
|
||||||
|
|
||||||
Thats it! The API is working.
|
Thats it! The API is working.
|
||||||
|
|
||||||
|
@ -58,15 +58,15 @@ If you have problems connecting, you may need to disable SSL verification - see
|
||||||
|
|
||||||
If you're having problems connecting to the REST API on your localhost and seeing errors like this:
|
If you're having problems connecting to the REST API on your localhost and seeing errors like this:
|
||||||
|
|
||||||
![SSL Error](_media/sslerror.png)
|
![SSL Error](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/sslerror.png)
|
||||||
|
|
||||||
You need to disable SSL verification. In Postman you can find this in the settings:
|
You need to disable SSL verification. In Postman you can find this in the settings:
|
||||||
|
|
||||||
![Postman settings](_media/postman-ssl.png)
|
![Postman settings](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/postman-ssl.png)
|
||||||
|
|
||||||
Insomnia also has this setting the preferences area:
|
Insomnia also has this setting the preferences area:
|
||||||
|
|
||||||
![Insomnia settings](_media/insomnia-ssl.png)
|
![Insomnia settings](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/insomnia-ssl.png)
|
||||||
|
|
||||||
### 401 Unauthorized
|
### 401 Unauthorized
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ Alternatively, you can select and use a different theme that already uses curren
|
||||||
You need to determine what templates to update, make a backup of the old templates, and then restore any customizations.
|
You need to determine what templates to update, make a backup of the old templates, and then restore any customizations.
|
||||||
|
|
||||||
1. Go to WooCommerce > Status > System Status. Scroll to the end of the page where there is a list of templates overridden by your theme/child theme and a warning message that they need to be updated. In the example below, the templates `form-pay.php` and `form-login.php` are outdated:
|
1. Go to WooCommerce > Status > System Status. Scroll to the end of the page where there is a list of templates overridden by your theme/child theme and a warning message that they need to be updated. In the example below, the templates `form-pay.php` and `form-login.php` are outdated:
|
||||||
![An example for outdated templates.](_media/fix_outdated_theme_templates.png)
|
![An example for outdated templates.](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/fix_outdated_theme_templates.png)
|
||||||
2. Save a backup of the outdated template.
|
2. Save a backup of the outdated template.
|
||||||
3. Copy the default template from `wp-content/plugins/woocommerce/templates/[path-to-the-template]` and paste it in your theme folder found at `wp-content/themes/[path-to-theme]`.
|
3. Copy the default template from `wp-content/plugins/woocommerce/templates/[path-to-the-template]` and paste it in your theme folder found at `wp-content/themes/[path-to-theme]`.
|
||||||
4. Open the template you pasted into the theme folder with a text editor, such as Sublime, Visual Code, BBEdit, Notepad++, and replicate any changes that you had to the previous template in your new, updated template file.
|
4. Open the template you pasted into the theme folder with a text editor, such as Sublime, Visual Code, BBEdit, Notepad++, and replicate any changes that you had to the previous template in your new, updated template file.
|
||||||
|
|
|
@ -20,7 +20,7 @@ Use short but meaningful messages that communicate what is happening. Ensure tha
|
||||||
|
|
||||||
The placement of feedback is vital so the user notices it. For example, when validation messages are needed to prompt the user to enter data, get the user's attention by displaying a message close to the inputs where data needs to be revised.
|
The placement of feedback is vital so the user notices it. For example, when validation messages are needed to prompt the user to enter data, get the user's attention by displaying a message close to the inputs where data needs to be revised.
|
||||||
|
|
||||||
![visualization of four different notice designs next to one another](https://woocommerce.files.wordpress.com/2023/10/notices1.png)
|
![visualization of four different notice designs next to one another](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/notices1.png)
|
||||||
|
|
||||||
**Success** message: When the user performs an action that is executed successfully.
|
**Success** message: When the user performs an action that is executed successfully.
|
||||||
|
|
||||||
|
@ -32,4 +32,4 @@ The placement of feedback is vital so the user notices it. For example, when val
|
||||||
|
|
||||||
### Examples
|
### Examples
|
||||||
|
|
||||||
![an example of an informational message as a notice](https://woocommerce.files.wordpress.com/2023/10/informational-notice.png)
|
![an example of an informational message as a notice](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/informational-notice.png)
|
||||||
|
|
|
@ -10,7 +10,7 @@ Use the Task List and Inbox sparingly. Messages should be clear, concise, and ma
|
||||||
|
|
||||||
### Task List
|
### Task List
|
||||||
|
|
||||||
![an example of a task in the task list](https://woocommerce.files.wordpress.com/2023/10/task-list1.png)
|
![an example of a task in the task list](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/task-list1.png)
|
||||||
|
|
||||||
Anything that **requires** action should go in the task list.
|
Anything that **requires** action should go in the task list.
|
||||||
|
|
||||||
|
@ -27,13 +27,13 @@ Anything that **requires** action should go in the task list.
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
![three tasks in the task list under the heading "Things to do next" with the option to expand at the bottom to "show 3 more tasks" ](https://woocommerce.files.wordpress.com/2023/10/task-list-example.png)
|
![three tasks in the task list under the heading "Things to do next" with the option to expand at the bottom to "show 3 more tasks" ](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/task-list-example.png)
|
||||||
|
|
||||||
### Inbox
|
### Inbox
|
||||||
|
|
||||||
The Inbox provides informational, useful, and supplemental content to the user, while important notices and setup tasks have their separate and relevant locations.
|
The Inbox provides informational, useful, and supplemental content to the user, while important notices and setup tasks have their separate and relevant locations.
|
||||||
|
|
||||||
![an example of an inbox notification](https://woocommerce.files.wordpress.com/2023/10/inbox1.png)
|
![an example of an inbox notification](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/inbox1.png)
|
||||||
|
|
||||||
- *What appears in the Inbox*:
|
- *What appears in the Inbox*:
|
||||||
- Informational notices such as non-critical reminders.
|
- Informational notices such as non-critical reminders.
|
||||||
|
@ -47,4 +47,4 @@ The Inbox provides informational, useful, and supplemental content to the user,
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
![an example of two inbox notifications listed under the "Inbox" section of the admin](https://woocommerce.files.wordpress.com/2023/10/inbox-examples.png)
|
![an example of two inbox notifications listed under the "Inbox" section of the admin](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/inbox-examples.png)
|
||||||
|
|
Before Width: | Height: | Size: 212 KiB |
|
@ -8,7 +8,7 @@ WooCommerce has its own robust system for logging, which can be used for debuggi
|
||||||
|
|
||||||
Depending on the log handler(s) used, you can view the entries created by the logger by going to **WooCommerce > Status > Logs**.
|
Depending on the log handler(s) used, you can view the entries created by the logger by going to **WooCommerce > Status > Logs**.
|
||||||
|
|
||||||
![Log file viewer](_media/log-critical.jpg)
|
![Log file viewer](https://woo-docs-multi-com.go-vip.net/wp-content/uploads/2023/12/log-critical.jpg)
|
||||||
|
|
||||||
## Log levels
|
## Log levels
|
||||||
|
|
||||||
|
|