Add store street, city and postcode fields to settings > general
This commit is contained in:
parent
6d1c133a3e
commit
21d2bee658
|
@ -47,11 +47,46 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
|
||||
$settings = apply_filters( 'woocommerce_general_settings', array(
|
||||
|
||||
array( 'title' => __( 'General options', 'woocommerce' ), 'type' => 'title', 'desc' => '', 'id' => 'general_options' ),
|
||||
array(
|
||||
'title' => __( 'Store Address', 'woocommerce' ),
|
||||
'type' => 'title',
|
||||
'desc' => __( 'This is where your business is located. Tax rates and shipping rates will use this address.', 'woocommerce' ),
|
||||
'id' => 'store_address'
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Base location', 'woocommerce' ),
|
||||
'desc' => __( 'This is the base location for your business. Tax rates will be based on this country.', 'woocommerce' ),
|
||||
'title' => __( 'Street address', 'woocommerce' ),
|
||||
'desc' => __( 'The street address for your business location.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_store_address',
|
||||
'css' => 'min-width:350px;',
|
||||
'default' => '',
|
||||
'type' => 'text',
|
||||
'desc_tip' => true,
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Street address 2', 'woocommerce' ),
|
||||
'desc' => __( 'An additional, optional address line for your business location.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_store_address_2',
|
||||
'css' => 'min-width:350px;',
|
||||
'default' => '',
|
||||
'type' => 'text',
|
||||
'desc_tip' => true,
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'City', 'woocommerce' ),
|
||||
'desc' => __( 'The city in which your business is located.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_store_city',
|
||||
'css' => 'min-width:350px;',
|
||||
'default' => '',
|
||||
'type' => 'text',
|
||||
'desc_tip' => true,
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Country / State', 'woocommerce' ),
|
||||
'desc' => __( 'The country and state or province, if any, in which your business is located.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_default_country',
|
||||
'css' => 'min-width:350px;',
|
||||
'default' => 'GB',
|
||||
|
@ -59,6 +94,20 @@ class WC_Settings_General extends WC_Settings_Page {
|
|||
'desc_tip' => true,
|
||||
),
|
||||
|
||||
array(
|
||||
'title' => __( 'Postal Code', 'woocommerce' ),
|
||||
'desc' => __( 'The postal code, if any, in which your business is located.', 'woocommerce' ),
|
||||
'id' => 'woocommerce_store_postcode',
|
||||
'css' => 'min-width:50px;',
|
||||
'default' => '',
|
||||
'type' => 'text',
|
||||
'desc_tip' => true,
|
||||
),
|
||||
|
||||
array( 'type' => 'sectionend', 'id' => 'store_address' ),
|
||||
|
||||
array( 'title' => __( 'General options', 'woocommerce' ), 'type' => 'title', 'desc' => '', 'id' => 'general_options' ),
|
||||
|
||||
array(
|
||||
'title' => __( 'Selling location(s)', 'woocommerce' ),
|
||||
'desc' => __( 'This option lets you limit which countries you are willing to sell to.', 'woocommerce' ),
|
||||
|
|
Loading…
Reference in New Issue