From 703a450908599b3ebc8018f41f54e510bb0dc255 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Fri, 4 Mar 2016 21:04:26 +0000 Subject: - Übernahme neuer Funktionen aus dem alten Zweig / Pfad / Einstellungen / Hilfe Icons / Berechnung - Neuer Modulfilter im neuen Backend MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5382 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/mods/mod_paypalapi/paypalplus.phtml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'views/mods/mod_paypalapi/paypalplus.phtml') diff --git a/views/mods/mod_paypalapi/paypalplus.phtml b/views/mods/mod_paypalapi/paypalplus.phtml index 2cecd3b..f9efe0d 100644 --- a/views/mods/mod_paypalapi/paypalplus.phtml +++ b/views/mods/mod_paypalapi/paypalplus.phtml @@ -12,7 +12,22 @@ "approvalUrl": "view['wpsg_mod_paypalapi']['approval_url']; ?>", "language": "de_DE", "preselection": "", - "country": "DE", + "country": "DE", + hasMod('wpsg_mod_onepagecheckout') && get_the_id() == $this->get_option('wpsg_mod_onepagecheckout_page')) { ?> + "onContinue": function(event) { + + jQuery('#wpsg_basket_form').attr('target', 'wpsg_hiddenTarget'); + jQuery('#wpsg_basket_form').append(''); + jQuery('#wpsg_basket_form').append(''); + jQuery('#wpsg_basket_form').submit(); + jQuery('#wpsg_basket_form').removeAttr('target'); + jQuery('#wpsg_hidden_action').remove(); + jQuery('#wpsg_hidden_payment').remove(); + + //PAYPAL.apps.PPP.doCheckout(); + + }, + view['wpsg_order_done'] !== true) { ?> "onLoad": function() { if (typeof wpsg_mod_paypalapi_load == 'function') wpsg_mod_paypalapi_load(); }, "buttonLocation": "outside", -- cgit v1.2.3