blob: 595fbdbad91158896b9e617f0755314f0e021b30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
<?php
/**
* Zeigt die Abfrage nach der EU - Leistungsortregel an
*/
?>
<form method="post" action="<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>">
<input type="hidden" name="wpsg[action]" value="customeranswer" />
<input type="hidden" name="wpsg[redirect]" value="<?php echo wpsg_hspc($this->view['url']); ?>" />
<h2><?php echo __('Für eine korrekte Preisberechnung benötigen wir folgende Informationen von Ihnen.', 'wpsg'); ?></h2>
<div class="customertype">
<h2><?php echo __('Sie sind:', 'wpsg'); ?></h2>
<div id="customerquestion_fk">
<label >
<input id="customerquestion_fk_button" type="radio" value="0" <?php echo ((!isset($_SESSION['wpsg']['checkout']['customertype']) || $_SESSION['wpsg']['checkout']['customertype'] === '0')?'checked="checked"':''); ?> name="wpsg[customertype]"> <?php echo __('Firmenkunde', 'wpsg'); ?>
</label>
</div>
<div id="customerquestion_ek">
<label >
<input id="customerquestion_ek_button" type="radio" value="1" <?php echo ((isset($_SESSION['wpsg']['checkout']['customertype']) && $_SESSION['wpsg']['checkout']['customertype'] === '1')?'checked="checked"':''); ?> name="wpsg[customertype]"> <?php echo __('Endkunde', 'wpsg'); ?>
</label>
</div>
</div>
<div class="country">
<h2><?php echo __('aus:', 'wpsg'); ?></h2>
<select class="wpsg_land" name="wpsg[customerCountry]">
<?php foreach ($this->view['arCountry'] as $country) { ?>
<option value="<?php echo wpsg_hspc($country->id); ?>" <?php echo (($country->id == $this->view['defaultCountry_id'])?'selected="selected"':''); ?>><?php echo wpsg_hspc($country->name); ?></option>
<?php } ?>
</select>
</div>
<div class="button_wrap">
<input id="customerquestion_ok_button" type="submit" name="wpsg_submit" class="wpsg_button" value="<?php echo __('OK', 'wpsg'); ?>" />
</div>
</form>
<div class="wpsg_clear"></div>
<script type="text/javascript">/* <![CDATA[ */
jQuery(window).resize(function() {
// Hintergrund vom Body übernehmen
jQuery('#wpsg_calc_layer .content').css( { 'background-color': jQuery('body').css('background-color') } );
if (jQuery(window).width() < 600)
{
var layer_width = jQuery(window).width() - 50;
jQuery('#wpsg_calc_layer .content').css( {
'width': layer_width + 'px',
'margin-left': (-1 * (layer_width / 2)) + 'px'
} );
}
var layer_height = jQuery('#wpsg_calc_layer .content').height();
if (jQuery(window).height() < layer_height)
{
jQuery('#wpsg_calc_layer .content').css( {
'margin-top': '25px;',
'top': '0px'
} );
}
else
{
jQuery('#wpsg_calc_layer .content').css( {
'margin-top': (-1 * (layer_height / 2)) + 'px',
'top': '50%'
} );
}
} ).resize();
/* ]]> */</script>
|