BoKr Posted September 17, 2013 Share Posted September 17, 2013 Hier gibt es einen Hinweis, wie man den fancybox Tünnef aus dem PayPal-Modul heraus bekommt. Ich habe es leider nicht geschaft und bräuchte dazu Hilfe. Könnte jemand helfen, so dass wir unsere Bezahlmodule einheitlich haben? Es ist nur das PayPal-Modul, welches via fancybox die Bestellübersicht lädt. So sieht es aus (express_checkout_payment.tpl): <div id="templateButtonFix" style="display:none;"> {include file="$tpl_dir./shopping-cart_own.tpl"} <p>{include file="$tpl_dir./shopping-cart_own_cart.tpl"}</p> </div> <div id="templatePayPal"> <p class="payment_module"> <a href="javascript:void(0)" id="paypal_process_payment" title="{l s='Pay with PayPal' mod='paypal'}"> {if isset($use_mobile) && $use_mobile} <img src="{$base_dir_ssl}modules/paypal/img/logos/express_checkout_mobile/CO_{$PayPal_lang_code}_orange_295x43.png" /> {else} {if isset($logos.LocalPayPalHorizontalSolutionPP) && $PayPal_payment_method == $PayPal_integral} <img src="{$logos.LocalPayPalHorizontalSolutionPP}" alt="{$PayPal_content.payment_choice}" height="48px" /> {else} <img src="{$logos.LocalPayPalLogoMedium}" alt="{$PayPal_content.payment_choice}" /> {/if} {$PayPal_content.payment_choice} {/if} </a> </p> <form id="paypal_payment_form" action="{$base_dir_ssl}modules/paypal/express_checkout/payment.php" data-ajax="false" title="{l s='Pay with PayPal' mod='paypal'}" method="post"> <input type="hidden" name="express_checkout" value="{$PayPal_payment_type}"/> <input type="hidden" name="current_shop_url" value="{$PayPal_current_shop_url}" /> </form> </div> <div id="CartSum1" style="display:none;"> <a href="#CartSum2" class="fancybox"></a> <div id="CartSum2" > </div> <div id="CartSum3"> <!-- added for 1 Button Fix //--> <p class="cart_navigation"> <a href="#" class="button_large">{l s='Other payment methods' mod='paypal'}</a> <input id="payButton" type="button" name="submit" value="{l s='I confirm my order' mod='paypal'}" class="exclusive_large" /> </p> <!-- added for 1 Button Fix //--> </div> </div> <style> #cartBody{ background-color:#fff; position: absolute; top: 0; width: 100%; z-index:9999; } </style> <script type="text/javascript"> <!-- $(document).ready(function(){ var showButtonCheckOut = function() { $("#paypal_process_payment").unbind('click',showButtonCheckOut); var buttonClone =$("#templateButtonFix").clone(); var payClone = $("#templatePayPal").clone(); var buttonPayClone = $("#CartSum3").clone(); //Submit Handlers for Paymen Processing payClone.find("#paypal_process_payment").attr('onClick' , "$('#paypal_payment_form').submit()" ); $('#CartSum2 #payButton').live('click', function(){ $('#paypal_payment_form').submit(); }); //open Fancy $("#CartSum2").html(""); $("#CartSum2").append(buttonClone.html()); $("#CartSum2").append(payClone.html()); $("#CartSum2").append($("#CartSum3").html()); $(".fancybox").fancybox({ centerOnScroll : true, autoDimensions : false, padding : 10, width : 950, height : 650, autoScale : false, }).trigger('click'); $.fancybox.resize(); $.fancybox.center(); /*$("a.iframe").click(function(){ window.open($(this).attr('href')); } ); */ setCloseButtonFancy(); } function setCloseButtonFancy() { $('.cart_navigation .button_large').bind('click', function(){ $.fancybox.close(); //focus other payment medthods on exit setTimeout( function(){ $('.paiement_block').attr("tabindex",-1).focus(); }, 100); }); } //set new onClick for PayPal to get 1buttonFix displayed $("#paypal_process_payment").bind('click',function(){ showButtonCheckOut(); }); }); //--> </script> Link to comment Share on other sites More sharing options...
guest* Posted September 17, 2013 Share Posted September 17, 2013 Probiere es mit der aktuellen Paypal Modulversion. Irgendwann in einem der letzten Paypal Upgrades wurde die fancybox wieder entfernt. Link to comment Share on other sites More sharing options...
BoKr Posted September 18, 2013 Author Share Posted September 18, 2013 Klar mache ich dann mal, und wenn es nicht geht (es wurde ja immer betont: nimm nicht die neuen PayPal-Versionen, sondern max. 3.4.8!), dann werde ich mal die beiden Versionen vergleichen. Vielleicht komme ich so weiter. Danke Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now