serverx Posted October 11, 2007 Share Posted October 11, 2007 Hi, i was trying to change the invoice paypal buttons to my language, but surprise !!! Matt linked that buttons directly to Paypal USA https://www.paypal.com/en_US/i/btn/x-click-but03.gif https://www.paypal.com/en_US/i/btn/x-click-but20.gif How i can change it? Matt what have u done !!!!! Thanks 0 Quote Link to comment Share on other sites More sharing options...
kcackler Posted October 11, 2007 Share Posted October 11, 2007 Edit the templates? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted October 11, 2007 WHMCS CEO Share Posted October 11, 2007 You can use the smarty string replace function on the {$paybutton} variable like this: {$paybutton|replace:'https://www.paypal.com/en_US/i/btn/':'http://www.yourdomain.com/images/'} Matt 0 Quote Link to comment Share on other sites More sharing options...
serverx Posted October 11, 2007 Author Share Posted October 11, 2007 Hi matt, where's the function {$paybutton} ? wich file? Thanks 0 Quote Link to comment Share on other sites More sharing options...
sisgroup Posted October 12, 2007 Share Posted October 12, 2007 in the invoice.tpl its a verible you will need to add its not there as default 0 Quote Link to comment Share on other sites More sharing options...
serverx Posted October 12, 2007 Author Share Posted October 12, 2007 I couldnt found the invoice.tpl on the teplate folder...... maybe u are telling viewinvoice.tpl ? but on viewinvoice.tpl there's the function {$paybutton}. Can u help me? thanks 0 Quote Link to comment Share on other sites More sharing options...
sisgroup Posted October 12, 2007 Share Posted October 12, 2007 No this is what Matt is saying, you need to add the below verible to that file in the code. {$paybutton|replace:'https://www.paypal.com/en_US/i/btn/':'http://www.yourdomain.com/images/'} 0 Quote Link to comment Share on other sites More sharing options...
apollo1 Posted October 17, 2007 Share Posted October 17, 2007 Just a quick update: 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. 0 Quote Link to comment Share on other sites More sharing options...
congkai Posted October 21, 2007 Share Posted October 21, 2007 other then paypal button, can other type of payment like BANK TRANSFER and the logo of my bank comes out? 0 Quote Link to comment Share on other sites More sharing options...
Unspecific Posted October 23, 2007 Share Posted October 23, 2007 I don't understand, congkai? 0 Quote Link to comment Share on other sites More sharing options...
Anders Posted December 2, 2007 Share Posted December 2, 2007 Can anyone confirm if they can see the modified paypalbuttons in mozilla and what about change the buttons for 2 checkout?? any ides guys? Regards Birken 0 Quote Link to comment Share on other sites More sharing options...
juksells Posted September 28, 2008 Share Posted September 28, 2008 Just a quick update: 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. How would you apply this to the AlertPay button? 0 Quote Link to comment Share on other sites More sharing options...
juksells Posted September 29, 2008 Share Posted September 29, 2008 Anyone know? would be great. 0 Quote Link to comment Share on other sites More sharing options...
cyberneticos Posted June 15, 2009 Share Posted June 15, 2009 Just a quick update: 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. Not working for 4.0 . How can I change paypal images in 4.0 (we are a spanish firm too) 0 Quote Link to comment Share on other sites More sharing options...
cyberneticos Posted June 15, 2009 Share Posted June 15, 2009 nevermind it is working 0 Quote Link to comment Share on other sites More sharing options...
revive Posted July 15, 2010 Share Posted July 15, 2010 @apollo1 - thank you!! 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.