Zip file for testing: woocommerce-gutenberg-products-block.zip
Add extensibility point for extensions to filter payment methods (4668)
- Make sure Check payments and Cash on delivery payment methods are activated and appear in the Checkout block
- Install this extension specifically made for testing: woocommerce-payment-method-test.zip
import { registerPaymentMethodExtensionCallbacks } from '@woocommerce/blocks-registry';
registerPaymentMethodExtensionCallbacks( 'woocommerce-marketplace-extension', {
cod: ( arg ) => {
return false;
},
cheque: ( arg ) => {
return arg.billingData.city === 'Denver';
},
} );
- Go to the Checkout block
- Notice that Cash on delivery is no longer available
- Notice that Check payments are available only when the City is set to "Denver"
Because of experimental work done during this release, we need to ensure no regressions have been made to the checkout block. Please smoke test the checkout block.
- Enable a few different payment methods in your store.
- Add some products to your cart.
- Go to the Checkout block, ensure it displays with no errors and the correct cart contents are showing.
- Ensure you can enter your shipping and billing addresses.
- Ensure validation still works, (focus a field, delete the content and ensure an error is shown, e.g. postcode field).
- Ensure you can use different payment methods.
- Ensure you can check out and that the order is placed.
Fix Product Search block displaying incorrectly (4740)
- Add the Product Search block to a page.
- Ensure it renders at full width with a gap between the input and the button.
Before | After |
---|---|
We're hiring! Come work with us!
🐞 Found a mistake, or have a suggestion? Leave feedback about this document here.