1067 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Eingabe der Zahlungs- und Versandinformationen
|
|
|
5 |
*/
|
|
|
6 |
|
2599 |
david |
7 |
//wpsg_debug($this->view['basket']['checkout']);
|
1329 |
david |
8 |
//die();
|
3024 |
daniel |
9 |
|
1067 |
daniel |
10 |
?>
|
3444 |
daniel |
11 |
<div class="wpsg wpsg_checkout2">
|
1067 |
daniel |
12 |
|
|
|
13 |
<?php echo $this->writeFrontendMessage(); ?>
|
|
|
14 |
|
5201 |
daniel |
15 |
<?php $GLOBALS['step'] = 3; $this->render(WPSG_PATH_VIEW.'/warenkorb/progress.phtml'); ?>
|
|
|
16 |
|
4993 |
daniel |
17 |
<form id="wpsg_checkout_form" method="post" action="<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>">
|
1067 |
daniel |
18 |
|
3738 |
daniel |
19 |
<input type="hidden" value="1" name="wpsg[checkout][send]" />
|
|
|
20 |
|
1406 |
daniel |
21 |
<div class="wpsg_shipping">
|
3460 |
daniel |
22 |
|
3444 |
daniel |
23 |
<h2><?php echo __('Versandarten', 'wpsg'); ?></h2>
|
3460 |
daniel |
24 |
|
|
|
25 |
<div class="shippay_wrap">
|
5010 |
daniel |
26 |
<?php foreach ($this->view['arShipping'] as $s) { ?>
|
|
|
27 |
<div class="shippay_item_wrap">
|
|
|
28 |
|
|
|
29 |
<input <?php echo (($this->view['basket']['checkout']['shipping'] == $s['id'] || sizeof($this->view['arShipping']) == 1)?'checked="checked"':''); ?> type="radio" value="<?php echo $s['id']; ?>" name="wpsg[checkout][shipping]" id="shipping_<?php echo $s['id']; ?>" />
|
|
|
30 |
|
|
|
31 |
<?php if (wpsg_isSizedString($s['logo'])) { ?>
|
|
|
32 |
<img class="wpsg_payship_logo" src="<?php echo $s['logo']; ?>" alt="<?php echo $s['name']; ?>" />
|
|
|
33 |
<?php } else { ?>
|
|
|
34 |
<div class="wpsg_payship_name"><?php echo __($s['name'], 'wpsg'); ?></div>
|
|
|
35 |
<?php } ?>
|
5867 |
daniel |
36 |
<?php if ((isset($s['hint']) && trim($s['hint']) != '') || wpsg_getFloat($s['price']) > 0) { ?>
|
5010 |
daniel |
37 |
<div id="shipping_<?php echo $s['id']; ?>_hint" class="shippay_hint">
|
|
|
38 |
<?php if ($s['price'] > 0) { ?>
|
|
|
39 |
<?php echo __('Gebühr', 'wpsg'); ?>: <?php echo wpsg_ff($s['price'], $this->get_option('wpsg_currency')); ?><br />
|
1449 |
daniel |
40 |
<?php } ?>
|
5010 |
daniel |
41 |
<?php echo $this->replaceUniversalPlatzhalter(__($s['hint'], 'wpsg')); ?>
|
3460 |
daniel |
42 |
</div>
|
5010 |
daniel |
43 |
<?php } ?>
|
4132 |
daniel |
44 |
|
5010 |
daniel |
45 |
<div class="shippay_checkmark"></div>
|
|
|
46 |
|
|
|
47 |
</div>
|
|
|
48 |
<?php } ?>
|
|
|
49 |
</div>
|
1067 |
daniel |
50 |
|
|
|
51 |
</div>
|
7649 |
daniel |
52 |
|
4993 |
daniel |
53 |
<?php if ($this->callMods('checkout_handlePayment') === true) { ?>
|
|
|
54 |
|
|
|
55 |
<?php if (!$this->hasMod('wpsg_mod_crefopay')) { ?>
|
|
|
56 |
<div class="wpsg_payment">
|
3460 |
daniel |
57 |
|
4993 |
daniel |
58 |
<h2><?php echo __('Zahlungsarten', 'wpsg'); ?></h2>
|
|
|
59 |
|
|
|
60 |
<div class="shippay_wrap">
|
5010 |
daniel |
61 |
<?php foreach ($this->view['arPayment'] as $p) { ?>
|
|
|
62 |
<div class="shippay_item_wrap">
|
|
|
63 |
|
|
|
64 |
<input <?php echo (($this->view['basket']['checkout']['payment'] == $p['id'] || sizeof($this->view['arPayment']) == 1)?'checked="checked"':''); ?> type="radio" value="<?php echo $p['id']; ?>" name="wpsg[checkout][payment]" id="payment_<?php echo $p['id']; ?>" />
|
|
|
65 |
|
|
|
66 |
<div class="wpsg_payship_name"><?php echo __($p['name'], 'wpsg'); ?></div>
|
|
|
67 |
|
|
|
68 |
<?php if (wpsg_isSizedString($p['logo'])) { ?>
|
|
|
69 |
<img class="wpsg_payship_logo" src="<?php echo $p['logo']; ?>" alt="<?php echo $p['name']; ?>" />
|
|
|
70 |
<?php } ?>
|
|
|
71 |
|
7706 |
daniel |
72 |
<?php if ((isset($p['hint']) && trim($p['hint']) != '') || wpsg_getFloat($p['price']) > 0) { ?>
|
5010 |
daniel |
73 |
<div id="payment_<?php echo $p['id']; ?>_hint" class="shippay_hint">
|
|
|
74 |
<?php if ($p['price'] > 0) { ?>
|
|
|
75 |
<?php echo __('Gebühr', 'wpsg'); ?>: <?php echo wpsg_ff($p['price'], $this->get_option('wpsg_currency')); ?><br />
|
|
|
76 |
<?php } ?>
|
|
|
77 |
<?php echo $this->replaceUniversalPlatzhalter(__($p['hint'], 'wpsg')); ?>
|
3460 |
daniel |
78 |
</div>
|
4993 |
daniel |
79 |
<?php } ?>
|
5010 |
daniel |
80 |
|
|
|
81 |
<div class="shippay_checkmark"></div>
|
|
|
82 |
|
|
|
83 |
</div>
|
|
|
84 |
<?php } ?>
|
|
|
85 |
</div>
|
1326 |
daniel |
86 |
|
4993 |
daniel |
87 |
</div>
|
|
|
88 |
<?php } ?>
|
|
|
89 |
|
4324 |
daniel |
90 |
<?php } ?>
|
1067 |
daniel |
91 |
|
|
|
92 |
<div class="wpsg_clear"></div>
|
|
|
93 |
|
|
|
94 |
<br />
|
|
|
95 |
|
1542 |
daniel |
96 |
<?php $this->callMods('checkout2_inner_prebutton', array(&$this->view)); ?>
|
1738 |
david |
97 |
|
5866 |
hartmut |
98 |
<input type="submit" id="wpsg_checkout2button" class="wpsg_button wpsg_overviewbutton" value="<?php echo __('weiter', 'wpsg'); ?>" name="wpsg_checkout2" />
|
3453 |
daniel |
99 |
<input type="submit" class="wpsg_button wpsg_checkoutbutton" value="<?php echo __('zurück', 'wpsg'); ?>" name="wpsg_redirect_checkout" />
|
1067 |
daniel |
100 |
|
|
|
101 |
<div class="wpsg_clear"></div>
|
|
|
102 |
|
|
|
103 |
</form>
|
3460 |
daniel |
104 |
|
|
|
105 |
<script type="text/javascript">/* <![CDATA[ */
|
5010 |
daniel |
106 |
|
|
|
107 |
function wpsg_setShipPay(jqElement)
|
|
|
108 |
{
|
|
|
109 |
|
|
|
110 |
jqElement.parents('.shippay_wrap').find('.shippay_item_wrap').removeClass('shippay_active');
|
|
|
111 |
jqElement.addClass('shippay_active');
|
|
|
112 |
|
|
|
113 |
jqElement.find('input').prop('checked', true);
|
|
|
114 |
|
|
|
115 |
return true;
|
|
|
116 |
|
|
|
117 |
}
|
3460 |
daniel |
118 |
|
|
|
119 |
jQuery(document).ready(function() {
|
1067 |
daniel |
120 |
|
5010 |
daniel |
121 |
jQuery('.shippay_wrap .shippay_item_wrap').bind('click', function() {
|
3460 |
daniel |
122 |
|
5010 |
daniel |
123 |
wpsg_setShipPay(jQuery(this));
|
3460 |
daniel |
124 |
|
5010 |
daniel |
125 |
jQuery.ajax( {
|
|
|
126 |
'url': wpsg_ajax.ajaxurl,
|
|
|
127 |
'method': 'get',
|
|
|
128 |
'data': {
|
|
|
129 |
'wpsg[action]': 'updateCheckout',
|
|
|
130 |
'wpsg_form_data': jQuery('#wpsg_checkout_form').serialize()
|
|
|
131 |
},
|
|
|
132 |
'async': true,
|
|
|
133 |
'success': function(data) { }
|
|
|
134 |
} );
|
|
|
135 |
|
3460 |
daniel |
136 |
} );
|
|
|
137 |
|
5010 |
daniel |
138 |
jQuery('.shippay_wrap .shippay_item_wrap').each(function() {
|
3460 |
daniel |
139 |
|
5010 |
daniel |
140 |
if (jQuery(this).find('input[type="radio"]').prop('checked')) wpsg_setShipPay(jQuery(this));
|
3523 |
daniel |
141 |
|
3460 |
daniel |
142 |
} );
|
5010 |
daniel |
143 |
|
3460 |
daniel |
144 |
} );
|
|
|
145 |
|
|
|
146 |
/* ]]> */</script>
|
|
|
147 |
|
1067 |
daniel |
148 |
</div>
|