Subversion Repositories wpShopGermany4

Rev

Rev 5877 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5873 hartmut 1
<?php
2
 
3
/**
4
 * Dieses Template wird nach einer Targo Zahlung angezeigt
5
*/
6
 
7
$url = $this->get_option('wpsg_mod_targo_url');
8
?>
9
 
10
<p><?php echo __('Um den Betrag mit Targo zu bezahlen klicken Sie bitte auf folgendes Logo.', 'wpsg'); ?></p>
11
<p>
12
	<a title="<?php echo __('Mit Targo bezahlen', 'wpsg'); ?>" href="<?php echo $this->get_option('wpsg_mod_targo_url'); ?>">
13
		<img src="<?php echo $this->getRessourceURL('gfx/targologo.png'); ?>" align="left" alt="<?php echo __('Mit Targo bezahlen', 'wpsg'); ?>" style="margin-right:7px;">
14
 
15
	</a>
16
</p>
17
 
18
<form hidden class="wpsg_productform" id="wpsg_produktform" method="post" action="<?php echo $this->get_option('wpsg_mod_targo_url'); ?>">
19
<?php $o_id = $this->view['o_id'];
20
	  $k_id = $this->view['k_id'];
21
	  $oOrder = wpsg_order::getInstance($o_id);
22
	  $brutto = $oOrder->getAmount(WPSG_BRUTTO);
23
	  $brutto = wpsg_round($brutto, 2);
24
	  /** @var wpsg_customer */
25
	  $oCustomer = wpsg_customer::getInstance($k_id);
26
	  /*
27
	  $geb1 = $oCustomer->getBirthdate("Y-m-d");
28
	  $geb2 = $oCustomer->getBirthdate();
29
	  $geb3 = $oCustomer->data["geb"];
30
	  $geb4 = wpsg_date("Y-m-d", strtotime($geb3));
31
	  $geb5 = strtotime($geb3);
32
	  $geb6 = strtotime("0000-00-00");
33
	  $geb6 = strtotime("1901-12-13");
34
	  $geb6 = strtotime("1901-12-14");
35
	  */
36
	  $dl = $this->view['targoLink'];
37
 
38
	  $street = $oOrder-> getInvoiceStreetClear(true);
39
	  $nr = $oOrder-> getInvoiceStreetNr();
40
 
41
 
42
?>
43
<?php ?>
44
<?php ?>
45
 
46
<br /><br />
47
<b>Obligatorische Daten für Targobank</b><br />
48
<input type="text" id="koop_id" name="koop_id" value="<?php echo $this->get_option('wpsg_mod_targo_koop_id');?>" placeholder="koop_id"><br />
49
<input type="text" id="SessionID" name="sessionID" value="<?php echo session_id();?>" placeholder="sessionID"><br />
50
<input type="text" id="amount" name="amount" value="<?php echo $brutto;?>" placeholder="amount"><br />
51
<input type="text" id="dealerID" name="dealerID" value="<?php echo $this->get_option('wpsg_mod_targo_dealerid');?>" placeholder="dealerID"><br />
52
<input type="text" id="dealerText" name="dealerText" value="<?php echo $this->view['targoLink'];?>" placeholder="dealerText"><br />
53
<input type="text" id="documentno" name="documentno" value="" placeholder="documentno"><br />
54
 
55
 
56
<b>Optionale Daten für Targobank</b><br />
57
<input type="text" id="dealerShopURL" name="dealerShopURL" value="" placeholder="dealerShopURL"><br />
58
<input type="text" id="dealerAbortURL" name="dealerAbortURL" value="" placeholder="dealerAbortURL"><br />
59
<input type="text" id="hash" name="hash" value="" placeholder="hash">(hashkey)<br />
60
<input type="text" id="" name="" value="" placeholder=""><br />
61
 
62
 
63
<b>Adressdaten aus Kundendaten</b><br />
64
<input type="text" id="surname" name="surname" value="<?php echo $oCustomer->getName();?>" placeholder="surname"><br />
65
<input type="text" id="firstname" name="firstname" value="<?php echo $oCustomer->getFirstname();?>" placeholder="firstname"><br />
66
<input type="text" id="street" name="street" value="<?php echo $oOrder->getInvoiceStreetClear(true);?>" placeholder="street"><br />
67
<input type="text" id="streetnumber" name="streetnumber" value="<?php echo $oOrder->getInvoiceStreetNr();?>" placeholder="streetnumber"><br />
68
<input type="text" id="zip" name="zip" value="<?php echo $oCustomer->getZip();?>" placeholder="zip"><br />
69
<input type="text" id="city" name="city" value="<?php echo $oCustomer->getCity();?>" placeholder="city"><br />
70
<input type="text" id="telnocode" name="telnocode" value="" placeholder="vorwahl"><br />
71
<input type="text" id="telno" name="telno" value="<?php echo $oCustomer->getPhone();?>" placeholder="telno"><br />
72
<input type="text" id="birthday" name="birthday" value="<?php echo $oCustomer->getBirthdate("Y-m-d");?>" placeholder="birthday"><br />
73
<input type="text" id="email" name="email" value="<?php echo $oCustomer->getEMail();?>"  placeholder="email"><br />
74
 
75
<input type="submit" id="submit" name="submit" value="submit" >
76
 
77
</form>
78
 
79
 
80
<?php if ($this->get_option('wpsg_mod_targo_autostart') == '1') { ?>
81
<script type="text/javascript">/* <![CDATA[ */
82
 
83
	jQuery(document).ready(function() {
84
		window.setTimeout(function() {
85
    		//location.href = "<?php echo $this->view['targoLink']; ?>";
86
			location.href = "<?php echo $this->get_option('wpsg_mod_targo_url');?>";
87
		}, 1000);
88
	} );
89
 
90
/* ]]> */</script>
91
<?php } ?>