75 lines
3.7 KiB
Markdown
75 lines
3.7 KiB
Markdown
|
# Testing notes and ZIP for release 10.9.2
|
|||
|
|
|||
|
Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-blocks/files/12397992/woocommerce-gutenberg-products-block.zip)
|
|||
|
|
|||
|
## WooCommerce Core
|
|||
|
|
|||
|
### Bug Fixes
|
|||
|
|
|||
|
#### Load Interactivity API in `bootstrap.php`. [#10657](https://github.com/woocommerce/woocommerce-blocks/pull/10657)
|
|||
|
|
|||
|
> **Note**
|
|||
|
> Ignore the first step if testing in WooCommerce Core.
|
|||
|
|
|||
|
1. Install this custom build of WooCommerce that includes this patch: [woocommerce.zip](https://github.com/woocommerce/woocommerce-blocks/files/12397185/woocommerce.zip).
|
|||
|
2. Make sure that `WooCommerce Blocks` plugin is not active.
|
|||
|
3. Open the Site Editor and ensure that you are using the blockified template on the Product Catalog template.
|
|||
|
4. Visit the `/shop` page and ensure that the Product Button(Add to Cart) works as expected.
|
|||
|
|
|||
|
#### Make View Cart link displayed below the Add to Cart button. [#10675](https://github.com/woocommerce/woocommerce-blocks/pull/10675)
|
|||
|
|
|||
|
1. Edit Product Catalog template
|
|||
|
2. Add Products (Beta) block if it's not there already
|
|||
|
3. Save and go to frontend
|
|||
|
4. Add a simple product to cart
|
|||
|
5. Expected: "View Cart" link appears BELOW the Add to Cart button
|
|||
|
|
|||
|
<table>
|
|||
|
<tr>
|
|||
|
<td>Before:
|
|||
|
<br><br>
|
|||
|
<img width="955" alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/20098064/6debf2e7-b529-4c45-828b-9705686f08a3">
|
|||
|
</td>
|
|||
|
<td>After:
|
|||
|
<br><br>
|
|||
|
<img width="956" alt="image" src="https://github.com/woocommerce/woocommerce-blocks/assets/20098064/a1b7cb06-0ac0-40d8-b865-5c87977016a8">
|
|||
|
</td>
|
|||
|
</tr>
|
|||
|
</table>
|
|||
|
|
|||
|
## Should be tested by the development team exclusively
|
|||
|
|
|||
|
### Bug Fixes
|
|||
|
|
|||
|
#### Fix: Made migration migrate block templates in the current theme. [#10641](https://github.com/woocommerce/woocommerce-blocks/pull/10641)
|
|||
|
|
|||
|
1. Install a theme that uses block templates. In my case I used FotaWP.
|
|||
|
2. Go to Appearance > Edit > Templates and reset the cart/checkout templates to default.
|
|||
|
3. Delete has_migrated_cart and has_migrated_checkout options from your options database.
|
|||
|
4. View a page on the store.
|
|||
|
5. Confirm by viewing the cart and checkout pages that they inherited the block template from the theme. In this case for instance, instead of the default distraction free template we had, you'll see something like this:
|
|||
|
|
|||
|
![Screenshot 2023-08-17 at 12 55 00](https://github.com/woocommerce/woocommerce-blocks/assets/90977/bf55ff6c-e8f7-440e-99ed-ec1e676a988b)
|
|||
|
|
|||
|
#### Fix/10530 Inconsistent new install behaviour for templates when using block themes. [#10608](https://github.com/woocommerce/woocommerce-blocks/pull/10608)
|
|||
|
|
|||
|
1. Get a new env ready to install WP/WC using WP-CLI. You can use this [quick docker setup](https://github.com/woocommerce/woocommerce-blocks/files/12394720/new-test-env.zip)
|
|||
|
2. Alias or copy this branch, built ready to use as a plugin into the env
|
|||
|
3. Using WP-CLI set up WC using the following command sequence (alter args to suit your case)
|
|||
|
|
|||
|
```sh
|
|||
|
wp config create --dbname=wordpress --dbuser=wordpress --dbpass=wordpress --dbhost=db --force
|
|||
|
wp core install --url=http://localhost --title='WP Staging' --admin_user=admin --admin_password=pass --admin_email=admin@wp.loc
|
|||
|
wp option set blog_public 0
|
|||
|
wp plugin activate woocommerce-blocks
|
|||
|
wp plugin install woocommerce --version=6.0.0
|
|||
|
wp plugin activate woocommerce
|
|||
|
wp plugin install wordpress-importer --activate
|
|||
|
wp import ./wp-content/plugins/woocommerce/sample-data/sample_products.xml --authors=skip
|
|||
|
wp plugin update woocommerce
|
|||
|
```
|
|||
|
|
|||
|
4. Visit the store for the first time, head to Appearance > Editor > Templates > Manage all templates verify that Cart and Checkout have customizations saved
|
|||
|
5. Open each one and verify they contain the shortcode version
|
|||
|
6. Test the complete checkout flow.
|