plugins/woocommerce/client/blocks/docs/internal-developers/testing/releases/870.md
Zip file for testing: woocommerce-gutenberg-products-block.zip
| Before | After |
|---|---|
Font size: 14px Font weight: normal Text decoration: underlined
none (no underline) while the other properties remain the same:Font size: 14px Font weight: normal Text decoration: none
/wp-admin/edit.php?post_type=custom-css-js and add the following JS code snippet:const label = () => 'Pay now';
const {__experimentalRegisterCheckoutFilters} = window.wc.blocksCheckout;
__experimentalRegisterCheckoutFilters('custom-place-order-button-label', {
placeOrderButtonLabel: label,
});
Pay now./wp-admin/admin.php?page=snippets and add the following PHP code snippet:add_filter( 'woocommerce_should_load_paypal_standard', '__return_true' );
/wp-admin/admin.php?page=wc-settings&tab=checkout§ion=paypal and select the
options Enable PayPal Standard and Enable PayPal sandbox.PayPal.Proceed to PayPal.PayPal, e.g. Credit Card (Stripe).Place Order./wp-admin/options-general.php and select German as the Site Language./wp-admin/update-core.php?force-check=1 and fetch translations.PayPal, e.g. Credit Card (Stripe).Kostenpflichtig bestellen.The full instructions for testing this PR can be found here . At a minimum, we will need to smoke test by trying the different stripe failure modes
showRemoveItemLink as a new checkout filter to allow extensions to toggle the visibility of the Remove item button under each cart line item. (7242)Remove item button showing up for a product
called Beaniedocs/third-party-developers/extensibility/checkout-block/available-filters.md file and ensure it is good,
and the new text we added to describe the filter makes sense.Install the Google Analytics Integration Extension
Set up the extension with a GT-X type ID from your Google Analytics account. Google Analytics account is required to test this. This can be retrieved by going to the analytics dashboard and going to a data stream > Configure Tag Settings, see full instructions here
Install Google Analytics Debugger browser extension. It needs to be installed, but do not click it (debug mode should be off).
Go to the store and trigger some events using the All Products Block and Cart block. For example an add to cart event.
Google Analytics Debugger should indicate that an event was fired.
Instead of the Google Analytics Debugger we can also check the Browser Dev Tools > Network and confirm we see
requests being sent to a URL similar to: https://region1.google-analytics.com/g/collect (region could vary)
trunk.Cart-Token header that can be used to retrieve the cart from the corresponding session via GET /wc/store/v1/cart. (5953)/wc/store/v1/cart/add-item. Note down the value of the Cart-Token header./wc/store/v1/cartCart-Token and the value you noted earlier./wp-admin/admin.php?page=wc-settings&tab=checkout.| Before | After |
|---|---|
wp-admin/admin.php?page=wc-settings&tab=shipping§ion=options page.Force shipping to the customer billing address option and save the changes.RangeError: Maximum call stack size exceeded or similar appear.| Before | After |
|---|---|
// if ( empty( $customer_id ) ) {
$session_data = WooPaySession::UNSANITIZED_get_data();
$blog_checkout_url = esc_url( add_query_arg( 'skip_platform_checkout', 'true', $session_data['store_data']
['blog_checkout_url'] ) );
/* translators: %1$s opening anchor tag with url, %2$s closing anchor tag */
$error_message = __( 'we were unable to process your payment. Please %1$s go back to the merchant store %2$s and
log into WooPay again.', 'woopay' );
$open_tag = '<a href="' . $blog_checkout_url . '">';
$close_tag = '</a>';
throw new InvalidSessionException(
sprintf( $error_message, $open_tag, $close_tag ),
);
// }
| Before | After |
|---|---|
I want to receive updates about products and promotions. checkbox in the customer information block. Ensure it only displays once.| Before | After |
|---|---|
Font size: 14px Font weight: normal Text decoration: underlined
none (no underline) while the other properties remain the same:Font size: 14px Font weight: normal Text decoration: none