You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Go to Appearance > Editor and add the Mini Cart block to the store header.
Save the changes.
In the frontend, click on the Mini Cart. The drawer should open and show the "empty cart" message.
Go to the shop page and add a product to your cart.
Click on the Mini Cart. The drawer should open and show the product you just added.
Disable the plugins to installed in step 1.
Remove wc-settings from Mini Cart block dependencies #8703, Preload Mini Cart inner blocks frontend scripts #8653
Add the Mini Cart block to the header of your store.
In the frontend, open the Network tab of your browser devtools and verify the Mini Cart inner blocks are being preloaded (you can search for empty-cart-frontend or filled-cart-frontend scripts).
Also in the frontend, verify you can open the Mini Cart, interact with its inner blocks (ie: change the quantity of a product, remove a product, etc.).
Only print wp.apiFetch.createPreloadingMiddleware() when needed #8647
Add the Mini Cart block to the header of your store.
Create a post or page with the Cart block and another one with the Checkout block.
In the frontend, add some products to your cart and open the Mini Cart. Verify you can change the quantity of products and you can remove them.
Go to the Cart page and check that there are no extra fetch requests to wc/store/cart in the Network tab of your browser devtools (you can open them with F12).
Go to the Checkout page and make sure there is no error and you can place an order (checkout works as normal).
Mini Cart drawer close button: inherit text color and improve alignment #8605
Switch to a dark theme (ie: TT3) and set a dark styling (ie: Appearance > Editor > edit a template > Style > Browse styles > Pilgrimage).
Add the Mini Cart block to the header of a template.
In the frontend, click on it so it opens the drawer.
Verify the close button inherits the text color and on the right it's aligned with the product prices below.
Before
After
Now, to verify the layout still works if there are notices, edit one of the products you have in the cart and set it out of stock.
Go back to the frontend, open the drawer and verify the close button is still visible.
Open the Inspector Controls and add the “Product Attributes” advanced filter.
The Attributes selector component should show up in an uninteractable loading state.
Once loading finishes, the Attributes should appear, collapsed.
Uncollapse a section
Select a few attributes.
Publish your page.
Check on the frontend to see that the correct products are displayed.
Checkbox behavior
Repeat steps 1–5 above.
Click on some terms checkboxes.
Notice that the parent checkbox will be in the indeterminate state ([-]).
Select all the children.
Notice parent checkbox will be checked.
Uncheck the parent checkbox.
All the children should be unchecked.
Check the parent checkbox.
All the children should be checked.
Uncheck a few children.
Check the parent checkbox.
All children should be checked.
Token input behavior
Repeat steps 1–4 above.
Start typing something within the input.
The checklist should be correctly filtered showing breadcrumbs.
Try the behavior for both collapsed and uncollapsed states.
Every time a checkbox is checked, it should have the corresponding token in the input field and viceversa.
Tokens can be correctly removed from the input field and this will uncheck the corresponding checkbox.
Fix Products block Add to Cart button when AJAX on archives is disabled #8532
Go to WooCommerce > Settings > Products and disable the Enable AJAX add to cart buttons on archives checkbox.
Add a Products block to a post or page.
In the frontend, verify clicking on “Add to cart” adds the product to the cart with a page refresh.
Optionally, test also the option Redirect to the cart page after successful addition, test variable products, out of stock products, etc. and verify they can (or cannot) be added to the cart as you would expect.
[Products]: Fix attributes filters that do not update the editor preview correctly #8611
Create new post
Add Products block
Add “Product Attributes” filter from “Advanced Filters” in the inspector controls.
Add some attributes filter
Expected: Preview changes according to the applied attribute