__('Ustawienia główne', 'apaczka'), 'type' => 'title', 'description' => '', ), /*'title' => array( 'title' => __( 'Tytuł', 'apaczka' ), 'type' => 'text', 'description' => __( 'Tytuł metody widoczny w koszyku i formularzu zamówienia.', 'apaczka' ), 'default' => __( 'Apaczka', 'apaczka' ), 'desc_tip' => true, 'custom_attributes' => array( 'required' => 'required' ) ), */ 'enabled' => array( 'title' => __( 'Włącz/Wyłącz', 'apaczka' ), 'type' => 'checkbox', 'label' => __( 'Włącz metodę wysyłki', 'apaczka' ), 'default' => 'yes', ), array( 'title' => __('Logowanie', 'apaczka'), 'type' => 'title', 'description' => '', ), 'login' => array( 'title' => __('Login', 'apaczka'), 'type' => 'text', 'description' => __('Login do serwisu Apaczka.', 'apaczka'), 'default' => '', 'desc_tip' => true, 'custom_attributes' => array( 'required' => 'required' ) ), 'password' => array( 'title' => __('Hasło', 'apaczka'), 'type' => 'password', 'description' => __('Hasło do serwisu Apaczka.', 'apaczka'), 'default' => '', 'desc_tip' => true, 'custom_attributes' => array( 'required' => 'required' ) ), 'api_key' => array( 'title' => __('Klucz API', 'apaczka'), 'type' => 'text', 'description' => __('Klucz API serwisu Apaczka.', 'apaczka'), 'default' => '', 'desc_tip' => true, 'custom_attributes' => array( 'required' => 'required' ) ), 'order_status_completed_auto' => array( 'title' => __('Włącz zmianę statusu zamówienia na Zrealizowane', 'apaczka'), 'type' => 'checkbox', 'label' => __('Po nadaniu przesyłek zamówienia zostanie automatycznie zmieniony na Zrealizowane', 'apaczka'), 'default' => 'no', ), 'cost_cod' => array( 'title' => __('Koszt na zamówienie (pobranie)', 'apaczka'), 'type' => 'price', 'description' => __('Koszt na zamówienie (pobranie).', 'apaczka'), 'default' => '', 'desc_tip' => true ), array( 'title' => __('Domyślne ustawienia przesyłki', 'apaczka'), 'type' => 'title', 'description' => '', ), 'service' => array( 'title' => __('Usługa', 'apaczka'), 'type' => 'select', 'description' => __('Usługa.', 'apaczka'), 'default' => '', 'desc_tip' => true, 'options' => self::$services ), 'default_parcel_locker' => array( 'title' => __('Domyślny paczkomat nadawczy', 'apaczka'), 'type' => 'text', 'class' => 'settings-geowidget', 'description' => __('', 'apaczka'), 'default' => '', 'desc_tip' => true, ), 'insurance' => array( 'title' => __('Ubezpieczenie', 'apaczka'), 'type' => 'select', 'description' => __('Ubezpieczenie.', 'apaczka'), 'default' => '', 'desc_tip' => true, 'options' => array( 'yes' => __('Tak', 'apaczka'), 'no' => __('Nie', 'apaczka'), ) ), 'pickup_hour_from' => array( 'title' => __('Odbiór od godziny', 'apaczka'), 'type' => 'select', 'description' => __('Odbiór od godziny.', 'apaczka'), 'default' => '', 'desc_tip' => true, 'options' => $options_hours ), 'pickup_hour_to' => array( 'title' => __('Odbiór do godziny', 'apaczka'), 'type' => 'select', 'description' => __('Odbiór do godziny.', 'apaczka'), 'default' => '', 'desc_tip' => true, 'options' => $options_hours ), 'package_width' => array( 'title' => __('Długość paczki [cm]', 'apaczka'), 'type' => 'number', 'description' => __('Długość paczki [cm].', 'apaczka'), 'default' => '', 'desc_tip' => true, 'custom_attributes' => array( 'min' => 0, 'max' => 10000, 'step' => 1, 'required' => 'required' ) ), 'package_depth' => array( 'title' => __('Szerokość paczki [cm]', 'apaczka'), 'type' => 'number', 'description' => __('Szerokość paczki [cm].', 'apaczka'), 'default' => '', 'desc_tip' => true, 'custom_attributes' => array( 'min' => 0, 'max' => 10000, 'step' => 1, 'required' => 'required' ) ), 'package_height' => array( 'title' => __('Wysokość paczki [cm]', 'apaczka'), 'type' => 'number', 'description' => __('Wysokość paczki [cm].', 'apaczka'), 'default' => '', 'desc_tip' => true, 'custom_attributes' => array( 'min' => 0, 'max' => 10000, 'step' => 1, 'required' => 'required' ) ), 'package_weight' => array( 'title' => __('Waga paczki [kg]', 'apaczka'), 'type' => 'number', 'description' => __('Waga paczki [kg].', 'apaczka'), 'default' => '', 'desc_tip' => true, 'custom_attributes' => array( 'min' => 0, 'max' => 10000, 'step' => 'any', 'required' => 'required' ) ), 'package_contents' => array( 'title' => __('Zawartość', 'apaczka'), 'type' => 'text', 'description' => __('Zawartość paczki.', 'apaczka'), 'default' => '', 'desc_tip' => true, ), array( 'title' => __('Dane nadawcy', 'apaczka'), 'type' => 'title', 'description' => '', ), 'sender_name' => array( 'title' => __('Nazwa', 'apaczka'), 'type' => 'text', 'description' => __('Nazwa.', 'apaczka'), 'default' => '', 'desc_tip' => true, 'custom_attributes' => array( 'required' => 'required' ) ), 'sender_address_line1' => array( 'title' => __('Adres', 'apaczka'), 'type' => 'text', 'description' => __('Adres.', 'apaczka'), 'default' => '', 'desc_tip' => true, 'custom_attributes' => array( 'required' => 'required' ) ), 'sender_address_line2' => array( 'title' => __('Adres cd.', 'apaczka'), 'type' => 'text', 'description' => __('Adres cd.', 'apaczka'), 'default' => '', 'desc_tip' => true ), 'sender_postal_code' => array( 'title' => __('Kod pocztowy', 'apaczka'), 'type' => 'text', 'description' => __('Kod pocztowy.', 'apaczka'), 'default' => '', 'desc_tip' => true, 'custom_attributes' => array( 'required' => 'required' ) ), 'sender_city' => array( 'title' => __('Miasto', 'apaczka'), 'type' => 'text', 'description' => __('Miasto.', 'apaczka'), 'default' => '', 'desc_tip' => true ), /* 'sender_country' => array( 'title' => __( 'Kraj', 'apaczka' ), 'type' => 'select', 'description' => __( 'Kraj.', 'apaczka' ), 'default' => 'PL', 'desc_tip' => true, 'options' => WC()->countries->get_countries() ), */ 'sender_contact_name' => array( 'title' => __('Osoba kontaktowa', 'apaczka'), 'type' => 'text', 'description' => __('Osoba kontaktowa.', 'apaczka'), 'default' => '', 'desc_tip' => true, 'custom_attributes' => array( 'required' => 'required' ) ), 'sender_phone' => array( 'title' => __('Telefon', 'apaczka'), 'type' => 'text', 'description' => __('Telefon.', 'apaczka'), 'default' => '', 'desc_tip' => true, 'custom_attributes' => array( 'required' => 'required' ) ), 'sender_email' => array( 'title' => __('E-mail', 'apaczka'), 'type' => 'text', 'description' => __('E-mail.', 'apaczka'), 'default' => '', 'desc_tip' => true, 'custom_attributes' => array( 'required' => 'required' ) ), 'sender_account_number' => array( 'title' => __('Konto pobraniowe', 'apaczka'), 'type' => 'text', 'description' => __('Konto pobraniowe.', 'apaczka'), 'default' => '', 'desc_tip' => true ), ); return $settings;