Updated Release Testing Instructions WooCommerce 6.1 (markdown)
parent
5de72e25aa
commit
85fd268af7
|
@ -3,6 +3,7 @@ WooCommerce 6.1 includes:
|
|||
- [WooCommerce Admin Updates](https://github.com/woocommerce/woocommerce/wiki/Release-Testing-Instructions-WooCommerce-6.1#woocommerce-admin-updates)
|
||||
- [WooCommerce Blocks Updates](https://github.com/woocommerce/woocommerce/wiki/Release-Testing-Instructions-WooCommerce-6.1#woocommerce-blocks-updates)
|
||||
- [WooCommerce Core Updates](https://github.com/woocommerce/woocommerce/wiki/Release-Testing-Instructions-WooCommerce-6.1#woocommerce-core-updates)
|
||||
- [WooCommerce API Updates](https://github.com/woocommerce/woocommerce/wiki/Release-Testing-Instructions-WooCommerce-6.1#woocommerce-api-updates)
|
||||
|
||||
## WooCommerce Admin Updates:
|
||||
|
||||
|
@ -97,3 +98,86 @@ Make sure the `debug` level is selected to be able to see the messages:
|
|||
4. Update the order (click "update").
|
||||
5. Verify there is not a new note indicating the stock level has been reduced again.
|
||||
6. Verify the product inventory levels have not changed (beyond the restocking) by checking the product edit screen.
|
||||
|
||||
## WooCommerce API Updates:
|
||||
|
||||
### Fix taxes endpoint returning incorrect X-WP-Total and X-WP-TotalPages headers [#30890](https://github.com/woocommerce/woocommerce/pull/30890)
|
||||
|
||||
1. On a previous version of WooCommerce, such as 6.0, create more than 10 tax rates
|
||||
2. Make an API call to list the existing tax rates: `GET {base_url}/wp-json/wc/v3/taxes`
|
||||
3. Note that the headers `x-wp-total` always returns 10 and `x-wp-totalpages` always returns 1
|
||||
4. Update to WooCommerce 6.1 and make the same API request
|
||||
5. Note that the headers `x-wp-total` now returns the number of tax rates you created and `x-wp-totalpages` always returns the number of pages based on the number of tax rates (10 per page)
|
||||
|
||||
### Consistently Store Coupon Data in Order Item Meta [#31338](https://github.com/woocommerce/woocommerce/pull/31338)
|
||||
|
||||
1. Ensure you have a coupon you can apply to a new order
|
||||
2. Ensure you have a product you can add to the order
|
||||
3. Create a new order via the REST API (`POST https://example.com/wp-json/wc/v3/orders`):
|
||||
```json
|
||||
{
|
||||
"status": "on-hold",
|
||||
"currency": "USD",
|
||||
"payment_method": "cod",
|
||||
"payment_method_title": "Cash on Delivery",
|
||||
"line_items": [
|
||||
{
|
||||
"product_id": 5,
|
||||
"quantity": 1
|
||||
}
|
||||
],
|
||||
"coupon_lines": [
|
||||
{
|
||||
"code": "couponcode"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
4. Verify that the resulting order response has `meta_data` in the `coupon_lines` that contains data like:
|
||||
```json
|
||||
"meta_data": [
|
||||
{
|
||||
"id": 2016,
|
||||
"key": "coupon_data",
|
||||
"value": {
|
||||
"id": 130,
|
||||
"code": "couponcode",
|
||||
"amount": "7",
|
||||
"date_created": {
|
||||
"date": "2020-10-30 11:06:20.000000",
|
||||
"timezone_type": 3,
|
||||
"timezone": "Europe/Madrid"
|
||||
},
|
||||
"date_modified": {
|
||||
"date": "2020-10-30 11:07:19.000000",
|
||||
"timezone_type": 3,
|
||||
"timezone": "Europe/Madrid"
|
||||
},
|
||||
"date_expires": null,
|
||||
"discount_type": "percent",
|
||||
"description": "",
|
||||
"usage_count": 2,
|
||||
"individual_use": false,
|
||||
"product_ids": [],
|
||||
"excluded_product_ids": [],
|
||||
"usage_limit": 0,
|
||||
"usage_limit_per_user": 0,
|
||||
"limit_usage_to_x_items": null,
|
||||
"free_shipping": false,
|
||||
"product_categories": [],
|
||||
"excluded_product_categories": [],
|
||||
"exclude_sale_items": false,
|
||||
"minimum_amount": "",
|
||||
"maximum_amount": "",
|
||||
"email_restrictions": [],
|
||||
"virtual": false,
|
||||
"meta_data": []
|
||||
}
|
||||
}
|
||||
]
|
||||
```
|
||||
5. Create a new order through the wp-admin dashboard (WooCommerce > Orders > Add Order)
|
||||
6. Add a product ("Add item(s)")
|
||||
7. Add a coupon ("Apply coupon")
|
||||
8. Retrieve the order from the REST API (`GET https://example.com/wp-json/wc/v3/orders/[ORDER_ID]`)
|
||||
9. Verify the `coupon_lines` contains `meta_data` like the previous example
|
Loading…
Reference in New Issue