From d4827ed1bfa488541694c64473ccb198e84d9be6 Mon Sep 17 00:00:00 2001 From: Tung Du Date: Tue, 28 Feb 2023 16:45:01 +0700 Subject: [PATCH] 9.7.0 testing notes --- .../testing/releases/970.md | 728 ++++++++++++++++++ .../testing/releases/README.md | 1 + 2 files changed, 729 insertions(+) create mode 100644 plugins/woocommerce-blocks/docs/internal-developers/testing/releases/970.md diff --git a/plugins/woocommerce-blocks/docs/internal-developers/testing/releases/970.md b/plugins/woocommerce-blocks/docs/internal-developers/testing/releases/970.md new file mode 100644 index 00000000000..d228ca5dc44 --- /dev/null +++ b/plugins/woocommerce-blocks/docs/internal-developers/testing/releases/970.md @@ -0,0 +1,728 @@ +# Testing notes and ZIP for release 9.7.0 + +Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-blocks/files/10847778/woocommerce-gutenberg-products-block.zip) + +## WooCommerce Core + +### Set inherit default to true when products is inserted on archive product templates ([8375](https://github.com/woocommerce/woocommerce-blocks/pull/8375)) + +1. Make sure you are using a block theme. +2. Go to the `Products by Category` template on the `Site Editor`. +3. Insert the `Products (Beta)` block. +4. Make sure the `Inherit query from template` is **enabled** by default. +5. Repeat for the `Products by Tag`, `Products by Attribute`, `Product Search Results`, and `Product Catalog` templates. +6. Go to any other template (like `Single Product` or `Page`), insert the `Products (Beta)` block, and make sure the `Inherit query from template` is **disabled** by default. +7. Create a new page or post and make sure you can insert the `Products (Beta)` block. + +### Fixes CSS spacing and availability issues for breadcrumb, catalog sort, and result count blocks. ([8391](https://github.com/woocommerce/woocommerce-blocks/pull/8391)) + +The issues are primarily visible with the Twenty Twenty Two theme. However, testing should be done against some other themes to make sure this doesn't introduce significant issues with those themes. In theory, it _shouldn't_ because the CSS for the blocks should appropriately inherit what the theme provides for default margins and spacing in the container around the blocks. + +1. Go to the "Product Catalog" Template in the Site Editor (`Appearance` -> `Editor`). +2. Paste the following after the header in the template: + +```html + +
+ + + +
+ +``` + +3. Make sure that in the editor view the alignment for the blocks appears as in the above screenshots. +4. Make sure that the shop catalog on the frontend (default is `sitedomain.com/shop` on most WP installs) shows all blocks aligned as in the above screenshots. + +#### Store Breadcrumbs + +##### Misaligned Margin + +| Before | After | +|-------| ----- | +| CleanShot 2023-02-07 at 07 57 57@2x | CleanShot 2023-02-07 at 07 58 58@2x | + +##### Breadcrumbs not even displaying for shop page + +While it appears okay when editing the Product Catalog template, it is not shown on the frontend for certain themes. It surfaced with Twenty Twenty Two (or derivatives of that theme) for me. + +| Before | After | +|-------|--------| +| CleanShot 2023-02-07 at 08 01 49@2x | CleanShot 2023-02-07 at 08 02 29@2x | + +#### Catalog Sorting Block + +| Before | After | +| ------ | ----- | +| CleanShot 2023-02-07 at 08 03 42@2x | CleanShot 2023-02-07 at 08 04 20@2x | + +#### Product Results Count + +| Before | After | +| ------ | ------ | +| CleanShot 2023-02-07 at 08 05 19@2x | CleanShot 2023-02-07 at 08 05 54@2x + +### Add Product Image Gallery ([8235](https://github.com/woocommerce/woocommerce-blocks/pull/8235)) + +1. Via Site Editor, edit the Single Product Template. +2. Add the `Product Image Gallery`. Save it. +3. On the frontend side, open a product page, check that the Product Image Gallery is loaded, and show the right images. +4. Check that the block can be added only on the Single Product Template + +| Block Details | Preview Editor Side | Frontend | +|---------------|---------------------|-----------| +|![image](https://user-images.githubusercontent.com/4463174/215522884-09459aa4-e51b-4975-9a52-68e4a5a3f769.png)|![image](https://user-images.githubusercontent.com/4463174/218435020-62a15946-2932-40d9-86ec-309bde156c2d.png)|![image](https://user-images.githubusercontent.com/4463174/215523026-a0a35211-ba40-49db-bb88-c773826aa7a1.png)| + +### Product Price: Fix typography styles in the editor ([8398](https://github.com/woocommerce/woocommerce-blocks/pull/8398)) + +1. Add a new page with the **Products** block. +2. Make sure you have a product with a regular and sale price. +3. Set a custom `Size` and `Appearance` for the Product Price block. +4. Notice that the change displays fine in the editor and frontend both for regular and sale prices. + +| Before | After | +| ------ | ----- | +|![before-4](https://user-images.githubusercontent.com/905781/217533868-20817df4-daec-438d-adf2-9e687fc0f047.jpg)|![after-4](https://user-images.githubusercontent.com/905781/217533882-a23aba83-7a3e-4853-bc89-7ec4a685f444.jpg)| + +### Add Single Product Details block ([8225](https://github.com/woocommerce/woocommerce-blocks/pull/8225)) + +1. Enable a blocked theme in your WordPress installation (go to Appearance > Themes, and select one of the blocked themes options, such as: Twenty-Twenty Three); +2. Once the theme is enabled, go to Appearance > Editor (Beta); +3. On the left side menu, click on Templates; +4. Select the Single Product template, and click Edit; +5. Select the WooCommerce Single Product Block that comes by default with the template, remove it, and Save; +6. Using the Block Inserter, type: Single Product Details. Add it to the Editor and position the block as you want. +7. Make sure the Single Product Details block is being displayed and contains the tabs: Description, Additional Information and Reviews; +8. Save the changes. Access your website and click on a product; +9. Make sure the Single Product Details block appears and contains the product description (Description tab), product attributes (Additional Information tab) and the product reviews (Reviews tab). + +| Before | After | +| ------ | ----- | +| image | image | + +### Create the Add to Cart Form Block ([8284](https://github.com/woocommerce/woocommerce-blocks/pull/8284)) + +1. Make sure you are using a block theme. +2. Make sure you have the following product types created in your store: Simple, Variable, Grouped and External. +3. Edit the Single Product template on the Site Editor ( e.g. path > wp-admin/site-editor.php?postType=wp_template&postId=woocommerce%2Fwoocommerce%2F%2Fsingle-product&canvas=edit&sidebar=%2Ftemplates). +4. Insert the new **Add to Cart Form** block and save. +5. Make sure in the editor you see a placeholder block and it matches the following: + +Screenshot 2023-01-30 at 17 12 33 + +6. Access a single product page for a Simple product and ensure the content matches the one displayed on the screenshot shared here on this PR. +7. Access a single product page for a Variable product and ensure the content matches the one displayed on the screenshot shared here on this PR. +8. Access a single product page for a Grouped product and ensure the content matches the one displayed on the screenshot shared here on this PR. +9. Access a single product page for an External product and ensure the content matches the one displayed on the screenshot shared here on this PR. + +#### Editor Preview + +The editor preview is just a placeholder in this initial moment: the style will change a bit later on as @vivialice and I had a convo today, and she is actively working on a design for it. Here's the current implementation: + +Screenshot 2023-01-30 at 17 12 33 + +We discussed adding placeholders (gray boxes) for the additional content that may or may not be visible depending on the product type last week. As this approach was implemented, the end result was a bit polluted, so I defaulted to relying exclusively on the notice instead. + +#### Editor Sidebar + +Screenshot 2023-01-30 at 20 30 26 + +PS: The icon for this block also needs design review/approval cc: @vivialice . + +#### Frontend + +The content displayed on the frontend is dynamically changed depending on the product type: + +##### Simple Product + +Screenshot 2023-01-30 at 20 06 48 + +##### Grouped Product + +Screenshot 2023-01-30 at 20 05 45 + +##### Variable Product + +Screenshot 2023-01-30 at 20 03 51 + +Screenshot 2023-01-30 at 20 04 53 + +##### External Product + +Screenshot 2023-01-30 at 20 07 33 + +### Rename the checkout events ([8381](https://github.com/woocommerce/woocommerce-blocks/pull/8381)) + +1. Install and activate the Stripe Payment Gateway plugin +2. Add something to your cart and checkout with a bad card (4000 0000 0000 0002). +3. You should see a "Your card was declined" message in the payment options section +4. Add something to your cart again and checkout with a valid card (4242 4242 4242 4242) +5. You should be redirected to the order summary page and you should see the order in wp-admin. + +![Untitled-2023-02-02-2008](https://user-images.githubusercontent.com/3966773/217264284-03f0254e-7981-4c5f-a368-270d52995245.png) + +### Simplify unused Add to Cart button form placeholder for grouped product ([8438](https://github.com/woocommerce/woocommerce-blocks/pull/8438)) + +1. Go to Editor +2. Edit the Product Catalog template +3. Add All Products block +4. Enter the "edit" mode of All Products block by clicking a pencil button +5. Remove "Add to Cart Button" block +6. Add "Add to Cart" block - THESE ARE TWO SEPARATE BLOCKS. IT'S ABOUT "ADD TO CART" BLOCK! +7. By default the "Display form elements" toggle should be disabled +**Expected**: Button looks like on a pictures above +8. Save the changes and check the frontend as well + +9. Enter the edit mode of "Add to Cart" button (there's a [bug that block cannot be clicked](https://github.com/woocommerce/woocommerce-blocks/issues/8439). To enter the edit mode, please open a "list view" of blocks and choose "Add to Cart" from there) +10. Enable "Display form elements" toggle +**Expected**: Button looks like on a pictures above (while it changes to form for other types of products: simple, variable) +11. Save the changes and check the frontend as well + +#### Editor - Grouped product is the middle one on each image. Other products are included for comparison + +| Case | Before | After | +| ------ | ----- |----- | +| Display form elements: disabled | image | image | +| Display form elements: enabled | image | image | + +#### Frontend - Grouped product is the middle one on each image. Other products are included for comparison + +| Case | Before | After | +| ------ | ----- |----- | +| Display form elements: disabled | image | image | +| Display form elements: enabled | image | image | + +### Use the @wordpress/components instead of wordpress-components while in editor ([8432](https://github.com/woocommerce/woocommerce-blocks/pull/8432)) + +Prerequisites: + +- Make sure you don't have any "Express Payment Methods". + +1. Create a new post +2. Add Cart block +3. Still in Editor - find an "Express Checkout" section. Expected: + - Icon, "Express Checkout" heading and Button looks like on a screenshots attached + - Click button - you should be redirected to `wp-admin/admin.php?page=wc-settings&tab=checkout` page. + +| Case | Before | After | +| ------ | ----- | ----- | +| Cart Express Payment | image | image | +| Checkout Express Payment | image | image | + +### Check for wc-blocks script registration before checking payment method script dependencies ([8428](https://github.com/woocommerce/woocommerce-blocks/pull/8428)) + +1. Install WooCommerce 7.1+ and Elementor 3.9.0+ +2. Navigate to the WordPress Admin > Posts > Add New +3. Open the JS console and on the post page, click the "Edit With Elementor" button. Ensure no errors relating to payment method script dependencies appear in the console. +4. Ensure payment methods work in the Checkout block correctly. + +### Move the usage of Notices from @wordpress/components from frontend to editor (Filter by Attribute) ([8457](https://github.com/woocommerce/woocommerce-blocks/pull/8457)) + +1. Go to Editor and create new post +2. Add a Filter by Attribute block. +3. Don't choose any attribute and click "Done" + +**Expected:** Notice is displayed +image + +4. Save the post and go to frontend + +**Expected:** There's no Filter by Attribute and no Notice. + +--- + +1. Create an attribute that no product is assigned to (Go to: `/wp-admin/edit.php?post_type=product&page=product_attributes` and create an attribute) +2. Go to Editor and create new post +3. Add a Filter by Attribute block. +4. Choose the attribute that has no products assigned to + +**Expected:** Notice is displayed +image + +4. Save the post and go to frontend + +**Expected:** There's no Filter by Attribute and no Notice (although filter may be displayed for a glance while loading) + +### Add parsed border props to featured items ([8472](https://github.com/woocommerce/woocommerce-blocks/pull/8472)) + +1. Add a Featured Item (Featured Category or Featured Product) block to a page or post. +2. Select the border controls and add a border style. Add a color and give it some width. +3. You should see the border you set dynamically display on the featured item. +4. Now click on the `Unlink` button on the border controls and try setting different values for color and width for each of the border sides (top,right,bottom,left). +5. Ensure this is working by visually seeing the changes to the featured item. +6. Save and make sure this is also displaying correctly on the frontend. +7. Test both `Featured Category` and `Featured Product` blocks. + +### Fix Product categories, Product Tags & Keyword filter not working in Products block ([8377](https://github.com/woocommerce/woocommerce-blocks/pull/8377)) + +1. Create a new post +2. Add Product block inside Editor +3. Add Product categories and/or Product Tags and/or Keyword to Filters(see screenshot) +![image](https://user-images.githubusercontent.com/16707866/216572384-91a9802b-e598-4b18-bdbc-158ff0d465f9.png) +4. Check the front-end. Only products with added categories, tags, or keywords are showing. + +### All Products: Re-add alignment controls for Product Rating and Price ([8264](https://github.com/woocommerce/woocommerce-blocks/pull/8264)) + +1. Create a new Page and add the **All Products** block. +2. Add the **Product Rating** and **Product Price**. +3. Confirm that the `Alignment` toolbar option is available for both blocks and works correctly (both in the editor and the frontend). + +| Before | After | +| ------ | ----- | +|![Edit_Page_“Producs”_‹_ratings_—_WordPress](https://user-images.githubusercontent.com/905781/214031002-d846e498-b0db-45e4-90bf-36bf5b8defa4.jpg)|![Edit_Page_“Producs”_‹_ratings_—_WordPress](https://user-images.githubusercontent.com/905781/214031266-e99096db-5d34-4068-a0a5-fdbf1dc94ea8.jpg)| + +### Move the usage of Notices from @wordpress/components from frontend to editor (Filter by Rating) ([8444](https://github.com/woocommerce/woocommerce-blocks/pull/8444)) + +1. Make sure you have no products with ratings. You can achieve that by going to `wp-admin/edit.php?post_type=product&page=product-reviews`, mark all the reviews and Bulk Actions -> Move to Trash -> Apply (it can be reverted*) +2. Go to Editor and create new post +3. Add a Filter by Rating block. See the notice is displayed +image +4. Save the post and go to frontend. Confirm there's no Filter by Rating and no Notice. + +Note: to revert moving the reviews to trash go to `http://store.local/wp-admin/edit.php?post_type=product&page=product-reviews&comment_status=trash&paged=1`, mark all the reviews and Bulk Actions -> Restore -> Apply + +### Fix Catalog Sorting default color in dark backgrounds ([8483](https://github.com/woocommerce/woocommerce-blocks/pull/8483)) + +1. Install a theme with a dark background (ie: theme TT3 with Auberginie style). +2. Go to Appearance > Editor and edit the Product Catalog template. +3. Add the `Catalog Sorting` block and save the template. +4. Make sure it's legible in the editor and the frontend. +5. Change the text color of the `Catalog Sorting` block. +6. Verify the color is correctly set in the editor and the frontend. + +Before | After +--- | --- + | + +### Remove opinionated styles from Button component on block themes that define button styles ([8478](https://github.com/woocommerce/woocommerce-blocks/pull/8478)) + +0. Create three posts, one with the Mini Cart block, another one with the Cart block and the last one with the Checkout block. + +#### Test different themes + +1. Twenty Twenty Three: + 1.1. Install it from [here](https://wordpress.org/themes/twentytwentythree/). + 1.2. Go to the pages created in step 0 and verify the Mini Cart, Cart and Checkout buttons **follow** the theme styles. + 1.3. Go to Appearance > Editor > Styles > Browse Styles and change between style variations. Verify the buttons follow the styles in all of them. + +2. Pixl or another block theme with custom button styles but which is not TT3 or Zaino: + 2.1. Install it from [here](https://wordpress.org/themes/pixl/). + 2.2. Go to the pages created in step 0 and verify the Mini Cart, Cart and Checkout buttons **follow** the theme styles. + +Before | After +--- | --- +![imatge](https://user-images.githubusercontent.com/3616980/220114280-77a62b8e-8f52-4789-86e0-021023cd47f7.png) | ![imatge](https://user-images.githubusercontent.com/3616980/220114328-4739053e-b3c1-43c4-a683-5a444eb766ce.png) + +3. Storefront or another classic theme (test that this PR doesn't introduce any regression): + 3.1. Install it from [here](https://wordpress.org/themes/storefront/). + 3.2. Go to the pages created in step 0 and verify the Mini Cart, Cart and Checkout buttons **don't follow** the theme styles. Instead, they have opinionated styles. + +### Update Product Details block so it inherits more styles from the theme ([8494](https://github.com/woocommerce/woocommerce-blocks/pull/8494)) + +Repeat these testing steps with at least three themes: [TT2](https://wordpress.org/themes/twentytwentytwo/), [TT3](https://wordpress.org/themes/twentytwentythree/) and any other block theme which is not a child theme of TT2/TT3 (ie, [Pixl](https://wordpress.org/themes/pixl/)). + +1. Go to Appearance > Editor and edit the Single Product template. +2. Add the Product Details block after the Classic Template block. +3. Verify the styling of the tabs of the Classic Template and Single Product block look the same in the frontend. + +Theme | Before | After +--- | --- | --- +TT2 | ![imatge](https://user-images.githubusercontent.com/3616980/220280107-bfa5496b-4a25-4097-9c82-06b0adbf9343.png) | ![imatge](https://user-images.githubusercontent.com/3616980/220279896-33e3f81c-5360-4264-ba04-00ef9cac683c.png) +TT3 (Auberginie) | ![imatge](https://user-images.githubusercontent.com/3616980/220279202-67582490-9116-4d16-9a63-9f2cfde32d60.png) | ![imatge](https://user-images.githubusercontent.com/3616980/220279289-614c402e-441d-4848-9d81-757e4f01f549.png) +TT3 (Whisper) | ![imatge](https://user-images.githubusercontent.com/3616980/220278797-3091a82f-1335-4fb2-857b-fa406c5d5267.png) | ![imatge](https://user-images.githubusercontent.com/3616980/220278925-d2dace37-cfe6-4d8e-b004-a2510245a67f.png) +Pixl |![imatge](https://user-images.githubusercontent.com/3616980/220354959-784b5618-eee5-46c6-9c4d-e5655e094b0d.png) | ![imatge](https://user-images.githubusercontent.com/3616980/220354867-363f3c95-b163-4ad5-bd4f-6678b5fa81b0.png) + +**Testing the editor view:** + +It's possible to test the editor view as well if you build WC core from this branch: `fix/load-theme-specific-stylesheet-in-site-editor` (see related PR: [woocommerce#36911](https://github.com/woocommerce/woocommerce/pull/36911)). + +Then, follow the same steps: + +1. Go to Appearance > Editor and edit the Single Product template. +2. Add the Product Details block after the Classic Template block. +3. Verify the styling of the tabs of the Classic Template and Single Product block look the same in the editor. + +### Add client-side postcode validation ([7945](https://github.com/woocommerce/woocommerce-blocks/pull/7945)) + +1. Add a product to the cart and go to the checkout page. +2. Select United Kingdom (UK) as country. +3. Verify that the postcode `AA9A 9AA` passes the validation. +4. Verify that the postcode `9999 999` fails the validation. + +### Show Cart and Checkout blocks in Style Book ([8489](https://github.com/woocommerce/woocommerce-blocks/pull/8489)) + +1. Ensure that a block theme is installed, e.g. [TT3](https://wordpress.org/themes/twentytwentythree/) +2. Go to `WP Admin » Appearance » Editor`. +3. Click the blue `Edit` button and then click the `Styles` icon in the upper-right corner. +Screenshot 2023-02-21 at 13 23 00 +4. Click on the the `Open Style Book` icon (the one that looks like an eye) +Screenshot 2023-02-21 at 13 23 24 +5. Verify that both the Cart and the Checkout blocks are visible. + +Kindly note that the Cart and the Checkout blocks will not appear in the blocks sidebar, as they do not support Global Styles yet: +Screenshot 2023-02-21 at 13 24 58 + + + + + + +
Cart block: +

