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 was archived by the owner on Feb 23, 2024. It is now read-only.
### Enhance: Bring back user to 1st page when filters are changed [#9952](https://github.com/woocommerce/woocommerce-blocks/pull/9952)
61
61
62
+
Scenario 1
63
+
62
64
1. Create a new post.
63
-
2. Add all filter blocks and a 'Products Beta' block to it.
65
+
2. Add all filter blocks (Filter by Attributes, Filter by Price, Filter by Stock Status, etc) and the 'Products (Beta)' block to it.
64
66
3. Save the post and navigate to the frontend.
65
-
4.Navigate to the 2nd page using pagination.
67
+
4.Using the block pagination, navigate to the 2nd page of products
66
68
5. Modify any filter and confirm that the page number resets to the 1st page upon filter alteration.
67
-
6. Repeat the above steps and validate that this also holds true for:
68
-
- 'Product Collection' block (The product collection block is currently in the experimental phase and is not shipped with the plugin/core)
69
-
- 'Classic WooCommerce Product Grid Block'
70
-
- Note: This behavior doesn't affect the 'All Products' block.
69
+
70
+
Scenario 2
71
+
72
+
1. Make sure you have a block theme enabled, such as Twenty-twenty three.
73
+
2. Head over to Edit Site > Templates > Product Catalog.
74
+
3. Add all filter blocks (Filter by Attributes, Filter by Price, Filter by Stock Status, etc) and the 'Classic WooCommerce Product Grid Block' block to it.
75
+
4. Save the post and navigate to the Shop page.
76
+
5. Using the block pagination, navigate to the 2nd page of products
77
+
6. Modify any filter and confirm that the page number resets to the 1st page upon filter alteration.
71
78
72
79
### Adjust Banner padding to improve mobile experience [#10107](https://github.com/woocommerce/woocommerce-blocks/pull/10107)
73
80
@@ -85,16 +92,7 @@ Before | After
85
92
1. Make sure you have a block theme enabled, such as Twenty-twenty three.
86
93
2. Head over to Edit Site > Templates > Single Product.
87
94
3. Make sure you have the blockified version of this template up and running: if you don't, click on the "Transform into blocks" button. Delete/remove both the Product Details and the Related Products blocks and save.
88
-
4. Within any active plugin (e.g., within the woocommerce-gutenberg-products-block.php file), add the following:
89
-
90
-
```php
91
-
add_action( 'woocommerce_single_product_summary', function () {
92
-
global $product;
93
-
$product->get_title();
94
-
} );
95
-
```
96
-
97
-
5. Access any Single Product on the front end and ensure everything works as expected: no Fatal Errors should be triggered.
95
+
4. Access any Single Product on the front end and ensure everything works as expected: no Fatal Errors should be triggered.
98
96
99
97
### Adjust the image of the Discount banner with image pattern [#10108](https://github.com/woocommerce/woocommerce-blocks/pull/10108)
0 commit comments