Hi,
Newbie question ...

I am trying to figure out how to change the button graphic in lm_paypal_subscriptions. Is there someplace in the administrator interface where I can set the button url? (I haven't been able to find it.) Or is there some other way I can specify the button url without hacking the code?

Thank you!

Comments

grantkruger’s picture

You can edit the module (lm_paypal_subscriptions.module in your sites/all/modules folder most likely, at around line 517 in my version).

In my version the variable $button_url is being set to http://images.paypal.com/images/x-click-butcc-subscribe.gif
($button_url = 'http://images.paypal.com/images/x-click-butcc-subscribe.gif';).

Simply change that URL to the URL of the button you want (I saved my own version locally and pointed to that).

mrtoner’s picture

IMHO, there needs to be a setting to change the default button.

Keep in mind, too, that something like lm_paypal_subscribe(1,8,'http://yourdomain/images/buy-now.png') generates a PayPal button with your desired image. I place this in a block for my product pages.

grantkruger’s picture

Agreed, and from the code I believe this was originally intended, because it allows for this button to have a pre-set value.