|
| 1 | +## Testing notes and ZIP for release 5.9.0 |
| 2 | + |
| 3 | +Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-gutenberg-products-block/files/7154664/woocommerce-gutenberg-products-block.zip) |
| 4 | + |
| 5 | +## Feature plugin and package inclusion in WooCommerce |
| 6 | + |
| 7 | +### Twenty Twenty: Adjust font styles for filter and product grid blocks ([4545](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/4545)) |
| 8 | + |
| 9 | +1. Activate Twenty Twenty |
| 10 | +2. Create a new page |
| 11 | +3. Add the column block (1/3 + 2/3) to the created page |
| 12 | +4. Add the _Active Product Filters_, _Filter Products by Price_, _Filter Products by Attribute_ & _Filter Products by Stock_ blocks to the 1/3 column |
| 13 | +5. Add the _All Products_ & _Products by Category_ blocks to the 2/3 column |
| 14 | +6. Check the font sizes of the elements in the editor |
| 15 | +7. Check the font sizes of the elements in the frontend |
| 16 | + |
| 17 | +### Add extensibility point for extensions to filter payment methods ([4668](https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/4668)) |
| 18 | + |
| 19 | +1. Make sure Check payments and Cash on delivery payment methods are activated and appear in the Checkout block |
| 20 | +2. Install this extension specifically made for testing: [woocommerce-payment-method-test.zip](https://github.com/woocommerce/woocommerce-gutenberg-products-block/files/7154980/woocommerce-payment-method-test.zip) - the code it includes is: |
| 21 | +```js |
| 22 | +import { registerPaymentMethodExtensionCallbacks} from '@woocommerce/blocks-registry'; |
| 23 | + |
| 24 | +registerPaymentMethodExtensionCallbacks( 'woocommerce-marketplace-extension', |
| 25 | + { |
| 26 | + cod: ( arg ) => { return false; }, |
| 27 | + // this zipcode works only for Germany |
| 28 | + cheque: ( arg ) => { return arg.billingData.postcode === "12345";} |
| 29 | + } |
| 30 | +); |
| 31 | +``` |
| 32 | +3. Go to the Checkout block |
| 33 | +4. Notice that Cash on delivery is no longer available |
| 34 | +5. Notice that Check payments are available only when the Country is Germany and the Postcode for Billing data is 12345 |
0 commit comments