latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Donation of any amount to get level 1

Home Forums Community Forum Donation of any amount to get level 1

This topic contains 6 replies, has 2 voices. Last updated by  Mark Jack 4 years, 10 months ago.

Topic Author Topic
Posted: Friday Mar 2nd, 2012 at 7:20 pm #7119
Mark Jack
Username: markj

Hi,

Does anyone know if it is possible to set s2Member up so that a one time paypal donation gives a person level 1 (or any level) membership?

Thanks,
Mark

List Of Topic Replies

Viewing 6 replies - 1 through 6 (of 6 total)
Author Replies
Author Replies
Posted: Friday Mar 2nd, 2012 at 11:08 pm #7144
David Welch
Username: dwbiz05

The best way I can think of off the top of my head is to use the button html code from the paypal button generator, then just make the amount field visible so they can enter the amount they want to donate.

If you generate the code in the level that you want, I believe it will work no matter what price they put into the input button. If you watch the some of the videos from s2member you will notice that they often use different amounts for the same level on some of their paypal buttons, especially if they are using custom capabilities.

Hope that helps. Maybe there is a better solution but that one seems the easiest to integrate.

Dave

Posted: Saturday Mar 3rd, 2012 at 7:52 pm #7196
Mark Jack
Username: markj

Thanks Dave, that was helpful.

So what is the best way of making the amount field visible?

I changed the ‘ra’ value to ra=”” and that made it show an empty box for entering an amount and it all worked. It seemed a little hacky though and the default amount seemed to be 0, so is there another way to make make the amount field visible? (especially if it could change the default amount which the subscriber can then edit to whatever they would like).

All the best,
Mark

Posted: Saturday Mar 3rd, 2012 at 9:51 pm #7202
David Welch
Username: dwbiz05

You have the right idea. Just make the input:

<input type="text" name="ra" value="1.00" />

Replace 1.00 with whatever you want as the default.

Dave

  • This reply was modified 4 years, 10 months ago by  David Welch.
Posted: Sunday Mar 4th, 2012 at 8:48 am #7220
Mark Jack
Username: markj

Hi Dave,

I used that code, and then also tried it with the name=”amount” (which I understand now was what you meant in the first place) and with the name=”amount” it worked perfectly giving a little box on my website which then sets the amount for the paypal checkout.

The only thing now is that it seems that editing the ‘resulting paypal button code’ doesn’t update the shortcode and it seems that I need to be using the shortcode to use the encryption option on paypal.

Any thoughts?

Thanks a lot for your help,
Mark

Posted: Sunday Mar 4th, 2012 at 9:01 am #7221
David Welch
Username: dwbiz05

Duh… sorry I didn’t catch the wrong name value.

True, you can’t update the shortcode that way and you can’t realy encrypt your button if you are doing it that way.

The only other way I can think of if you need encrypted buttons is to create a form that then is sent to a function in your functions.php page which dynamically creates the shortcode based on the input from the form. :)

So, for encrypted buttons it’s going to be more of a pain.

You might be able to update the button shortcode (or replace it) with jquery… though even then someone who knows what they are looking at could see your jquery code and the shortcode you are using so that may not be a good option either.

Dave

EDIT: Just wondering if they are donations, why the need for encryption?

  • This reply was modified 4 years, 10 months ago by  David Welch.
Posted: Sunday Mar 4th, 2012 at 9:13 am #7223
Mark Jack
Username: markj

Ok thanks,

Perhaps I don’t need an encrypted button if it is just for a donation to join my one and only membership level, what is the worst someone could do?

Mark

Viewing 6 replies - 1 through 6 (of 6 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.