WC_Settings_Point_Of_Sale::get_settings_for_default_sectionprotectedWC 1.0

Get settings for the default section.

Method of the class: WC_Settings_Point_Of_Sale{}

No Hooks.

Returns

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_settings_for_default_section();

WC_Settings_Point_Of_Sale::get_settings_for_default_section() code WC 10.3.3

protected function get_settings_for_default_section() {
	return array(
		array(
			'title' => __( 'Store details', 'woocommerce' ),
			'type'  => 'title',
			'desc'  => __( 'Details about the store that are shown in email receipts.', 'woocommerce' ),
			'id'    => 'store_details',
		),

		array(
			'title'   => __( 'Store name', 'woocommerce' ),
			'desc'    => __( 'The name of your physical store.', 'woocommerce' ),
			'id'      => 'woocommerce_pos_store_name',
			'default' => PointOfSaleDefaultSettings::get_default_store_name(),
			'type'    => 'text',
			'css'     => 'min-width:300px;',
		),

		array(
			'title'    => __( 'Physical address', 'woocommerce' ),
			'id'       => 'woocommerce_pos_store_address',
			'default'  => PointOfSaleDefaultSettings::get_default_store_address(),
			'type'     => 'textarea',
			'css'      => 'min-width:300px; height: 100px;',
			'desc_tip' => true,
		),

		array(
			'title'   => __( 'Phone number', 'woocommerce' ),
			'id'      => 'woocommerce_pos_store_phone',
			'default' => '',
			'type'    => 'text',
			'css'     => 'min-width:300px;',
		),

		array(
			'title'   => __( 'Email', 'woocommerce' ),
			'desc'    => __( 'Your store contact email.', 'woocommerce' ),
			'id'      => 'woocommerce_pos_store_email',
			'default' => PointOfSaleDefaultSettings::get_default_store_email(),
			'type'    => 'email',
			'css'     => 'min-width:300px;',
		),

		array(
			'title'    => __( 'Refund & Returns Policy', 'woocommerce' ),
			'desc'     => __( 'Brief statement that will appear on the receipts.', 'woocommerce' ),
			'id'       => 'woocommerce_pos_refund_returns_policy',
			'default'  => '',
			'type'     => 'textarea',
			'css'      => 'min-width:300px; height: 100px;',
			'desc_tip' => true,
		),

		array(
			'type' => 'sectionend',
			'id'   => 'store_details',
		),
	);
}