+ +![cart](https://user-images.githubusercontent.com/3323310/220263306-8431c1d0-0c03-4afc-871f-420009952abc.png) +
Checkout block: +

+ +![checkout](https://user-images.githubusercontent.com/3323310/220263318-07facf38-48eb-470e-afe7-7e8331f4eb73.png) +
+ +### Make a product titles in Products block a link ([8519](https://github.com/woocommerce/woocommerce-blocks/pull/8519)) + +1. Go to the Editor +2. Add a _Products_ block +3. Focus on the Product Title block + +Expected: "Make title a link" in Link Settings is enabled by default + + image + +| Before | After | +| ------ | ----- | +| image | image | + +### Fix noticeContext declaration in the Shipping calculator ([8495](https://github.com/woocommerce/woocommerce-blocks/pull/8495)) + +1.Add a product to the cart. +2. Go to the Cart block page. +3. Open the shipping calculator. +4. Enter any address with an invalid zip code. +5. Confirm the error notice is getting displayed in the calculator. +6. Confirm there are no errors in the browser console. + +| Before | After | +| ------ | ----- | +| image |image| + +### Fix Product Price and Product Rating alignment ([8526](https://github.com/woocommerce/woocommerce-blocks/pull/8526)) + +1. Create a post or page. +2. Add a Products block. +3. Confirm the Product Price is centered by default in the editor. +4. Save and go to the frontend. +5. Confirm the Product Price is centered there. +6. Go back to the editor and add another Product Price and a Product Rating block. +7. Toggle their alignment (left, center, right) and verify whatever setting you choose is applied in the editor and the frontend. + +### Improve the dismissal behavior of the incompatible gateways notice ([8299](https://github.com/woocommerce/woocommerce-blocks/pull/8299)) + +1. Add incompatible payment gateways with the C&C Blocks (e.g., [Paypal](https://woocommerce.com/document/woocommerce-paypal-payments/#account-setup), [Klarna Payments](https://docs.klarna.com/platform-solutions/woocommerce/klarna-checkout/configuring-klarna-checkout-on-woocommerce/)). You will need to configure them to be detected and used by WooCommerce. +2. Create a new page and add the `Checkout` Block +3. Select any element of the `Checkout` Block. You should see a notice with the list of incompatible gateways in the right sidebar of the editor (i.e., `Settings -> Block`) + +![image](https://user-images.githubusercontent.com/14235870/215767398-516a0378-8cdb-42f1-8770-6683a4429d40.png) + +4. Dismiss the `incompatible gateways` notice by clicking on the `X` button on its right top side: + +![image](https://user-images.githubusercontent.com/14235870/215777983-1c64cbe9-70da-4c5b-9045-2667d94a4a05.png) + +5. The notice should be removed, and The `make as default` & `sidebar compatibility notices` should be visible instead. Select another Checkout Inner Block. Make sure the `incompatible gateways` notice is still dismissed. +6. Refresh the page. Make sure the `incompatible gateways` notice is still dismissed. +7. Do the same test from step 2 to 6 using the `Cart` Block +8. Disable an incompatible payment gateway (`Plugins -> [Plugin_name] -> Deactivate` or `WooCommerce -> Settings -> Payments`, find the payment gateway and toggle it off) +9. Go to `Checkout` Block page, and select any element of it. You should see the notice again with the list **of only the enabled incompatible gateways** in the right sidebar of the editor (i.e., `Settings -> Block`) + +image + +10. Dismiss the notice (see step 4). Go through the steps 5 & 6 again. +11. Do the same test in step 9 & 10 in the `Cart` Block page +12. Enable the previously disabled incompatible payment gateway from step 8. Ensure we have the correct behavior when going through the steps 9 to 11. + +### Add Related Products block ([8522](https://github.com/woocommerce/woocommerce-blocks/pull/8522)) + +1. Edit the Single Product Template. +2. Below the `WooCommerce Single Product Block`, add the `Related Products block`. +3. Be sure that above the block, you see a notice (like the image below). +4. Check that the hierarchy in the list view is the same as the image below. +5. Save the template. +6. On the frontend side, click on a product. +7. Be sure that the products inside the `Related Products block` are the same as the row generated by the `WooCommerce Single Product Block`. + +![image](https://user-images.githubusercontent.com/4463174/220928747-8f0e786e-a738-4aea-98d0-63661bd471b3.png) + +### Fine-tune the Add to cart form block ([8482](https://github.com/woocommerce/woocommerce-blocks/pull/8482)) + +- Make sure you are using a block theme. +- Make sure you have the following product types created in your store: Simple, Variable, Grouped and External. +- Edit the Single Product template on the Site Editor ( e.g. path > wp-admin/site-editor.php?postType=wp_template&postId=woocommerce%2Fwoocommerce%2F%2Fsingle-product&canvas=edit&sidebar=%2Ftemplates). +- Insert the new **Add to Cart Form** block and save. +- Make sure in the editor you see a placeholder block and it matches the following: + +Screenshot 2023-02-20 at 14 51 16 + +- Access a single product page for a Simple product and ensure the content matches the one displayed on the screenshot: +Screenshot 2023-01-30 at 20 06 48 + +- Access a single product page for a Variable product and ensure the content matches the one displayed on the screenshot: + +Screenshot 2023-01-30 at 20 05 45 + +- Access a single product page for a Grouped product and ensure the content matches the one displayed on the screenshot: + +Screenshot 2023-01-30 at 20 03 51 + +Screenshot 2023-01-30 at 20 04 53 + +- Access a single product page for an External product and ensure the content matches the one displayed on the screenshot: + +Screenshot 2023-01-30 at 20 07 33 + +### Move usage of wordpress-components to editor and replace with @wordpr… ([8463](https://github.com/woocommerce/woocommerce-blocks/pull/8463)) + +1. Make sure you didn't setup any shipping methods. It can be checked in here: `wp-admin/admin.php?page=wc-settings&tab=shipping§ion` +2. Create new post +3. Add a Checkout block. + +**Expected:** Placeholder is displayed in a Shipping Options section +image + +4. Save the post and go to frontend + +**Expected:** Shipping options are not displayed + +5. Add a shipping option (`wp-admin/admin.php?page=wc-settings&tab=shipping§ion`, Add Shipping Zone -> Go through the form) +6. Go back to the post in editor + +**Expected:** There's no Placeholder in Shipping Options +image + +7. Go to the frontend + +**Expected:** Shipping options are there + +### Prevent double triggering select shipping on the same rate ([8497](https://github.com/woocommerce/woocommerce-blocks/pull/8497)) + +1. Set your default country to something like US/CA +2. Enable Local Pickup and add 2 locations to it. +3. In your Shipping zones, set shipping for Greece +4. Open Checkout, it should load on Local Pickup selected. +5. Change to regular shipping +6. Change country to Greece and set a city +7. Your City value should persist +8. Switch back to local pickup, it should be selected. +9. Switch back to regular shipping, it should work. + +### Do not mount the coupon form until toggled visible ([8525](https://github.com/woocommerce/woocommerce-blocks/pull/8525)) + +1. Add something to your cart and visit the cart block page. +2. Click the "add a coupon" link +3. The input should focus + +### Filter out saved payment methods for payment gateways that are not enabled ([8461](https://github.com/woocommerce/woocommerce-blocks/pull/8461)) + +1. Install Stripe, enable it, and checkout (save your card to the account) +2. Checkout another order but this time confirm the method you saved in step 1 is displayed as an option. +3. Go to Payment settings and uncheck the "enabled" checkbox for stripe. Do not disable the actual plugin. +4. Checkout again. Confirm the saved card is not visible. + +### Disable compatibility layer via hook ([8550](https://github.com/woocommerce/woocommerce-blocks/pull/8550)) + +1. With the [Twenty Twenty-Three](https://wordpress.org/themes/twentytwentythree/) theme installed, go to `Appearance » Editor`. +2. Edit the Product Catalog template, adding the Products block above the WooCommerce Product Grid Block. +3. Save. +4. Go to the front end and verify that the `WooCommerce Product Grid Block` is visible. + +### [Blockifying Product Archive Templates]: Implement the blockified template conversion for the Classic Template Block. ([8248](https://github.com/woocommerce/woocommerce-blocks/pull/8248)) + +#### Conversion is not yet possible (hidden behind feature flag) + +##### Prerequisites + +- WordPress: >=6.1 +- Make sure Single Product template is cleared out to the default state. To achieve that: + 1. Go to (`/wp-admin/site-editor.php?postType=wp_template`) + 2. Click three dots next to template and click "Clear customizations" + +##### Steps + +1. Enter the Single Product template +2. Check that placeholder description says "This block serves as a placeholder for your WooCommerce Single Product Block. It will display the actual product image, title, price in your store. You can move this placeholder around and add more blocks around to customize the template." +3. "Upgrade to Products block" button is not visible. + +Repeat for Product Catalog, Products by Category and Product Search Results templates. The placeholder description may vary slightly. + +## Feature plugin + +- N/A + +## Experimental + +### [Blockifying Product Archive Templates]: Implement the blockified template conversion for the Classic Template Block. ([8248](https://github.com/woocommerce/woocommerce-blocks/pull/8248)) + +#### Conversion is not possible on WP lower than 6.1 + +##### Prerequisites + +WordPress: <6.1 +Make sure Product Catalog and Products by Category templates are cleared out to the default state. To achieve that: + +1. Go to (`/wp-admin/site-editor.php?postType=wp_template`) +2. Click three dots next to template and click "Clear customizations" + +##### Steps + +1. Edit the Product Catalog template +2. Check that placeholder description says "This block serves as a placeholder for your WooCommerce Product Grid Block. It will display the actual product image, title, price in your store. You can move this placeholder around and add more blocks around to customize the template. Don't worry, you can always revert back." +3. "Upgrade to Products block" button is not visible. + +--- + +#### Convert classic templates on Product Archive templates + +##### Prerequisites + +- WordPress: >=6.1 +- Make sure Product Catalog/Products by Category/Products by Attribute/Products by Tag/Product Search Results templates are cleared out to the default state. To achieve that: + 1. Go to (`/wp-admin/site-editor.php?postType=wp_template`) + 2. Click three dots next to template and click "Clear customizations" + +##### Steps + +1. Enter the Product Catalog template +2. Check that placeholder description says "This block serves as a placeholder for your WooCommerce Product Grid Block. We recommend upgrading to the Products block for more features to edit your products visually. Don't worry, you can always revert back." +3. Open List View of the blocks +4. Click "Upgrade to Products block" button + +Screen Shot 2023-01-25 at 11 27 32 AM + +WooCommerce Product Grid Block is replaced with blocks: + +- Products (Beta) + - Store Breadcrumbs (video was recorded before Breadcrumbs were added) + - Archive Title + - Term Description (only in _Products By *_ templates) + - Store Notices + - Row + - Product Results Count + - Catalog Sorting + - Product Template + - Pagination + - No Results + +image + +5. Go to "Products (beta)" block settings +6. Make sure "Inherit query from template" is ENABLED! It should be by default. +7. Save the template +9. Go to frontend (`/shop`) and check it the blocks are displayed correctly. You should expect the view like this: + +image + +- Check the Product Results Count displays proper numbers, e.g. go to the page 2 (it should say "Showing 17–17 of 17 results" if you're using "standard" products set). +- Check the Catalog Sorting sorts the products correctly, e.g. by price. + + +Repeat the steps above for: + +- Products by Category (to check frontend, go to `/product-category/clothing/`) +- Expected view contains Breadcrums +image + +--- + +#### Convert classic templates on Product Search Results + +##### Prerequisites + +- WordPress: >=6.1 +- Make sure Product Search Results template is cleared out to the default state. To achieve that: + 1. Go to (`/wp-admin/site-editor.php?postType=wp_template`) + 2. Click three dots next to template and click "Clear customizations" + +##### Steps + +1. Enter the Product Search Results template +2. Check that placeholder description says "This block serves as a placeholder for your WooCommerce Product Search Results Block. We recommend upgrading to the Products block for more features to edit your products visually. Don't worry, you can always revert back." +3. Open List View of the blocks +4. Click "Upgrade to Products block" button +Screen Shot 2023-01-25 at 11 27 32 AM + +WooCommerce Product Grid Block is replaced with blocks: + +- Products (Beta) + - Search Results Title + - Store Notices + - Row + - Product Results Count + - Catalog Sorting + - Product Template + - Pagination + - No Results + - Paragraph (content: "No products were found matching your selection.") + - Product Search +image + +5. Go to "Products (beta)" block settings +6. Make sure "Inherit query from template" is ENABLED! It should be by default. +7. Add a Product Search block to the Header template +8. Save the template +9. Go to frontend (e.g. `/shop`) +10. Use Product Search in the template +11. Enter a phrase that would cover some product names like: `t shirt` or `beanie`. You should expect the product list +image +12. Enter a random phrase like `blah blah` or `cars`. You should expect the "No results" page with information and Product Search bar: +image + +--- + +#### Align attribute is preserved + +##### Prerequisites + +WordPress: >=6.1 +Make sure Product Catalog template is cleared out to the default state. To achieve that: + +1. Go to (`/wp-admin/site-editor.php?postType=wp_template`) +2. Click three dots next to template and click "Clear customizations" + +##### Steps + +1. Enter the Product Catalog template +2. Change the `align` setting of the Classic Template block to either "None" or "Full width" +image +3. Click "Upgrade to Products block" button: Blocks keeps the same `align` setting in Editor: + - Store Breadcrumbs + - Archive Title + - Store Notices + - Row + - Products +4. Save the template +5. Go to frontend (`/shop`): Blocks keeps the same width (expected to be 650px wide in case of "None" and full available width in case of "Full width" option) + +#### Product Archive - side by side comparison (editor) + +| Classic Template | Blockified Template | +|------------------|---------------------| +|. image | image | + +#### Product Archive - side by side comparison (frontend) + +| Classic Template | Blockified Template | +|------------------|---------------------| +|. image | image | + +#### Product Archive - copy update (editor) + +| Before | After | +|------------------|---------------------| +|.image | image | + +#### Single product - copy update (editor) + +| Before | After | +|------------------|---------------------| +|.image | image | + +Video presents the replacement of a Classic Template on two templates: Product Catalog and Products by Category + +