# Testing notes and ZIP for release 10.2.0 Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-blocks/files/11450388/woocommerce-gutenberg-products-block.zip) ## WooCommerce Core ### Add shop by price pattern ([#9373](https://github.com/woocommerce/woocommerce-blocks/pull/9373)) 1. Create a page and use the block inserter->patterns->WooCommerce and to insert the Shop by Price pattern. 2. Check that the preview shows up nicely and add the pattern to the page. 3. Update/save and check the frontend and ensure it is displaying nicely per design. ![image](https://user-images.githubusercontent.com/2132595/236313434-d5190202-82b7-4145-bf66-2e23bab31ca0.png) ### Mini Cart drawer: print width in PHP [#9329](https://github.com/woocommerce/woocommerce-blocks/pull/9329) 1. Add the Mini Cart block to the header of your site (via Appearance > Editor). 2. In the frontend, open the Mini Cart drawer clicking on the button. 3. Verify the drawer is opened instantly. Until now, there might be a small delay if the shopper clicked the button very quickly right after the page was loaded and the network was slow. Before | After --- | --- ![Enregistrament de pantalla des de 2023-05-03 11-15-25](https://user-images.githubusercontent.com/3616980/235877974-4c094a6a-ae92-4522-a769-52760916c78c.gif) | ![Enregistrament de pantalla des de 2023-05-03 11-14-17](https://user-images.githubusercontent.com/3616980/235877766-ceb23c1f-dd3a-4a0e-b40d-a1eca9963347.gif) ### Convert to use WP core blocks [#9340](https://github.com/woocommerce/woocommerce-blocks/pull/9340) 1. Create a page and use the block inserter->patterns->WooCommerce and to insert the Featured Category Triple pattern. 2. Check that the preview shows up nicely and add the pattern to the page. 3. Update/save and check the frontend and ensure it is displaying nicely per design. ![image](https://user-images.githubusercontent.com/2132595/236040017-6008e1b4-f878-4442-be9f-f327bd2e8eee.png) ### Add product hero pattern [#9181](https://github.com/woocommerce/woocommerce-blocks/pull/9181) 1. Create a page/post and use the block inserter->patterns->WooCommerce->Product Hero | Wide 2. Update/save and ensure the design is close to the suggested design seen below. ![image](https://user-images.githubusercontent.com/2132595/235963840-0b0f203a-5d69-4d7f-b68e-952a6249c9a4.png) ### Single Product Template - Related Products: fix items per page option [#9286](https://github.com/woocommerce/woocommerce-blocks/pull/9286) 1. Edit the Single Product Template. 2. Click on the button `Upgrade to Blockified Single Product template`. 3. Focus the `Related Products Controls` block. 4. Change the option `Items per Page`, for example put 1. (check the image below) 5. Save the template. 6. Visit a Product and be sure that the Related Products block shows the number of products that you selected before. (if you select a high number, there is the risk that there will be displayed fewer products. It is not a bug, but it means that aren't so many related products). ![image](https://user-images.githubusercontent.com/4463174/235158040-5ba081c4-1635-4fb9-8ab2-b7e3ce8aacc7.png) ### Remove duplicated code in BlockTypesController.php [#9283](https://github.com/woocommerce/woocommerce-blocks/pull/9283) 1. Change your theme to a classic theme (ie: Storefront). 2. Go to Appearance > Widgets. 3. Verify the All Products, Cart and Checkout block don't appear in the inserter. (Note: there is _Cart_ widget which _is_ available in the inserter, you can distinguish it from the block because it doesn't have a trolley icon) ![image](https://user-images.githubusercontent.com/3616980/235144478-759ecd4f-63bc-4722-80c1-6ae468e567e0.png) ### Fix Product Price styles leaking into the Mini Cart, Cart and Checkout blocks [#9276](https://github.com/woocommerce/woocommerce-blocks/pull/9276) #### Product Price styles don't leak into the Mini Cart block 1. Go to Appearance > Editor > Template Parts > Mini Cart. 2. Open the Styles sidebar > Blocks > Product Price. 3. Set some margin and color to the Product Price. 4. Verify that the new styles aren't applied to the product prices shown in the Mini Cart. 5. Go to the frontend and open the Mini Cart drawer. 6. Verify again that the styles you set in step 3 don't affect the product prices shown in the Mini Cart drawer. #### Product Price styles are still applied to the Single Product template 1. Go to Appearance > Editor > Templates > Single Product. Add the Product Price block somewhere in the template. 2. Open the Styles sidebar > Blocks > Product Price. 3. Set some margin and color to the Product Price. 4. Verify that the Product Price block has the margin and color you set. 7. Open the single product page in the frontend. 8. Verify that the Product Price block has the margin and color you set. #### Product Price styles are still applied to the Products and All Products blocks 1. Go to Appearance > Editor > Templates > Product Catalog. Add the Products and All Products blocks somewhere in the template. 2. Open the Styles sidebar > Blocks > Product Price. 3. Set some margin and color to the Product Price. 4. Verify that the Product Price inner blocks have the margin and color you set. 7. Open the Shop page in the frontend. 8. Verify that the Product Price inner blocks have the margin and color you set. ### Implement new Hero Product – Split pattern [#9191](https://github.com/woocommerce/woocommerce-blocks/pull/9191) 1. Create a new page or post 2. Make sure the `WooCommerce Hero Product – Split` pattern appears under the WooCommerce category dropdown. 3. Insert in and make sure it shows as expected on the design. ![image](https://user-images.githubusercontent.com/481776/235234292-4b8f7b6a-4846-439a-9266-5cea9e19fea4.png) ### Add featured category cover image [#9284](https://github.com/woocommerce/woocommerce-blocks/pull/9284) 1. Create a page and use the block inserter->patterns->WooCommerce and to insert the Featured Category Cover Image. 2. Insert the pattern and update/save and check the frontend and ensure it is displaying close to the design from [#9046](https://github.com/woocommerce/woocommerce-blocks/issues/9046) ![image](https://user-images.githubusercontent.com/2132595/235695902-d16abe15-9cbd-4633-959c-07c324dd765c.png) ### Prevent email address being removed when changing shipping method/entering shipping address [#9328](https://github.com/woocommerce/woocommerce-blocks/pull/9328) 1. Enable local pickup (WooCommerce -> Settings -> Shipping -> Local Pickup) and add some locations. 2. Add some shipping locations in WooCommerce -> Settings -> Shipping. 3. In an incognito window, add an item to your cart and go to the Checkout block. 4. Click the "Local Pickup" button in the shipping method selector. 5. Enter your email address, then click the "Shipping" button. Ensure the email address remains as you entered it. 6. Change the email address again, put something different in. 7. Edit the "First name" field of the shipping address. Ensure the email address remains as you entered it. 8. Uncheck the "Use shipping as billing" checkbox and check out with two different addresses. Ensure the addresses are correct in the order confirmation email and in the WooCommerce back end. ### [Pattern] Add new Hero product 3 split pattern [#9319](https://github.com/woocommerce/woocommerce-blocks/pull/9319) 1. Create a new page or post 2. Make sure the `Hero product 3 split` pattern appears under the WooCommerce category dropdown. 3. Insert in and make sure it shows as expected on the design. ![image](https://user-images.githubusercontent.com/186112/234288498-1fcc67e4-2d63-4550-b669-b6139150fe30.png) ### Rename Add to Cart [#9315](https://github.com/woocommerce/woocommerce-blocks/pull/9315) 1. Open the Site Editor. 2. Go to the Single Product Template. 3. Click on the button "Upgrade to Blockified Single Product Template". 4. Click on the `Add to Cart" button. 5. On the sidebar, check the name of the block. Be sure that the name is "Add to Cart with Options". ### Product Image Gallery: fix resize width when the window resizes [#9299](https://github.com/woocommerce/woocommerce-blocks/pull/9299) 1. Edit the Single Product Template. 2. Switch to the blockified version. 3. Save. 4. Visit a product page that has multiple images (if you are using test products, you can visit the `Logo Collection` product. 5. Be sure that the Product Image Gallery block doesn't overlap with the text when you resize the window. | Before | After | | ------ | ----- | |