plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/1120.md
Zip file for testing: woocommerce-gutenberg-products-block.zip
checkout/order-received/1772/?key=wc_order_GAE4XxQ4k7E77 would become checkout/order-received/1772Before testing, take note of the frontend appearance of the cart/checkout pages.
Page: Cart and Page: Checkout. For both, click the three dots in the inspector and "revert customisations". This will remove any existing template customisations or past migration.Enable local pickup.
Go to the Checkout block page, and add an address for which you don't have a shipping zone defined without changing the selected shipping method.
Confirm local pickup is selected as a shipping method for the address, and shipping is not available for the given address.
In another tab, open shipping zones and add a new rate to your current zone.
Refresh checkout.
Confirm local pickup is selected as a shipping method for the address, and shipping is also available for the given address.
Product Hero pattern to a new page.Align to full.postcode-validator to 3.8.15 to validate "new" Taiwanese postcodes #1092412345) verify there is no validation error.123456), verify there is no validation error.| Before | After |
|---|---|
Shipping calculator in the Shipping inner block.Change address in the Shipping section.Nicaragua as the country and enter a 5-digit postal code (e.g., 13024).01234, and see that the validation fails.You'll need a WooExpress site. You can create one for free from here.
To upload Woo Blocks ZIP file, you can either upgrade your WooExpress site or use the CLI.
Go to Appearance -> Editor -> Templates -> Checkout (or Cart)
Clear customizations of the Checkout (or Cart) template if necessary and reload the page
Click on Edit to access the template editor
Within the Checkout (or Cart) template editor, open the List View and try to delete the Gift Card Form or the Gift Card Totals Blocks. Untick Prevent removal under the Unlock option:
Ensure the Gift Card Form (or Gift Card Totals) Block isn't deleted (It's actually being reinserted each time we click on Delete))
Try to delete the Checkout (or Cart) Block
Ensure the Checkout (or Cart) Block is successfully deleted
Install and activate the woo-ai plugin (it is available within the WooCommerce monorepo, under the plugins directory).
From your dashboard, head over to WooCommerce > Settings > Advanced > Features
Fill out a description for your business and save
Now head over to Tools > Scheduled Actions
Search for the woocommerce_update_patterns_content hook
Make sure the action was successfully scheduled:
If the status is still Pending when you check, click on Run and ensure it is successfully executed. If the status is already Complete, no action is required as the process already finished successfully.
Check your error log and make sure you don't see any PHP errors.
Create a new JN install with both Jetpack and Woocommerce installed and activated.
In your wp-admin, you should see the following section for Jetpack:
Click on "Set up Jetpack" and make sure the connection is successful:
Using Postman or any other equivalent app, make a POST request to the following endpoint: wp-json/wc/store/patterns (e.g. https://outside-dwelling.jurassic.ninja/wp-json/wc/store/patterns). Since you are not authenticated, you should get the following error:
Now, we need to make sure the request works for admin users: you can do so by adding your credentials via Postman directly or, alternatively:
From your admin screen, click on Tools > Plugin editor:
Select the WooCommerce Blocks plugin and add the following within your woocommerce-blocks/woocommerce-gutenberg-products-block.php file:
function connect_to_endpoint() {
update_option( 'woocommerce_blocks_allow_ai_connection', true );
$request = new WP_REST_Request( 'POST', '/wc/store/patterns' );
$request->set_param( 'business_description', 'selling art' );
$response = rest_do_request( $request )->get_data();
error_log( print_r( $response, true ) );
}
add_action( 'admin_init', 'connect_to_endpoint' );
Now access your JN install via SSH (you can copy the command for access over here:)
Head over to your wp-content directory and tail the debug.log file. Example:
cd /srv/users/user964902c9/apps/{insert-your-jurassic-ninja-username-here}/public/wp-content
tail -f debug.log
Now go back to your browser and refresh the page in the main admin page e.g. https://your-site.jurassic.ninja/wp-admin
Go back to your terminal and confirm that you can see the following response: