diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2016-01-14 14:55:36 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2016-01-14 14:55:36 +0000 |
| commit | ad405c7045c6e242080ec9d3ce4c9e586b517c4f (patch) | |
| tree | b41905f4d27f3eaaabd5bad3a39f8d3873540b46 /views/warenkorb/customerquestion.phtml | |
- Testweise 4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/warenkorb/customerquestion.phtml')
| -rw-r--r-- | views/warenkorb/customerquestion.phtml | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/views/warenkorb/customerquestion.phtml b/views/warenkorb/customerquestion.phtml new file mode 100644 index 0000000..595fbdb --- /dev/null +++ b/views/warenkorb/customerquestion.phtml @@ -0,0 +1,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>
|
