summaryrefslogtreecommitdiff
path: root/views/mods/mod_paypal/order_done.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2019-10-18 13:00:08 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2019-10-18 13:00:08 +0000
commit748805868a316b281e758658bda5344c9165e464 (patch)
tree7901fc9ad7b2948cd01714654a089e9c78d60f9e /views/mods/mod_paypal/order_done.phtml
parent4fb143605f7833dde4e8979dbdc4b54cd4ca2573 (diff)
- Bugfix: Bereits gezahlte PayPal Bestellungen zeigen dies jetzt auf der Bestellabschlußseite an
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7587 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_paypal/order_done.phtml')
-rw-r--r--views/mods/mod_paypal/order_done.phtml46
1 files changed, 30 insertions, 16 deletions
diff --git a/views/mods/mod_paypal/order_done.phtml b/views/mods/mod_paypal/order_done.phtml
index 6fd0ffb..340d4be 100644
--- a/views/mods/mod_paypal/order_done.phtml
+++ b/views/mods/mod_paypal/order_done.phtml
@@ -6,20 +6,34 @@
?>
-<p><?php echo __('Um den Betrag mit PayPal zu bezahlen klicken Sie bitte auf folgendes Logo.', 'wpsg'); ?></p>
-<p>
- <a title="<?php echo __('Mit PayPal bezahlen', 'wpsg'); ?>" href="<?php echo $this->view['paypalLink']; ?>">
- <img src="<?php echo $this->getRessourceURL('mods/mod_paypal/gfx/pp-logo-big.png'); ?>" align="left" alt="<?php echo __('Mit PayPal bezahlen', 'wpsg'); ?>" style="margin-right:7px;">
- </a>
-</p>
-<?php if ($this->get_option('wpsg_mod_paypal_autostart') == '1') { ?>
-<script type="text/javascript">/* <![CDATA[ */
-
- jQuery(document).ready(function() {
- window.setTimeout(function() {
- location.href = "<?php echo $this->view['paypalLink']; ?>";
- }, 1000);
- } );
+<?php if (wpsg_isSizedInt($this->view['wpsg_mod_paypal']['done'])) { ?>
-/* ]]> */</script>
-<?php } ?> \ No newline at end of file
+ <p><?php echo __('Um den Betrag mit PayPal zu bezahlen klicken Sie bitte auf folgendes Logo.', 'wpsg'); ?></p>
+
+ <p>
+ <a title="<?php echo __('Mit PayPal bezahlen', 'wpsg'); ?>" href="<?php echo $this->view['paypalLink']; ?>">
+ <img src="<?php echo $this->getRessourceURL('mods/mod_paypal/gfx/pp-logo-big.png'); ?>" align="left" alt="<?php echo __('Mit PayPal bezahlen', 'wpsg'); ?>" style="margin-right:7px;">
+ </a>
+ </p>
+
+ <?php if ($this->get_option('wpsg_mod_paypal_autostart') == '1') { ?>
+
+ <script>
+
+ jQuery(document).ready(function() {
+ window.setTimeout(function() {
+ location.href = "<?php echo $this->view['paypalLink']; ?>";
+ }, 1000);
+ } );
+
+ </script>
+
+ <?php } ?>
+
+<?php } else { ?>
+
+ <p>
+ <?php echo __('Die Zahlung wurde bereits mit PayPal abgeschlossen.', 'wpsg'); ?>
+ </p>
+
+<?php } ?>