Merged in feature/117-dev-dev01 (pull request #8)
auto-patch 117-dev-dev01-2023-12-15T16_09_06 * auto-patch 117-dev-dev01-2023-12-15T16_09_06
This commit is contained in:
@@ -34,15 +34,15 @@ export const WC_BLOCKS_IMAGE_URL = blocksConfig.pluginUrl + 'images/';
|
||||
export const WC_BLOCKS_BUILD_URL = blocksConfig.pluginUrl + 'build/';
|
||||
export const WC_BLOCKS_PHASE = blocksConfig.buildPhase;
|
||||
export const SHOP_URL = STORE_PAGES.shop?.permalink;
|
||||
export const CHECKOUT_PAGE_ID = STORE_PAGES.checkout.id;
|
||||
export const CHECKOUT_URL = STORE_PAGES.checkout.permalink;
|
||||
export const PRIVACY_URL = STORE_PAGES.privacy.permalink;
|
||||
export const PRIVACY_PAGE_NAME = STORE_PAGES.privacy.title;
|
||||
export const TERMS_URL = STORE_PAGES.terms.permalink;
|
||||
export const TERMS_PAGE_NAME = STORE_PAGES.terms.title;
|
||||
export const CART_PAGE_ID = STORE_PAGES.cart.id;
|
||||
export const CART_URL = STORE_PAGES.cart.permalink;
|
||||
export const LOGIN_URL = STORE_PAGES.myaccount.permalink
|
||||
export const CHECKOUT_PAGE_ID = STORE_PAGES.checkout?.id;
|
||||
export const CHECKOUT_URL = STORE_PAGES.checkout?.permalink;
|
||||
export const PRIVACY_URL = STORE_PAGES.privacy?.permalink;
|
||||
export const PRIVACY_PAGE_NAME = STORE_PAGES.privacy?.title;
|
||||
export const TERMS_URL = STORE_PAGES.terms?.permalink;
|
||||
export const TERMS_PAGE_NAME = STORE_PAGES.terms?.title;
|
||||
export const CART_PAGE_ID = STORE_PAGES.cart?.id;
|
||||
export const CART_URL = STORE_PAGES.cart?.permalink;
|
||||
export const LOGIN_URL = STORE_PAGES.myaccount?.permalink
|
||||
? STORE_PAGES.myaccount.permalink
|
||||
: getSetting( 'wpLoginUrl', '/wp-login.php' );
|
||||
export const LOCAL_PICKUP_ENABLED = getSetting< boolean >(
|
||||
|
||||
@@ -18,6 +18,8 @@ export interface AddressField {
|
||||
hidden: boolean;
|
||||
// Fields will be sorted and render in this order, lowest to highest.
|
||||
index: number;
|
||||
// The type of input to render. Defaults to text.
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export interface LocaleSpecificAddressField extends Partial< AddressField > {
|
||||
@@ -34,6 +36,7 @@ export interface AddressFields {
|
||||
city: AddressField;
|
||||
state: AddressField;
|
||||
postcode: AddressField;
|
||||
phone: AddressField;
|
||||
}
|
||||
|
||||
export type AddressType = 'billing' | 'shipping';
|
||||
@@ -167,6 +170,15 @@ export const defaultAddressFields: AddressFields = {
|
||||
hidden: false,
|
||||
index: 90,
|
||||
},
|
||||
phone: {
|
||||
label: __( 'Phone', 'woo-gutenberg-products-block' ),
|
||||
optionalLabel: __( 'Phone (optional)', 'woo-gutenberg-products-block' ),
|
||||
autocomplete: 'tel',
|
||||
type: 'tel',
|
||||
required: true,
|
||||
hidden: false,
|
||||
index: 100,
|
||||
},
|
||||
};
|
||||
|
||||
export default defaultAddressFields;
|
||||
|
||||
Reference in New Issue
Block a user