Soldier Posted January 13, 2017 Share Posted January 13, 2017 Hello there, I need Help by customize the Payment Button of this Module because its Hardcoded. But the Dev of this Gateway just gave me this Code Lines for Help: $('input[value=Pay with paysafecard]').setAttribute('type', 'image'); $('input[value=Pay with paysafecard]').setAttribute('src', 'https://www.paysafecard.com/fileadmin/Website/Dokumente/B2B/logo_paysafecard.jpg'); He told me that i can customize the Payment Button with js but i havent Experience with it so i ask you for some Help! (sorry for my bad english) - Soldier 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted January 14, 2017 Share Posted January 14, 2017 the safest way to do it is to use ActionHook, create new PHP file inside /includes/hooks/ directory and copy the following code inside it: <?php add_hook("ClientAreaHeadOutput", 1, function($vars){ return <<<HTML <script type="text/javascript"> $(document).ready(function(){ $('input[value="Pay with paysafecard"]').setAttribute('type', 'image'); $('input[value="Pay with paysafecard"]').setAttribute('src', 'https://www.paysafecard.com/fileadmin/Website/Dokumente/B2B/logo_paysafecard.jpg'); }); </script> HTML; }); 0 Quote Link to comment Share on other sites More sharing options...
Soldier Posted January 14, 2017 Author Share Posted January 14, 2017 Now i get endless loading if i click on "Invoices" Screen1: http://pokit.org/get/?0679f01d0db06ebb79f787a9d77fc0e2.jpg and this error: http://pokit.org/get/?2d977d2a2d1726ef99a237a9754cf1b3.jpg 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.