Fix typo in some tests and comments: 'blockbased' > 'block-based' (#47851)
* Fix typo in some tests and comments: 'blockbased' > 'block-based' * Add changelog file * Add JSDocs types * Replace 'block based' with 'block-based' in stock-reservation.md
This commit is contained in:
parent
91f91b5d82
commit
fae960c7bf
|
@ -95,7 +95,7 @@ In the above code snippet:
|
|||
|
||||
## How this all fits into Checkout Block vs Traditional Checkout
|
||||
|
||||
The point of which stock is reserved differs between the new Block based checkout and the traditional checkout, the main difference being that the Block based checkout reserves stock on entry so the customer isn't forced to fill out the entire checkout form unnecessarily.
|
||||
The point of which stock is reserved differs between the new block-based checkout and the traditional checkout, the main difference being that the block-based checkout reserves stock on entry so the customer isn't forced to fill out the entire checkout form unnecessarily.
|
||||
|
||||
![Checkout Processes](checkout.jpg)
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
Significance: patch
|
||||
Type: tweak
|
||||
Comment: Fix typo in some tests and comments: 'blockbased' > 'block-based'
|
||||
|
||||
|
|
@ -597,7 +597,7 @@ class WC_Emails {
|
|||
}
|
||||
|
||||
/**
|
||||
* Renders any additional fields captured during block based checkout.
|
||||
* Renders any additional fields captured during block-based checkout.
|
||||
*
|
||||
* @param WC_Order $order Order instance.
|
||||
* @param bool $sent_to_admin If email is sent to admin.
|
||||
|
@ -634,7 +634,7 @@ class WC_Emails {
|
|||
}
|
||||
|
||||
/**
|
||||
* Renders any additional address fields captured during block based checkout.
|
||||
* Renders any additional address fields captured during block-based checkout.
|
||||
*
|
||||
* @param string $address_type Address type.
|
||||
* @param WC_Order $order Order instance.
|
||||
|
|
|
@ -460,7 +460,7 @@ function wc_get_default_shipping_method_for_package( $key, $package, $chosen_met
|
|||
* If the customer has selected local pickup, keep it selected if it's still in the package. We don't want to auto
|
||||
* toggle between shipping and pickup even if available shipping methods are changed.
|
||||
*
|
||||
* This is important for block based checkout where there is an explicit toggle between shipping and pickup.
|
||||
* This is important for block-based checkout where there is an explicit toggle between shipping and pickup.
|
||||
*/
|
||||
$local_pickup_method_ids = LocalPickupUtils::get_local_pickup_method_ids();
|
||||
$is_local_pickup_chosen = in_array( $chosen_method_id, $local_pickup_method_ids, true );
|
||||
|
|
|
@ -119,7 +119,7 @@ class Notices {
|
|||
}
|
||||
|
||||
/**
|
||||
* Replaces all notices with the new block based notices.
|
||||
* Replaces all notices with the new block-based notices.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
|
|
@ -25,7 +25,7 @@ class Installer {
|
|||
|
||||
/**
|
||||
* Modifies default page content replacing it with classic shortcode block.
|
||||
* We check for shortcode as default because after WooCommerce 8.3, block based checkout is used by default.
|
||||
* We check for shortcode as default because after WooCommerce 8.3, block-based checkout is used by default.
|
||||
* This only runs on Tools > Create Pages as the filter is not applied on WooCommerce plugin activation.
|
||||
*
|
||||
* @param array $pages Default pages.
|
||||
|
|
|
@ -121,7 +121,7 @@ test.describe( 'Shopper Cart & Checkout Block Tax Display', () => {
|
|||
await publishPage( page, checkoutBlockPageTitle );
|
||||
} );
|
||||
|
||||
test( 'that inclusive tax is displayed properly in blockbased Cart & Checkout pages', async ( {
|
||||
test( 'that inclusive tax is displayed properly in block-based Cart & Checkout pages', async ( {
|
||||
page,
|
||||
context,
|
||||
} ) => {
|
||||
|
@ -168,7 +168,7 @@ test.describe( 'Shopper Cart & Checkout Block Tax Display', () => {
|
|||
} );
|
||||
} );
|
||||
|
||||
test( 'that exclusive tax is displayed properly in blockbased Cart & Checkout pages', async ( {
|
||||
test( 'that exclusive tax is displayed properly in block-based Cart & Checkout pages', async ( {
|
||||
page,
|
||||
baseURL,
|
||||
context,
|
||||
|
@ -330,7 +330,7 @@ test.describe( 'Shopper Cart & Checkout Block Tax Rounding', () => {
|
|||
} );
|
||||
} );
|
||||
|
||||
test( 'that tax rounding is present at subtotal level in blockbased Cart & Checkout pages', async ( {
|
||||
test( 'that tax rounding is present at subtotal level in block-based Cart & Checkout pages', async ( {
|
||||
page,
|
||||
baseURL,
|
||||
} ) => {
|
||||
|
@ -389,7 +389,7 @@ test.describe( 'Shopper Cart & Checkout Block Tax Rounding', () => {
|
|||
} );
|
||||
} );
|
||||
|
||||
test( 'that tax rounding is off at subtotal level in blockbased Cart & Checkout pages', async ( {
|
||||
test( 'that tax rounding is off at subtotal level in block-based Cart & Checkout pages', async ( {
|
||||
page,
|
||||
baseURL,
|
||||
} ) => {
|
||||
|
@ -714,7 +714,7 @@ test.describe( 'Shopper Cart & Checkout Block Tax Levels', () => {
|
|||
} );
|
||||
} );
|
||||
|
||||
test( 'that applying taxes in blockbased Cart & Checkout of 2 different levels (2 excluded) calculates properly', async ( {
|
||||
test( 'that applying taxes in block-based Cart & Checkout of 2 different levels (2 excluded) calculates properly', async ( {
|
||||
page,
|
||||
baseURL,
|
||||
} ) => {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
/**
|
||||
* Util helper made for filling shipping details in the blockbased checkout
|
||||
* Util helper made for filling shipping details in the block-based checkout
|
||||
*
|
||||
* @param page
|
||||
* @param firstName
|
||||
* @param lastName
|
||||
* @param address
|
||||
* @param city
|
||||
* @param zip
|
||||
* @param {Object} page
|
||||
* @param {string} firstName
|
||||
* @param {string} lastName
|
||||
* @param {string} address
|
||||
* @param {string} city
|
||||
* @param {string} zip
|
||||
*/
|
||||
export async function fillShippingCheckoutBlocks(
|
||||
page,
|
||||
|
@ -39,14 +39,14 @@ export async function fillShippingCheckoutBlocks(
|
|||
}
|
||||
|
||||
/**
|
||||
* Util helper made for filling billing details in the blockbased checkout
|
||||
* Util helper made for filling billing details in the block-based checkout
|
||||
*
|
||||
* @param page
|
||||
* @param firstName
|
||||
* @param lastName
|
||||
* @param address
|
||||
* @param city
|
||||
* @param zip
|
||||
* @param {Object} page
|
||||
* @param {string} firstName
|
||||
* @param {string} lastName
|
||||
* @param {string} address
|
||||
* @param {string} city
|
||||
* @param {string} zip
|
||||
*/
|
||||
export async function fillBillingCheckoutBlocks(
|
||||
page,
|
||||
|
|
Loading…
Reference in New Issue