id = 'point-of-sale'; $this->label = __( 'Point of Sale', 'woocommerce' ); parent::__construct(); } /** * Setting page icon. * * @var string */ public $icon = 'store'; /** * Get settings for the default section. * * @return array */ 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;', 'skip_initial_save' => true, ), 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', ), ); } } return new WC_Settings_Point_Of_Sale();