Jump to content

change paypal button on invoice


Shath

Recommended Posts

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!

Link to comment
Share on other sites

  • 1 year later...
  • 1 month later...

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!

Link to comment
Share on other sites

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 !!

Link to comment
Share on other sites

  • 2 years later...

{$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 by disgruntled
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated