Subversion Repositories wpShopGermany4

Rev

Rev 7179 | Rev 7490 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7179 Rev 7486
Line 13... Line 13...
13
	 
13
	 
14
	if ($this->getBackendTaxView() === WPSG_NETTO) $strBN = 'NETTO';
14
	if ($this->getBackendTaxView() === WPSG_NETTO) $strBN = 'NETTO';
15
	else $strBN = 'BRUTTO';
15
	else $strBN = 'BRUTTO';
16
	
16
	
17
	$arCalculation = $oCalculation->getCalculationArray();
17
	$arCalculation = $oCalculation->getCalculationArray();
-
 
18
	$voucher = [
-
 
19
		'code' => '',
-
 
20
		'id' => 0,
-
 
21
		'set' => 0,
-
 
22
		'type' => 'voucher'
-
 
23
	];
18
	
24
	
-
 
25
	// Voucher suchen
-
 
26
	foreach (array_merge($arCalculation['voucher'], $arCalculation['coupon']) as $v) {
-
 
27
		
-
 
28
		if ($v['order_voucher_id'] == $_REQUEST['order_voucher_id']) {
-
 
29
			
-
 
30
			$voucher = $v;
-
 
31
			
-
 
32
		}
-
 
33
		
-
 
34
	}
-
 
35
	  
19
	$strVal = ((isset($arCalculation['voucher'][0]['set']))?$arCalculation['voucher'][0]['set']:0); 
36
	$strVal = ((isset($voucher['set']))?$voucher['set']:0); 
20
	
37
	
21
	if (strpos($strVal, '%') !== false) $strVal = wpsg_ff(wpsg_tf($strVal), '%');
38
	if (strpos($strVal, '%') !== false) $strVal = wpsg_ff(wpsg_tf($strVal), '%');
22
	else $strVal = wpsg_ff(wpsg_tf($strVal), $this->get_option('wpsg_currency'));
39
	else $strVal = wpsg_ff(wpsg_tf($strVal), $this->get_option('wpsg_currency'));
23
	
40
 	
24
?>
41
?>
25
 
42
 
26
<form id="wpsg_be_voucher_form">
43
<form id="wpsg_be_voucher_form">
27
	
44
	
-
 
45
	<input type="hidden" name="order_voucher_id" value="<?php echo wpsg_getInt($_REQUEST['order_voucher_id']); ?>" />
-
 
46
	
28
	<div class="autocomplete_wrap">
47
	<div class="autocomplete_wrap">
29
		<?php echo wpsg_drawForm_Input('be_voucher_search', __('Gutscheinsuche', 'wpsg'), ''); ?>
48
		<?php echo wpsg_drawForm_Input('be_voucher_search', __('Gutscheinsuche', 'wpsg'), ''); ?>
30
	</div>
49
	</div>
31
	
50
	
32
	<br />
51
	<br />
33
				
52
				
34
	<?php echo wpsg_drawForm_Input('be_voucher_code', __('Code (Optional)', 'wpsg'), @$arCalculation['voucher'][0]['code']); ?>
53
	<?php echo wpsg_drawForm_Input('be_voucher_code', __('Code (Optional)', 'wpsg'), @$voucher['code']); ?>
35
	<?php echo wpsg_drawForm_Input('be_voucher_id', __('Guschein ID (Optional)', 'wpsg'), @$arCalculation['voucher'][0]['id']); ?>
54
	<?php echo wpsg_drawForm_Input('be_voucher_id', __('Guschein ID', 'wpsg'), @$voucher['id']); ?>
36
	<?php echo wpsg_drawForm_Input('be_voucher_amount', wpsg_translate(__('Gutscheinwert in #1# (#2#) oder % ', 'wpsg'), $this->get_option('wpsg_currency'), $strBN), $strVal); ?>
55
	<?php echo wpsg_drawForm_Input('be_voucher_amount', wpsg_translate(__('Gutscheinwert in #1# (#2#) oder % ', 'wpsg'), $this->get_option('wpsg_currency'), $strBN), $strVal); ?>
-
 
56
	<?php echo wpsg_drawForm_Checkbox('be_voucher_coupon', __('Wertgutschein'), (($voucher['type'] === 'coupon')?'1':'0')); ?>
37
		
57
		
38
</form>
58
</form>
39
 
59
 
40
<script>
60
<script>
41
 
61