Line 3... |
Line 3... |
3 |
/**
|
3 |
/**
|
4 |
* Template für die Einstellungen des Lagerbestandsmoduls
|
4 |
* Template für die Einstellungen des Lagerbestandsmoduls
|
5 |
*/
|
5 |
*/
|
6 |
|
6 |
|
7 |
?>
|
7 |
?>
|
8 |
<?php
|
- |
|
9 |
$arTemp = wpsg_array_merge(array('-1' => __('Wie Produkttemplate', 'wpsg')), $this->view['arTemplates']);
|
- |
|
10 |
?>
|
- |
|
11 |
<?php echo wpsg_drawForm_Select('wpsg_mod_stock_template', __('Template für ausverkaufte Produkte', 'wpsg'),
|
- |
|
12 |
$arTemp, @$this->get_option('wpsg_mod_stock_template')); ?>
|
- |
|
13 |
|
8 |
|
14 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_notemplateswitch', __('Template nicht wechseln', 'wpsg'), $this->get_option('wpsg_mod_stock_notemplateswitch'), array('help' => 'wpsg_mod_stock_notemplateswitch')); ?>
|
- |
|
15 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_allow', __('Bestellungen bei negativen Bestand verhindern', 'wpsg'), $this->get_option('wpsg_mod_stock_allow'), array('help' => 'wpsg_mod_stock_allow')); ?>
|
9 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_allow', __('Bestellungen bei negativen Bestand verhindern', 'wpsg'), $this->get_option('wpsg_mod_stock_allow'), array('help' => 'wpsg_mod_stock_allow')); ?>
|
16 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_showBackendStock', __('Bestand in Produktübersicht (Backend) anzeigen', 'wpsg'), $this->get_option('wpsg_mod_stock_showBackendStock'), array('help' => 'wpsg_mod_stock_showBackendStock')); ?>
|
10 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_showBackendStock', __('Bestand in Produktübersicht (Backend) anzeigen', 'wpsg'), $this->get_option('wpsg_mod_stock_showBackendStock'), array('help' => 'wpsg_mod_stock_showBackendStock')); ?>
|
17 |
<?php if ($this->hasMod('wpsg_mod_productindex')) { ?>
|
11 |
<?php if ($this->hasMod('wpsg_mod_productindex')) { ?>
|
18 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_showProductindex', __('Bestand in Produktübersicht (Frontend) anzeigen', 'wpsg'), $this->get_option('wpsg_mod_stock_showProductindex'), array('help' => 'wpsg_mod_stock_showProductindex')); ?>
|
12 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_showProductindex', __('Bestand in Produktübersicht (Frontend) anzeigen', 'wpsg'), $this->get_option('wpsg_mod_stock_showProductindex'), array('help' => 'wpsg_mod_stock_showProductindex')); ?>
|
19 |
<?php } ?>
|
13 |
<?php } ?>
|
20 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_showProduct', __('Bestand in Produkt (Frontend) anzeigen', 'wpsg'), $this->get_option('wpsg_mod_stock_showProduct'), array('help' => 'wpsg_mod_stock_showProduct')); ?>
|
14 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_showProduct', __('Bestand in Produkt (Frontend) anzeigen', 'wpsg'), $this->get_option('wpsg_mod_stock_showProduct'), array('help' => 'wpsg_mod_stock_showProduct')); ?>
|
21 |
|
15 |
|
22 |
<br />
|
16 |
<br />
|
23 |
|
17 |
|
24 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_minstockproduct', __('Minimalbestand im Produkt hinterlegen', 'wpsg'), $this->get_option('wpsg_mod_stock_minstockproduct'), array('help' => 'wpsg_mod_stock_minstockproduct')); ?>
|
18 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_minstockproduct', __('Minimalbestand im Produkt hinterlegen', 'wpsg'), $this->get_option('wpsg_mod_stock_minstockproduct'), array('help' => 'wpsg_mod_stock_minstockproduct')); ?>
|
25 |
|
- |
|
26 |
<script type="text/javascript">/* <![CDATA[ */
|
- |
|
27 |
|
- |
|
28 |
jQuery(document).ready(function() {
|
- |
|
29 |
|
- |
|
30 |
jQuery('#wpsg_mod_stock_notemplateswitch').bind('change', function() {
|
- |
|
31 |
|
- |
|
32 |
if (jQuery(this).attr("checked"))
|
- |
|
33 |
{
|
- |
|
34 |
|
- |
|
35 |
jQuery('#wpsg_mod_stock_template').attr('disabled', true);
|
- |
|
36 |
|
- |
|
37 |
}
|
- |
|
38 |
else
|
- |
|
39 |
{
|
- |
|
40 |
|
- |
|
41 |
jQuery('#wpsg_mod_stock_template').attr('disabled', false);
|
- |
|
42 |
|
- |
|
43 |
}
|
- |
|
44 |
|
- |
|
45 |
} ).change();
|
- |
|
46 |
|
- |
|
47 |
} );
|
- |
|
48 |
|
- |
|
49 |
/* ]]> */</script>
|
- |
|
50 |
|
19 |
|
- |
|
20 |
|
51 |
|
21 |
|