Subversion Repositories wpShopGermany4

Rev

Rev 5873 | Rev 5888 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5873 Rev 5877
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
/**
3
	/**
4
 * Dieses Template wird nach einer Targo Zahlung angezeigt
4
 	* Dieses Template wird nach einer Targo Zahlung angezeigt
5
*/
5
	*/
6
 
6
 
-
 
7
	if ($this->get_option('wpsg_mod_targo_url_use') == 0)
-
 
8
	{
-
 
9
		$url = $this->get_option('wpsg_mod_targo_url_test');
-
 
10
	}
-
 
11
	else
-
 
12
	{
7
$url = $this->get_option('wpsg_mod_targo_url');
13
		$url = $this->get_option('wpsg_mod_targo_url_live');
-
 
14
	}
8
?>
15
?>
9
 
16
 
10
<p><?php echo __('Um den Betrag mit Targo zu bezahlen klicken Sie bitte auf folgendes Logo.', 'wpsg'); ?></p> 
17
<p><?php echo __('Um den Betrag mit Targo zu bezahlen klicken Sie bitte auf folgendes Logo.', 'wpsg'); ?></p> 
11
<p>
18
<p>
12
	<a title="<?php echo __('Mit Targo bezahlen', 'wpsg'); ?>" href="<?php echo $this->get_option('wpsg_mod_targo_url'); ?>">
19
	<a title="<?php echo __('Mit Targo bezahlen', 'wpsg'); ?>" href="<?php echo $url; ?>">
13
		<img src="<?php echo $this->getRessourceURL('gfx/targologo.png'); ?>" align="left" alt="<?php echo __('Mit Targo bezahlen', 'wpsg'); ?>" style="margin-right:7px;">
20
		<img src="<?php echo $this->getRessourceURL('gfx/targologo.png'); ?>" align="left" alt="<?php echo __('Mit Targo bezahlen', 'wpsg'); ?>" style="margin-right:7px;">
14
	 
21
	 
15
	</a>
22
	</a>
16
</p>
23
</p>
17
 
24
 
18
<form hidden class="wpsg_productform" id="wpsg_produktform" method="post" action="<?php echo $this->get_option('wpsg_mod_targo_url'); ?>">
25
<form hidden class="wpsg_productform" id="wpsg_produktform" method="post" action="<?php echo $url ?>">
19
<?php $o_id = $this->view['o_id'];
26
<?php $o_id = $this->view['o_id'];
20
	  $k_id = $this->view['k_id'];
27
	  $k_id = $this->view['k_id'];
21
	  $oOrder = wpsg_order::getInstance($o_id);
28
	  $oOrder = wpsg_order::getInstance($o_id);
22
	  $brutto = $oOrder->getAmount(WPSG_BRUTTO);
29
	  $brutto = $oOrder->getAmount(WPSG_BRUTTO);
23
	  $brutto = wpsg_round($brutto, 2);
30
	  $brutto = wpsg_round($brutto, 2);
Line 80... Line 87...
80
<?php if ($this->get_option('wpsg_mod_targo_autostart') == '1') { ?>
87
<?php if ($this->get_option('wpsg_mod_targo_autostart') == '1') { ?>
81
<script type="text/javascript">/* <![CDATA[ */
88
<script type="text/javascript">/* <![CDATA[ */
82
 
89
 
83
	jQuery(document).ready(function() { 
90
	jQuery(document).ready(function() { 
84
		window.setTimeout(function() {
91
		window.setTimeout(function() {
85
    		//location.href = "<?php echo $this->view['targoLink']; ?>";
92
			location.href = "<?php echo $url;?>";
86
			location.href = "<?php echo $this->get_option('wpsg_mod_targo_url');?>";
-
 
87
		}, 1000);
93
		}, 1000);
88
	} );
94
	} );
89
	
95
	
90
/* ]]> */</script>
96
/* ]]> */</script>
91
<?php } ?>
97
<?php } ?>
92
98