diff --git a/plugins/woocommerce-blocks/assets/js/blocks/checkout/form-step/editor.scss b/plugins/woocommerce-blocks/assets/js/blocks/checkout/form-step/editor.scss index 5c1c3f6daff..5e692ade87e 100644 --- a/plugins/woocommerce-blocks/assets/js/blocks/checkout/form-step/editor.scss +++ b/plugins/woocommerce-blocks/assets/js/blocks/checkout/form-step/editor.scss @@ -4,8 +4,11 @@ } .wc-block-components-checkout-step__description-placeholder { opacity: 0.5; + display: none; + .is-selected & { + display: block; + } } - .wc-block-components-checkout-step__title { display: flex; width: 100%; diff --git a/plugins/woocommerce-blocks/assets/js/blocks/checkout/inner-blocks/checkout-shipping-method-block/edit.tsx b/plugins/woocommerce-blocks/assets/js/blocks/checkout/inner-blocks/checkout-shipping-method-block/edit.tsx index a212d8a6da2..787257ac3cd 100644 --- a/plugins/woocommerce-blocks/assets/js/blocks/checkout/inner-blocks/checkout-shipping-method-block/edit.tsx +++ b/plugins/woocommerce-blocks/assets/js/blocks/checkout/inner-blocks/checkout-shipping-method-block/edit.tsx @@ -3,15 +3,16 @@ * External dependencies */ import classnames from 'classnames'; -import { useState } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import { PanelBody, ToggleControl, __experimentalRadio as Radio, __experimentalRadioGroup as RadioGroup, + ExternalLink, } from '@wordpress/components'; import { Icon, store, shipping } from '@wordpress/icons'; +import { ADMIN_URL, getSetting } from '@woocommerce/settings'; import { InspectorControls, useBlockProps, @@ -21,6 +22,7 @@ import { useShippingData } from '@woocommerce/base-context/hooks'; import { innerBlockAreas } from '@woocommerce/blocks-checkout'; import { useDispatch, useSelect } from '@wordpress/data'; import { CHECKOUT_STORE_KEY } from '@woocommerce/block-data'; +import ExternalLinkCard from '@woocommerce/editor-components/external-link-card'; /** * Internal dependencies @@ -238,6 +240,43 @@ export const Edit = ( { } /> + +

+ { __( + 'Methods can be made managed in your store settings.', + 'woo-gutenberg-products-block' + ) } +

+ + +
id ) { + return $acc; + } if ( $method->supports( 'settings' ) ) { $acc[] = [ 'id' => $method->id, diff --git a/plugins/woocommerce-blocks/src/Shipping/PickupLocation.php b/plugins/woocommerce-blocks/src/Shipping/PickupLocation.php index 42ded4b3b48..1dd18168617 100644 --- a/plugins/woocommerce-blocks/src/Shipping/PickupLocation.php +++ b/plugins/woocommerce-blocks/src/Shipping/PickupLocation.php @@ -15,7 +15,7 @@ class PickupLocation extends WC_Shipping_Method { */ public function __construct() { $this->id = 'pickup_location'; - $this->method_title = __( 'Pickup Locations', 'woo-gutenberg-products-block' ); + $this->method_title = __( 'Local Pickup', 'woo-gutenberg-products-block' ); $this->method_description = __( 'Allow customers to choose a local pickup location during checkout.', 'woo-gutenberg-products-block' ); $this->init(); }