$key,
'label' => __('Usługa ', 'apaczka'),
'desc_tip' => false,
'type' => 'number',
'options' => $services,
'value' => $value,
'custom_attributes' => $custom_attributes,
'class' => 'apaczka_service_select',
]);
?>
$key,
'label' => __('Paczkomat nadawczy', 'apaczka'),
'desc_tip' => false,
'value' => $value,
'custom_attributes' => $custom_attributes,
'class' => 'settings-geowidget',
]);
?>
get_meta('_parcel_machine_id');
if (empty($value)) {
$value = '';
}
if (isset($apaczka['parcel_machine_to'])) {
$value = $apaczka['parcel_machine_to'];
}
$custom_attributes = [];
if ($package_send) {
$custom_attributes['disabled'] = 'disabled';
}
woocommerce_wp_text_input([
'id' => $key,
'label' => __('Paczkomat docelowy', 'apaczka'),
'desc_tip' => false,
'value' => $value,
'custom_attributes' => $custom_attributes,
'class' => 'settings-geowidget',
]);
?>
$key,
'label' => __('Szablon rozmiaru', 'apaczka'),
'desc_tip' => false,
'type' => 'number',
'options' => [
'a' => 'Gabaryt A - max 8x38x64cm',
'b' => 'Gabaryt B - max 19x38x64cm',
'c' => 'Gabaryt C - max 38x41x64cm',
],
'value' => $value,
'custom_attributes' => $custom_attributes,
'class' => '',
]);
?>
'1',
'min' => '0',
];
if ($package_send) {
$custom_attributes['disabled'] = 'disabled';
}
woocommerce_wp_text_input([
'id' => $key,
'label' => __('Długość ', 'apaczka'),
'desc_tip' => false,
'type' => 'number',
'custom_attributes' => $custom_attributes,
'data_type' => 'number',
'value' => $value,
]);
?>
'1',
'min' => '0',
];
if ($package_send) {
$custom_attributes['disabled'] = 'disabled';
}
woocommerce_wp_text_input([
'id' => $key,
'label' => __('Szerokość ', 'apaczka'),
'desc_tip' => false,
'type' => 'number',
'custom_attributes' => $custom_attributes,
'data_type' => 'number',
'value' => $value,
]);
?>
'1',
'min' => '0',
];
if ($package_send) {
$custom_attributes['disabled'] = 'disabled';
}
woocommerce_wp_text_input([
'id' => $key,
'label' => __('Wysokość ', 'apaczka'),
'desc_tip' => false,
'type' => 'number',
'custom_attributes' => $custom_attributes,
'data_type' => 'number',
'value' => $value,
]);
?>
'1',
'min' => '0',
'max' => '30',
'step' => 'any',
];
if ($package_send) {
$custom_attributes['disabled'] = 'disabled';
}
woocommerce_wp_text_input([
'id' => $key,
'label' => __('Waga ', 'apaczka'),
'desc_tip' => false,
'type' => 'number',
'custom_attributes' => $custom_attributes,
'data_type' => 'number',
'value' => $value,
]);
?>
$key,
'label' => __('Zawartość ', 'apaczka'),
'desc_tip' => false,
'type' => 'text',
'data_type' => 'text',
'value' => $value,
'custom_attributes' => $custom_attributes,
]);
?>
'1',
'min' => '0',
'step' => 'any',
];
if ($package_send) {
$custom_attributes['disabled'] = 'disabled';
}
woocommerce_wp_text_input([
'id' => $key,
'label' => __('Kwota pobrania', 'apaczka'),
'desc_tip' => false,
'type' => 'number',
'custom_attributes' => $custom_attributes,
'data_type' => 'number',
'value' => $value,
]);
?>
$key,
'label' => __('Ubezpieczenie', 'apaczka'),
'desc_tip' => false,
'type' => 'number',
'options' => [
'yes' => __('Tak', 'apaczka'),
'no' => __('Nie', 'apaczka'),
],
'value' => $value,
'custom_attributes' => $custom_attributes,
]);
?>
'[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3[01])',
'maxlength' => '10',
];
if ($package_send) {
$custom_attributes['disabled'] = 'disabled';
}
woocommerce_wp_text_input([
'id' => $key,
'label' => __('Data odbioru', 'apaczka'),
'desc_tip' => false,
'class' => 'date-picker',
'type' => 'text',
'custom_attributes' => $custom_attributes,
'data_type' => 'number',
'value' => $value,
]);
?>
$key,
'label' => __('Od godziny', 'apaczka'),
'desc_tip' => false,
'type' => 'number',
'custom_attributes' => $custom_attributes,
'options' => $options_hours,
'value' => $value,
]);
?>
'0',
'max' => '24',
];
if ($package_send) {
$custom_attributes['disabled'] = 'disabled';
}
woocommerce_wp_select([
'id' => $key,
'label' => __('Do godziny', 'apaczka'),
'desc_tip' => false,
'custom_attributes' => $custom_attributes,
'options' => $options_hours,
'value' => $value,
]);
?>
$key,
'label' => __('Przesyłka niestandardowa', 'apaczka'),
'custom_attributes' => $custom_attributes,
'class' => 'apaczka_przes_niet_checkbox',
]);
?>
$key,
'label' => __('Zwrot dokumentów', 'apaczka'),
'custom_attributes' => $custom_attributes,
'class' => 'apaczka_zwrot_dok_checkbox',
]);
?>
$key,
'label' => __('Dostarczenie w sobotę', 'apaczka'),
'custom_attributes' => $custom_attributes,
'class' => 'apaczka_dost_sob_checkbox',
]);
?>