12 KiB
12 KiB
Testing notes and ZIP for release 7.5.0
Zip file for testing: woocommerce-gutenberg-products-block.zip
Feature plugin and package inclusion in WooCommerce
Add PHP templates support to the Active Product Filters block. (6295)
- With a block theme, go to Edit Site > Product Catalog.
- Add
Active Product Filters
,Filter Products by Stock
,Filter Products by Attribute
,Filter Products by Price
blocks to the template. - Go to the shop page on the front end.
- Select some filters, see the page reload and the selected filters appear in the Active Products Filters block.
- Remove an arbitrary filter, see the page reload and the removed filter doesn't appear in the Active Product Filters block. See the filtered product results updates accordingly.
Enhanced the Featured Category block (6276)
- Use a block theme (such as Twenty Twenty Two)
- Add the ”Featured Category” block to a page and select a product.
- Make sure that the resizable handle is a shown fully (it should be a full circle), and that is shown only when the block is selected.
- Select the block and apply a Duotone filter.
- Make sure the overlay color control is under the
Overlay
section and change the overlay color to a gradient. - Add a padding to the block and make sure the padding is added on the inside of the wrapper (i.e. no white space is created outside of the block).
- Move around your image focal point and make sure you can actually move around the entire image and not only constrained on one dimension.
- Apply “Image fit > Cover” and notice how the image will scale along with the container. As opposed to point 5 above, now the focal point picker is limited to one dimension.
- Increase the
padding-top
of the block and notice that the content can't get pushed out of the container, but instead the container resizes. - When that's the case, try resizing the block through the handle to a lower height: the handle should move but the container should not resize. When the mouse is lifted, the handle should return to its original position.
- For the steps 4–9 above, save the page and check that the styles are applied correctly on the front-end (as the block is rendered statically via PHP).
Allow adding the Filter Products by Stock block to Product Catalog templates to filter products. (6261)
- With a block theme, go to Appearance > Editor > Template > Product Catalog.
- Add the Filter Products by Stock block above the product grid.
- Be sure that you have some out stock products. Check "out of stock" on the frontend.
- Notice the page reloads and the list of products updates accordingly.
- Add a test page to your site with the
All Products
block, and theFilter Product by Stock
block and ensure no regressions have been introduced here.
Enhanced the Featured Product block (6181)
- Use a block theme (such as Twenty Twenty Two)
- Add the ”Featured Product” block to a page and select a product.
- Make sure that the resizable handle is a shown fully (it should be a full circle), and that is shown only when the block is selected.
- Select the block and apply a Duotone filter.
- Make sure the overlay color control is under the
Overlay
section and change the overlay color to a gradient. - Add a padding to the block and make sure the padding is added on the inside of the wrapper (i.e. no white space is created outside of the block).
- Move around your image focal point and make sure you can actually move around the entire image and not only constrained on one dimension.
- Apply “Image fit > Cover” and notice how the image will scale along with the container. As opposed to point 5 above, now the focal point picker is limited to one dimension.
- Increase the
padding-top
of the block and notice that the content can't get pushed out of the container, but instead the container resizes. - When that's the case, try resizing the block through the handle to a lower height: the handle should move but the container should not resize. When the mouse is lifted, the handle should return to its original position.
- For the steps 4–9 above, save the page and check that the styles are applied correctly on the front-end (as the block is rendered statically via PHP).
Allow saved payment methods labels other than card/eCheck to display brand & last 4 digits if present. (6177)
-
Install latest dev/release version of WooCommerce Payments & setup an account in dev mode.
-
Under WooCommerce Payments -> Settings, Enable the new WooCommerce Payments checkout experience and add new payment methods.
- This should have enabled Euros in Multi-Currency automatically, but if not, go to WooCommerce > Settings > Multi-Currency and enable Euros as an additional currency.
-
Save SEPA account to your customer account in one of two ways:
- Add item to your cart and go to the classic checkout page, select SEPA, enter the account, and choose Save payment information to my account for future purchases., then check out.
- Go to My Account > Payment Methods, and add the SEPA method there.
- SEPA account to useAT611904300234573201 or other test numbers available here: https://stripe.com/docs/testing#sepa-direct-debit
-
Once the SEPA method is saved, add an item to your cart and go to the page with the checkout block.
-
Confirm that under Payment options you will see SEPA IBAN ending in 3201.
Store API: Allow Store API to filter products by custom taxonomies. (6152)
- Add an All Products Block to a page, add the Filter Products by Attribute Block, and Filter by Price Block too.
- Go to the page and use the filters, ensure they update the All Products Block correctly.
Filter Products by Attribute: Fix the page reload which happens when clicking the filter button on Woo templates using the Classic Template block. (6287)
- On a block theme, go to Edit Site > Product Catalog template.
- Add Active Filters and Filter Products by Attribute block to the template.
- Choose an attribute to filter, and make sure the filter button is toggled.
- Go to the shop page.
- Select an attribute, a reload should not happen until you click the filter button.
- Once the filter has been applied. Uncheck it, a reload should not happen until you click the filter button.
- Try this again with the filter button untoggled, although these reloads should now happen as soon as you check the attribute you're filtering by
- Check there are no regressions on All Products block.
Store API: Show visible attributes in simple products, and hidden attributes in variable products. (6274)
- Create a simple product with attributes and set them as visible.
- Using a REST client, fetch
wc/store/v1/products/:id
and check the attributes field for the product where:id
is the product id, in both cases, you should see the attributes you added. - Uncheck visible attributes, fetch your product again, no attributes should be returned.
- Turn the product into a variable product, keep attributes hidden but check "used for variations".
- Fetch your product again, you should see your attributes.
- Make them visible, you should still see the attributes.
Add RTL support for the Mini Cart icon. (6264)
- Add Mini Cart to the site (Header for block themes, Sidebar for classic theme).
- Set the language to an RTL language (ie: Arabic).
- See the Mini Cart looks good on the front end.
Fix page load problem due to incorrect URL to certain assets. (6260)
- Install WC 6.4 but move and symlink its folder.
mv wp-content/plugins/woocommerce ~/Desktop/woocommerce
ln -s ~/Desktop/woocommerce wp-content/plugins/woocommerce
- Install WooCommerce Subscriptions.
- Try to open wp-admin > WooCommerce > Home (/wp-admin/admin.php?page=wc-admin). With base branch, expect a blank page. With this PR branch, expect page loads normally.
Make Filters Products by Price work with Active Filters block for the PHP rendered Classic Template. (6245)
- Add the
Filter Products by Price
block &Active Filters
block to the Shop Page - Open the Shop page
- Use the
Filter Products by Price
block, the page should reload with the filter params now being in the URL too. - Check the
Active Filters
block shows the active price filter.
Fix attribute filter dropdown list z-index level. (6294)
- Create new page with Filter Products by Attribute and All Products block right under
- Configure Filter block to use Dropdown display style and show Colour attribute (if using sample products)
- Have products on sale in first row
- Visit page and focus on field to see dropdown
- All Products block Placeholder elements should be under the dropdown
- Sale badge shouldn't bleed through the dropdown
Fix Featured Product block frontend mismatch. (6263)
- Switch to a block-enabled theme (such as Twenty-twentytwo).
- Add the Featured Product block to a page.
- Confirm that it has a default, semi-transparent, black overlay and that a default height of 500 px or whatever the theme supports through the
featured_block::default_height
setting. - Publish the page.
- Preview the page and confirm that the block looks like the one in the editor (specifically for height and overlay).
- Play around with the styles of the block on the editor (change the overlay color, the padding, the opacity, the image fit etc.).
- Confirm they get correctly applied on the frontend.
Fix Customizer fatal error on PHP 8. (6317)
- Switch to PHP 8.
- Activate WC 6.5 beta 1 and Storefront.
- Apply change in this PR to
wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/MiniCart.php
. - Go to Appearance > Customize.
- See no fatal error, the Customizer is loading and working as expected.
Fix page refresh when using filters with the All Products block on non-product archive templates for WooCommerce. (6324)
- Activate Storefront
- Add the All Products block to a newly created page, along with a filter block such as Filter by Attribute
- Visit this page on the frontend and select some attributes to filter by.
- Observe the filters being applied without a page refresh.