startGroup(__('Delivery', 'planzer'), 'delivery')
->addRadio(__('Delivery note', 'planzer'), 'generate_note', [
'options' => [
'delivery_note' => __('Generate delivery note', 'planzer'),
'label_note' => __('Generate label note', 'planzer')
],
'default' => 'label_note'
])
->addUrlInput(__('Logo URL', 'planzer'), 'note_logo', ['desc' => __('URL of logo that will be placed on the delivery note', 'planzer')])
->addTextInput(__('Note receiver', 'planzer'), 'note_email', [
'desc' => __('Receiver of the delivery/label note (for multiple addresses separate them by using commas)', 'planzer'),
'required' => true,
])
->addTextInput(__('Contact name', 'planzer'), 'note_contact_name', ['desc' => __('First and last name that will be placed on the delivery note', 'planzer')])
->addTextInput(__('Salutation', 'planzer'), 'note_salutation', [
'type' => 'textarea',
'desc' => __('This salutation text is visible in the delivery note.', 'planzer'),
'custom_attributes' => [
'rows' => 2,
],
'placeholder' => __('Ladies and gentlemen', 'planzer'),
])
->addTextInput(__('Signature', 'planzer'), 'note_signature', [
'type' => 'textarea',
'desc' => __('This signature text is visible in the delivery note.', 'planzer'),
'custom_attributes' => [
'rows' => 5,
],
'placeholder' => str_replace('
', PHP_EOL, __('Thank you very much for the order.
Feel free to contact us if you have any questions.
Kind regards
{contact_name}
{company}', 'planzer')),
])
->addTextInput(__('Footer', 'planzer'), 'note_footer', [
'type' => 'textarea',
'desc' => __('This footer text is visible in the delivery note.', 'planzer'),
'custom_attributes' => [
'rows' => 3,
],
'placeholder' => __('{company} {address} Email: {email} Website: {website}', 'planzer'),
])
->addSelectInput(__('Delivery time (chargeable)', 'planzer'), 'delivery_time_chargable', [
'default' => '',
'options' => [
'' => __('Next day', 'planzer'),
'BIS10' => __('Delivery by 10 o\'clock', 'planzer'),
'BIS12' => __('Delivery by 12 o\'clock', 'planzer'),
],
'required' => false,
])
->addCheckbox(__('Delivery on Saturday', 'planzer'), 'saturday_delivery', [
'default' => '',
])
->endGroup('delivery');
}
public function getId(): string
{
return 'delivery';
}
public function getLabel(): string
{
return __('Delivery', 'planzer');
}
}