Subversion Repositories wpShopGermany4

Rev

Rev 5877 | Rev 5922 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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