Subversion Repositories wpShopGermany4

Rev

Rev 5997 | Rev 6117 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1067 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Einstellungen des Lagerbestandsmoduls
5
	 */
6
 
7
?>
5997 hartmut 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
 
2904 daniel 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')); ?>
5462 thomas 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')); ?>
4917 thomas 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')); ?>
6104 hartmut 17
<?php if ($this->hasMod('wpsg_mod_productindex')) { ?>
4917 thomas 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')); ?>
4910 thomas 19
<?php } ?>
4917 thomas 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')); ?>
2904 daniel 21
 
5824 thomas 22
<br />
4910 thomas 23
 
5824 thomas 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')); ?>
25
 
2904 daniel 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>