3525 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Einstellungen des Lieferzeit Moduls
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
|
|
8 |
<?php echo wpsg_drawForm_Select('wpsg_mod_deliverytime_mode', __('Eingabetyp', 'wpsg'), array(
|
|
|
9 |
wpsg_mod_deliverytime::MODE_DAYS => __('Angabe von Tagen', 'wpsg'),
|
|
|
10 |
wpsg_mod_deliverytime::MODE_SELECT => __('Auswahl', 'wpsg')
|
|
|
11 |
), $this->get_option('wpsg_mod_deliverytime_mode'), array('help' => 'wpsg_mod_deliverytime_mode')); ?>
|
|
|
12 |
<div id="wpsg_mod_deliverytime_mode_<?php echo wpsg_mod_deliverytime::MODE_SELECT; ?>" class="wpsg_mod_deliverytime_mode">
|
|
|
13 |
<?php echo wpsg_drawForm_Textarea('wpsg_mod_deliverytime_mode_select_values', __('Verfügbare Lieferzeiten', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_mode_select_values'), array('help' => 'wpsg_mod_deliverytime_mode_select_values', 'hint' => __('Kommagetrennt', 'wpsg'))); ?>
|
|
|
14 |
<?php echo wpsg_drawForm_Select('wpsg_mod_deliverytime_mode_select_default', __('Standard Lieferzeit', 'wpsg'), $this->view['wpsg_mod_deliverytime']['arSelection'], $this->get_option('wpsg_mod_deliverytime_mode_select_default'), array('help' => 'wpsg_mod_deliverytime_mode_select_default')); ?>
|
|
|
15 |
</div>
|
|
|
16 |
<div id="wpsg_mod_deliverytime_mode_<?php echo wpsg_mod_deliverytime::MODE_DAYS; ?>" class="wpsg_mod_deliverytime_mode">
|
|
|
17 |
<?php echo wpsg_drawForm_Input('wpsg_mod_deliverytime_mode_days_default', __('Standard Lieferzeit', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_mode_days_default'), array('help' => 'wpsg_mod_deliverytime_mode_days_default')); ?>
|
|
|
18 |
</div>
|
|
|
19 |
|
6581 |
thomas |
20 |
<br /><br />
|
5598 |
thomas |
21 |
|
6581 |
thomas |
22 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_deliverytime_store', __('Offline-Produkte anzeigen (nicht im Onlineshop bestellbar)', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_store'), array('help' => 'wpsg_mod_deliverytime_store')); ?>
|
5632 |
thomas |
23 |
|
6568 |
hartmut |
24 |
<div class="wpsg_mod_deliverytime_store wpsg_mod_deliverytime_store_1">
|
|
|
25 |
<?php echo wpsg_drawForm_Input('wpsg_mod_deliverytime_storetext', __('Hinweistext', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_storetext'), array('help' => 'wpsg_mod_deliverytime_storetext')); ?>
|
|
|
26 |
<?php ?>
|
|
|
27 |
<?php $arPageWithoutCreate = $this->view['pages']; unset($arPageWithoutCreate['-1']); ?>
|
|
|
28 |
<?php echo wpsg_drawForm_Select('wpsg_page_mod_deliverytime_storelink', __('Seite mit Adressdaten', 'wpsg'), wpsg_array_merge(array(
|
|
|
29 |
'0' => __('Keine Verlinkung auf eine Seite anzeigen', 'wpsg')
|
|
|
30 |
), $arPageWithoutCreate), $this->get_option('wpsg_page_mod_deliverytime_storelink'), array('help' => 'wpsg_page_mod_deliverytime_storelink')); ?>
|
|
|
31 |
</div>
|
|
|
32 |
|
6581 |
thomas |
33 |
<br /><br />
|
5632 |
thomas |
34 |
|
5804 |
daniel |
35 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_deliverytime_delay', __('Hinweistext bei Verzögerungen anzeigen', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_delay'), array('help' => 'wpsg_mod_deliverytime_delay')); ?>
|
5598 |
thomas |
36 |
<div class="wpsg_mod_deliverytime_delay_activ" style="display:none;">
|
5804 |
daniel |
37 |
<?php echo wpsg_drawForm_Input('wpsg_mod_deliverytime_delayText', __('Grund für verzögerte Lieferung', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_delayText'), array('help' => 'wpsg_mod_deliverytime_delayText')); ?>
|
|
|
38 |
<?php echo wpsg_drawForm_Input('wpsg_mod_deliverytime_delayTime', __('Zeitangabe der Verzögerung', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_delayTime'), array('help' => 'wpsg_mod_deliverytime_delayTime')); ?>
|
5598 |
thomas |
39 |
</div>
|
|
|
40 |
|
6581 |
thomas |
41 |
<br /><br />
|
3525 |
daniel |
42 |
|
|
|
43 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_deliverytime_show_product', __('Im Produkt anzeigen', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_show_product'), array('help' => 'wpsg_mod_deliverytime_show_product')); ?>
|
|
|
44 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_deliverytime_show_basket', __('Im Warenkorb anzeigen', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_show_basket'), array('help' => 'wpsg_mod_deliverytime_show_basket')); ?>
|
|
|
45 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_deliverytime_show_overview', __('In Bestellzusammenfassung anzeigen', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_show_overview'), array('help' => 'wpsg_mod_deliverytime_show_overview')); ?>
|
4372 |
daniel |
46 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_deliverytime_show_mail', __('In den Mails anzeigen', 'wpsg'), $this->get_option('wpsg_mod_deliverytime_show_mail'), array('help' => 'wpsg_mod_deliverytime_show_mail')); ?>
|
3525 |
daniel |
47 |
|
5804 |
daniel |
48 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
49 |
|
3525 |
daniel |
50 |
jQuery(document).ready(function() {
|
|
|
51 |
|
6842 |
hartmut |
52 |
jQuery('#wpsg_mod_deliverytime_mode_select_values').bind('input', function() {
|
|
|
53 |
|
|
|
54 |
val = jQuery('#wpsg_mod_deliverytime_mode_select_values').val();
|
|
|
55 |
arVal = val.split(',');
|
|
|
56 |
jQuery('#wpsg_mod_deliverytime_mode_select_default').empty();
|
|
|
57 |
for (i = 0; i < 3; i++) {
|
|
|
58 |
jQuery('#wpsg_mod_deliverytime_mode_select_default').append('<option value=' + i + '>' + arVal[i] + '</option>');
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
} );
|
|
|
62 |
|
3525 |
daniel |
63 |
jQuery('#wpsg_mod_deliverytime_mode').bind('change', function() {
|
|
|
64 |
|
|
|
65 |
jQuery('.wpsg_mod_deliverytime_mode').hide();
|
|
|
66 |
jQuery('#wpsg_mod_deliverytime_mode_' + jQuery(this).val()).show();
|
|
|
67 |
|
|
|
68 |
} ).change();
|
6568 |
hartmut |
69 |
|
|
|
70 |
jQuery('#wpsg_mod_deliverytime_store').bind('change', function() {
|
|
|
71 |
|
|
|
72 |
jQuery('.wpsg_mod_deliverytime_store').hide();
|
|
|
73 |
if (jQuery(this).prop('checked')) jQuery('.wpsg_mod_deliverytime_store_1').show();
|
|
|
74 |
|
|
|
75 |
} ).change();
|
|
|
76 |
|
|
|
77 |
jQuery('#wpsg_mod_deliverytime_delay').bind('change', function() {
|
|
|
78 |
|
|
|
79 |
if (jQuery(this).is(':checked')) jQuery('.wpsg_mod_deliverytime_delay_activ').show();
|
|
|
80 |
else jQuery('.wpsg_mod_deliverytime_delay_activ').hide();
|
|
|
81 |
|
|
|
82 |
} ).change();
|
3525 |
daniel |
83 |
|
5804 |
daniel |
84 |
} );
|
|
|
85 |
|
3525 |
daniel |
86 |
/* ]]> */</script>
|