Shath Posted November 27, 2008 Share Posted November 27, 2008 Hello when people go the the invoice where they can choose payment module there is automatically this paypal button (yellow and says check out) now i would like to change that button. the html code for it is input src="https://www.paypal.com/en_US/i/btn/x-click-but03.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" border="0" type="image"> I cant find this code in my whmcs folder, anyone know where to look? Thank you! 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 28, 2008 Share Posted November 28, 2008 modules/gateway/paypal.php look if you like but it won't do you any good The file is encoded. 0 Quote Link to comment Share on other sites More sharing options...
wiz Posted June 11, 2010 Share Posted June 11, 2010 (edited) So how can we do it ? I need change it to one with spanish caption and with CCs If I can choose, it have the colors of my website or Edited June 11, 2010 by wiz 0 Quote Link to comment Share on other sites More sharing options...
tomdchi Posted June 11, 2010 Share Posted June 11, 2010 the paypal module is encrypted. You can't change the image because the link to it is hard coded into the script and the image is coming from PayPal's server. 0 Quote Link to comment Share on other sites More sharing options...
revive Posted July 15, 2010 Share Posted July 15, 2010 That's no good.. how is someone to customize the look/layout and even language when we cannot chance something as simple as a button image? It would be better to include these images in the app, instead of linking to Paypals.. so they can at least be edited.. we too need to edit this image.. WHMCS devs.. please advise of a solution here! 0 Quote Link to comment Share on other sites More sharing options...
revive Posted July 15, 2010 Share Posted July 15, 2010 SOLUTION FOUND: see this post: http://forum.whmcs.com/showpost.php?p=34005&postcount=8 Summarized: From your templates/xx/viewinvoice.tpl file, you need to REPLACE the following line: {$paymentbutton} With this... {$paymentbutton|replace:'https://www.paypal.com/en_US/i/btn/':'http://www.yourdomain.com/images/'} Note that the variable name is paymentbutton, not paybutton. Make sure to upload 2 of your custom images to your images directory named as follows: x-click-but20.gif (PayPal Subscribe button) x-click-but03.gif (PayPal Check Out button) I tested it and it's working fine. Thanks to Apollo1 for this !! 0 Quote Link to comment Share on other sites More sharing options...
vchosting Posted July 16, 2010 Share Posted July 16, 2010 Great thanks for this! 0 Quote Link to comment Share on other sites More sharing options...
ebmocwen Posted March 11, 2013 Share Posted March 11, 2013 Worked a treat - thanks a lot! 0 Quote Link to comment Share on other sites More sharing options...
disgruntled Posted March 11, 2013 Share Posted March 11, 2013 (edited) {$paymentbutton} With this... {$paymentbutton|replace:'https://www.paypal.com/en_US/i/btn/':'http://www.yourdomain.com/images/'} You could use a local version of the image with replacement but you shouldnt, the reason that its done the way it is now is a very simple one. PayPal want you to. If everybody links to the paypal hosted images then when they get updated then all the buttons are updated in one hit. Of course many people dont, you will see that instantly when you hit a site that uses outdated buttons because paypal dont notify of any changes to my knowledge. So in this case i would look at the image option on the paypal website. then instead of replacing with a local version replace the with one of their other more favourable options. They tell you the links to them, just replace that second url with one of theirs and this will work perfectly for you. {$paymentbutton|replace:'https://www.paypal.com/en_US/i/btn/':'https://www.paypal.com/some/other/paypal/btn'} Edited March 11, 2013 by disgruntled 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.