diff --git a/plugins/woocommerce-blocks/docs/testing/releases/450.md b/plugins/woocommerce-blocks/docs/testing/releases/450.md new file mode 100644 index 00000000000..f327f2a7756 --- /dev/null +++ b/plugins/woocommerce-blocks/docs/testing/releases/450.md @@ -0,0 +1,130 @@ +## Testing notes and ZIP for release 4.5.0 + +Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-gutenberg-products-block/files/5988965/woocommerce-gutenberg-products-block.zip) + +## Feature plugin and package inclusion in WooCommerce core + +No changes. + +## Feature plugin only + +### Login links on the checkout should use the account page. ([3844](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3844)) + +1. Ensure you have the "My Account" page setup in WooCommerce +2. In WC > Settings > Accounts, turn off guest checkout +3. Log out or use an incognito window +4. Add something to cart and go to checkout +5. You should see a login link. Click it. +6. You should be on the account page. Login. +7. You should be redirected back to the checkout page. + +### Prevent checkout linking to trashed terms and policy pages. ([3843](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3843)) + +1. In WC > Settings > Advanced, set the terms page to a page that exists in the store. +2. Go to checkout. See the terms page link in the footer of the checkout. +3. Go to admin and trash the page. +4. Check the checkout again; the link should no longer be visible. + +### Improved nonce logic by moving nonces to cart routes only. ([3812](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3812)) + +1. Ensure PHP Unit tests pass. +2. Add a product to cart in incognito and checkout successfully. + +### If coupons become invalid between applying to a cart and checking out, show the user a notice when the order is placed. ([3810](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3810)) + +1. Create a coupon with no expiry date, minimum spend restriction, product restrictions, or usage limit. +2. Add a product to the cart, go to the checkout block, then apply the coupon. +3. Repeat these steps several times, with different coupons and new baskets each time. + - Modify the coupon's expiry date to be in the past. + - Modify the allowed products for the coupon, to ensure it is not applicable to the cart you're testing against. + - Create a coupon with a single use. Apply it to this test cart. Then use it on another, unrelated cart and complete the checkout. + - Add a minimum order value to the coupon, that is above the cart's value. +4. Complete checkout + +### Improve design of cart and checkout sidebars. ([3797](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3797)) + +Go to the Cart and Checkout block and verify designs look good. Some ideas of things to try: +* Test in a situation where there are +1 shipping rate options, only 1 or when there are no available options. +* Test when there is more than one shipping package and when there is only one. +* Test in several themes. +* Test with a different browser font size. +* Verify things look good in the editor as well. +* Test mobile too. + +### Improve error displayed to customers when an item's stock status changes during checkout. ([3703](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3703)) + +1. **In an incognito window** Add several products to your cart. Add these in differing quantities. Several of these added products need to have a quantity of 3+ in the cart. +2. Open the checkout page and ensure all the products are showing. **Do different combinations of the following steps in a different session to the one where you've added the items, and also without refreshing the checkout page. This is necessary because we can't be logged in as admin when testing step 3 below.** +3. Delete one or more of the products from the back end. +4. Set one or more of the products to "Manage stock?" true, and edit the in-stock amount of one or more of the products ensuring it is below the quantity that is in the cart, but above 0. +5. Set one or more of the products to "Sold individually" +6. Set one or more of the products to be entirely out of stock. +7. Try to check out and ensure you see the correct error messages for the products whose stock you've changed/reduced. +8. Try a few different scenarios with stock levels, number of products affected, number of products in cart etc. + +### Dev - Block Checkout will now respect custom address locales and custom country states via core filter hooks. ([3662](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3662)) + +1. Change the country on the checkout and check fields are updated/sorted. Japan is a good example because it re-orders all fields. US has states. UK has a text input for state. +2. Install https://wordpress.org/plugins/portugal-states-distritos-for-woocommerce/ Confirm states appear for portugal +3. Complete checkout - no errors, correct address stored. + +### Update checkout block payment methods UI. ([3439](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3439)) + +1. Add items to cart and go to the Checkout block. You will need to test with various combinations of the following payment methods + +- No saved payment methods. +- One saved payment methods. +- Multiple saved payment methods. + +and + +- No payment methods. +- One payment method. +- Multiple saved payment methods. + +2. Ensure the payment methods UI and UX (switching, filling in details) works +3. Ensure you can still check out and pay. + +### Fix JS warning if two cart products share the same name. ([3814](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3814)) + +1. Add two products (ie: Cap and Beanie with logo) to your Cart. +2. In `wp-admin`, rename Beanie with logo to `Cart`. +3. Go to the Cart and Checkout blocks. +4. Verify there are no errors in the console. + +### Align place order button to the right of the block. ([3803](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3803)) + +1. Go to the Checkout block and verify the Place Order button is aligned to the right and looks correct. +2. In mobile, verify it takes the entire width. +3. Optionally, test some other themes in addition to Storefront. + +### Ensure special characters are displayed properly in the Cart sidebar. ([3721](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3721)) +1. Add this code snippet to any PHP file (ie: `/woocommerce-gutenberg-products-block.php`): +```PHP +add_action( 'woocommerce_cart_calculate_fees', 'add_fees', 10 ); +function add_fees( $cart ) { + $cart->add_fee( __( 'Fee - Number 1', 'woo-gutenberg-products-block' ), 100, true ); + $cart->add_fee( __( 'Fee - Number 2', 'woo-gutenberg-products-block' ), 100, true ); +} +``` +2. Add a product to your cart and visit the Cart or Checkout pages. +3. Verify the dash is rendered correctly. + +### Show cart item total price including taxes when DISPLAY_CART_PRICES_INCLUDING_TAX is true ([3851](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3851)) +In wp-admin: +1. Go to WooCommerce > Settings and check the option `Enable tax rates and calculations `. +2. Go to WooCommerce > Settings > Tax and set `Prices entered with tax` to `No, I will enter prices exclusive of tax` and `Display prices during cart and checkout` to `Including tax`. +3. Go to WooCommerce > Settings > Tax > Standard Rates and create a tax rate for a specific country. + +In the frontend: +1. Add a product to your cart and go to the Cart or Checkout blocks. +2. Verify the product unitary price and the cart line total show the price including taxes: + +| Before | After | +| --- | --- | +| ![image](https://user-images.githubusercontent.com/3616980/108037796-5ddb4f80-703a-11eb-9656-cac05a57b8c5.png) | ![image](https://user-images.githubusercontent.com/3616980/108038392-10abad80-703b-11eb-8c96-52e1c0f2341f.png) | + +### Fix product price not displaying properly when product is on sale ([3853](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3853)) + +1. Set a product to be on sale and add it to the cart +2. Go to the cart and checkout blocks and make sure you can see the struckthrough regular price, and the sale price is displayed normally. diff --git a/plugins/woocommerce-blocks/docs/testing/releases/README.md b/plugins/woocommerce-blocks/docs/testing/releases/README.md index d0758735c52..350b4cd8b17 100644 --- a/plugins/woocommerce-blocks/docs/testing/releases/README.md +++ b/plugins/woocommerce-blocks/docs/testing/releases/README.md @@ -22,3 +22,4 @@ Every release includes specific testing instructions for new features and bug fi - [4.2.0](./420.md) - [4.3.0](./430.md) - [4.4.0](./440.md) +- [4.5.0](./450.md) diff --git a/plugins/woocommerce-blocks/package.json b/plugins/woocommerce-blocks/package.json index aac20a1b9e1..26d59947d76 100644 --- a/plugins/woocommerce-blocks/package.json +++ b/plugins/woocommerce-blocks/package.json @@ -2,7 +2,7 @@ "name": "@woocommerce/block-library", "title": "WooCommerce Blocks", "author": "Automattic", - "version": "4.4.0", + "version": "4.5.1", "description": "WooCommerce blocks for the Gutenberg editor.", "homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/", "keywords": [ diff --git a/plugins/woocommerce-blocks/readme.txt b/plugins/woocommerce-blocks/readme.txt index 39b72d8cbf1..c4f7739a36a 100644 --- a/plugins/woocommerce-blocks/readme.txt +++ b/plugins/woocommerce-blocks/readme.txt @@ -4,7 +4,7 @@ Tags: gutenberg, woocommerce, woo commerce, products, blocks, woocommerce blocks Requires at least: 5.4 Tested up to: 5.7 Requires PHP: 7.0 -Stable tag: 4.4.0 +Stable tag: 4.5.1 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -85,6 +85,38 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/ == Changelog == += 4.5.1 - 2021-02-16 = + +This release fixes an error that some users experienced when their site automatically updated to a temporarily broken version of the 4.5.0 release. + += 4.5.0 - 2021-02-16 = + +This release fixes an error that some users experienced when their site automatically updated to a temporarily broken version of the 4.5.0 release. + +#### Enhancements + +- Login links on the checkout should use the account page. ([3844](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3844)) +- Prevent checkout linking to trashed terms and policy pages. ([3843](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3843)) +- Improved nonce logic by moving nonces to cart routes only. ([3812](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3812)) +- If coupons become invalid between applying to a cart and checking out, show the user a notice when the order is placed. ([3810](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3810)) +- Improve design of cart and checkout sidebars. ([3797](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3797)) +- Improve error displayed to customers when an item's stock status changes during checkout. ([3703](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3703)) +- Dev - Block Checkout will now respect custom address locales and custom country states via core filter hooks. ([3662](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3662)) +- Update checkout block payment methods UI. ([3439](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3439)) + +#### Bug Fixes + +- Fix JS warning if two cart products share the same name. ([3814](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3814)) +- Align place order button to the right of the block. ([3803](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3803)) +- Ensure special characters are displayed properly in the Cart sidebar. ([3721](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3721)) +- Fix a bug where the total price of items did not include tax in the cart and checkout blocks. ([3851](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3851)) + += 4.4.2 - 2021-02-05 = + +### Bug Fixes + +- Fix - Conflicts with 3rd Party payment method integrations. ([3796](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/3796)) + = 4.4.0 - 2021-02-02 = #### Enhancements diff --git a/plugins/woocommerce-blocks/src/Package.php b/plugins/woocommerce-blocks/src/Package.php index 8b362c31768..c5dcd9f4262 100644 --- a/plugins/woocommerce-blocks/src/Package.php +++ b/plugins/woocommerce-blocks/src/Package.php @@ -106,7 +106,7 @@ class Package { NewPackage::class, function ( $container ) { // leave for automated version bumping. - $version = '4.4.0'; + $version = '4.5.1'; return new NewPackage( $version, dirname( __DIR__ ), diff --git a/plugins/woocommerce-blocks/woocommerce-gutenberg-products-block.php b/plugins/woocommerce-blocks/woocommerce-gutenberg-products-block.php index 09da4af3074..efe50a40314 100644 --- a/plugins/woocommerce-blocks/woocommerce-gutenberg-products-block.php +++ b/plugins/woocommerce-blocks/woocommerce-gutenberg-products-block.php @@ -3,7 +3,7 @@ * Plugin Name: WooCommerce Blocks * Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block * Description: WooCommerce blocks for the Gutenberg editor. - * Version: 4.5.0-dev + * Version: 4.5.1 * Author: Automattic * Author URI: https://woocommerce.com * Text Domain: woo-gutenberg-products-block