Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Release: 7.4.0 (#6225)
Browse files Browse the repository at this point in the history
* Empty commit for release pull request

* Add Changelog to readme.txt

* Update WC tested and required versions

* Add testing notes

* Register missing C&C inner blocks and update fallback template for older C& C versions (#6195)

* Register missing C & C inner blocks and update fallback template for older C & C versions

This will fix the issues with missing order summary inner blocks: Coupons (both in C & C blocks) and the Cart header. The issue was happening because, for example, for Cart the coupons were registred on the on frontend, but it just wasn't forced in the attributes. Because it also wasn't added to the PHP fallback layout, the render function didn't include it. For the Checkout block the coupons inner block wasn't registered at all.

* Revert changes to Checkout.php, we don't need to test for inner blocks

* Revert "Revert changes to Checkout.php, we don't need to test for inner blocks"

This reverts commit fc39535.

* Fix the returned template for older Checkout block iterations

* Fix Cart and Checkout templates to accommodate the Summary order inner blocks

* Hide coupon form div from inner blocks if coubons are not enabled

* Fix checkout coupon tests in checkout

They have been written for logged in user

* Fix Order Summary Heading inner block's default text

* Update comments with better wording

* Revert "Hide coupon form div from inner blocks if coubons are not enabled"

This reverts commit ab09021.

(cherry picked from commit 40180ae)

* Update the zip file link

* Update testing instructions

* Remove experimental build related PR from testing notes

* Fix/order summary sidebar css (#6231)

* Add box sizing to Totals item

* Add some unit tests for Order summary blocks

* Fix Proceed to checkout button size

(cherry picked from commit 669aee7)

* Update the WC required/tested versions

* Mini Cart Contents: Use block pattern to make the empty cart message translatable (#6248)

* try: use block pattern to make empty cart message translatable

* Update src/BlockTypes/MiniCart.php

Co-authored-by: Albert Juhé Lluveras <[email protected]>

* rename function

Co-authored-by: Albert Juhé Lluveras <[email protected]>
Co-authored-by: Luigi <[email protected]>
(cherry picked from commit cfe73f1)

* Update the release's ZIP file

* Update testing notes

In #6065, for Cart only Order Summary Heading & Coupon form can
be removed, and for Checkout only the Coupon form.

* Update the testing notes

Remove #5870 testing notes because they can't be tested as a user

* Update Testing notes

Add screenshots to the #5967 testing notes

* Remove #6166 testing instructions

We reverted this PR

* Revert (#6166) (#6253)

Revert "Prevent Featured Product block from breaking when product is out of stock + hidden
from catalog (#6166)"

This reverts commit 3c0e0af

(cherry picked from commit 908526e)

* Bumping version strings to new version.

Co-authored-by: github-actions <[email protected]>
Co-authored-by: Saad Tarhi <[email protected]>
Co-authored-by: Raluca Stan <[email protected]>
Co-authored-by: Luigi Teschio <[email protected]>
Co-authored-by: Tung Du <[email protected]>
  • Loading branch information
6 people authored Apr 14, 2022
1 parent 908526e commit 0bd1675
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 6 deletions.
72 changes: 72 additions & 0 deletions docs/testing/releases/740.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
## Testing notes and ZIP for release 7.4.0

Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-gutenberg-products-block/files/8482828/woocommerce-gutenberg-products-block.zip)

## Feature plugin and package inclusion in WooCommerce

### Allow adding the Filter Products by Price block to Product Catalog templates to filter products. ([6146](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6146))

1. With a block theme, go to Appearance > Editor > Template > Product Catalog.
2. Add the Filter Products by Price block above the product grid and set _Filter Button_ attribute to true.
3. Change the values of the price slider.
4. Notice the page reloads and the list of products updates accordingly.

![Kooha-03-28-2022-16-01-09b](https://user-images.githubusercontent.com/3616980/160415342-25b2e1a1-4c48-4837-9dcc-b4d7a71b2886.gif)

### Mini Cart block: Fix translations loading. ([6158](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6158))

1. Go to **Settings -> General** and change the language of the site to any language other than English (my suggestion is to use Deutsch because all the translations are available).
2. Enable a classic theme (for example Storefront)
3. Now go to **Appearance -> Widgets** and add `Mini Cart` widget to any Widget Area.
4. Go to any page containing that Widget Area and check that any error related to `wp.i18n`.
5. Check that the `Mini Cart` is translated (check with an empty cart and with a filled cart). Please, be sure that you are using a language that has translations for the Mini Cart Block. My suggestion is to use the Deutsch language.
6. Enable a block theme (for example TT2).
7. Now go to **Appearance -> Editor** and add the `Mini Cart` block in the header. Save.
8. Check that the `Mini Cart` is translated (check with an empty cart and with a filled cart). Please, be sure that you are using a language that has translations for the Mini Cart Block. My suggestion is to use the Deutsch language.

### Fix Featured Product and Featured Category buttons misalignment in Twenty Twenty Two theme. ([6156](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6156))

1. Activate a block theme (ie: Twenty Twenty-Two).
2. Add Featured Product and/or Featured Category blocks to a post or page.
3. Verify the button is centered by default.
4. Verify you can change the alignment of the button using the _Justify items_ dropdown inherited from the _Buttons_ block.
![imatge](https://user-images.githubusercontent.com/3616980/160625173-f9ad42ed-b769-42e3-9ad8-3f3abe60b61c.png)
5. Test again with a classic theme (ie: Storefront).

### Remove the ToggleButtonControl in favor of ToggleGroupControl. ([5967](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5967))

1. Activate a **block theme**, like Twenty Twenty Two
2. Create a new page, and add the following blocks:
- Active Filters
- Attribute Filter
- Price Filter
- Product Categories
- Reviews
3. Open each block settings and ensure that options are using the new component's design (toggle button) and are working correctly:

|Before|After|
|-|-|
|![OLD](https://user-images.githubusercontent.com/905781/156161666-57c4baed-9d17-4c65-8fc8-4a8d2316dfde.jpg)|![new](https://user-images.githubusercontent.com/905781/156161720-b962056e-be7f-40ca-9173-52a72443b01a.jpg)|

## Feature Plugin

### The order summary area for the Cart and Checkout Blocks is now powered by Inner Blocks allowing for more customizations and extensibility. ([6065](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6065))

1. Go to a page and add the Checkout block.
2. Go to a page and add the Cart block
3. In the editor, inside each block, select the Order summary and notice that you can select the following inner blocks:
| Cart | Checkout |
| --------------- | --------------- |
| Heading, Subtotal, Cart Items, Fees, Coupon Form, Shipping, Taxes | Subtotal, Cart Items, Fees, Coupon Form, Shipping, Taxes |
4. Try to move some of the inner blocks and save. Confirm that in the Cart block only Order Summary Heading and the Coupon form inner blocks can be removed, and for the Checkout block only the Coupon form.
5. Check on the website that your changes are reflected. Note that Taxes, Fees and Coupons will appear on the website only if the shop supports them.
6. For the Cart > Shipping inner block make sure you can enable disable the shipping calculator and that the change is visibile in the website
7. Enable Taxes on your website (`/wp-admin/admin.php?page=wc-settings`) by clicking `Enable tax rates and calculations`
8. Go to the C & C blocks and select the Taxes inner block.
9. In the inner block's setting toggle on / of `Show rate after tax name` and make sure that is reflected in the website
10. Try to place an order and make sure it's successful.

### Increase Cart product quantity limit. ([6202](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6202))

1. Go to the shop page and add any product to the cart
2. Go to the Cart block page and increase product quantity to 9999
1 change: 1 addition & 0 deletions docs/testing/releases/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Every release includes specific testing instructions for new features and bug fi
- [7.1.0](./710.md)
- [7.2.0](./720.md)
- [7.3.0](./730.md)
- [7.4.0](./740.md)

<!-- FEEDBACK -->
---
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@woocommerce/block-library",
"title": "WooCommerce Blocks",
"author": "Automattic",
"version": "7.4.0-dev",
"version": "7.4.0",
"description": "WooCommerce blocks for the Gutenberg editor.",
"homepage": "https://github.com/woocommerce/woocommerce-gutenberg-products-block/",
"keywords": [
Expand Down
19 changes: 18 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: gutenberg, woocommerce, woo commerce, products, blocks, woocommerce blocks
Requires at least: 5.9
Tested up to: 5.9
Requires PHP: 7.0
Stable tag: 7.4.0-dev
Stable tag: 7.4.0
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -86,6 +86,23 @@ Release and roadmap notes available on the [WooCommerce Developers Blog](https:/

== Changelog ==

= 7.4.0 - 2022-04-11 =

#### Enhancements

- Allow adding the Filter Products by Price block to Product Catalog templates to filter products. ([6146](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6146))
- The order summary area for the Cart and Checkout Blocks is now powered by Inner Blocks allowing for more customizations and extensibility. ([6065](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6065))

#### Bug Fixes

- Increase Cart product quantity limit. ([6202](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6202))
- Fix Featured Product: Prevent the block from breaking for out of stock products hidden from catalog. ([6166](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6166))
- Mini Cart block: Fix translations loading. ([6158](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6158))
- Fix Featured Product and Featured Category buttons misalignment in Twenty Twenty Two theme. ([6156](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6156))
- Update `Product Title` link settings content and add an option to `Open in new tab`. ([6131](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/6131))
- Remove the ToggleButtonControl in favor of ToggleGroupControl. ([5967](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5967))
- Decode HTML entities when formatting Store API error messages. ([5870](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5870))

= 7.3.0 - 2022-03-28 =

#### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion src/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public static function container( $reset = false ) {
NewPackage::class,
function ( $container ) {
// leave for automated version bumping.
$version = '7.4.0-dev';
$version = '7.4.0';
return new NewPackage(
$version,
dirname( __DIR__ ),
Expand Down
6 changes: 3 additions & 3 deletions woocommerce-gutenberg-products-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* Plugin Name: WooCommerce Blocks
* Plugin URI: https://github.com/woocommerce/woocommerce-gutenberg-products-block
* Description: WooCommerce blocks for the Gutenberg editor.
* Version: 7.4.0-dev
* Version: 7.4.0
* Author: Automattic
* Author URI: https://woocommerce.com
* Text Domain: woo-gutenberg-products-block
* Requires at least: 5.9
* Requires PHP: 7.0
* WC requires at least: 6.0
* WC tested up to: 6.1
* WC requires at least: 6.3
* WC tested up to: 6.4
*
* @package WooCommerce\Blocks
* @internal This file is only used when running as a feature plugin.
Expand Down

0 comments on commit 0bd1675

Please sign in to comment.