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.

PayPal Pro Free Registration Form issue

Home Forums Community Forum PayPal Pro Free Registration Form issue

This topic contains 3 replies, has 2 voices. Last updated by  Eduan 4 years, 2 months ago.

Topic Author Topic
Posted: Thursday Oct 25th, 2012 at 8:41 am #29636
Marko
Username: mtomic

Hello,

I have disabled open registrations on my client’s site and I’m using the PayPal Pro Free registration Form shortcode instead. The idea is to set free registrations to s2member level 1, without sending them to PayPal. The shortcode I’m using looks like this:

[s2Member-Pro-PayPal-Form register="1" level="1" ccaps="trial" desc="Signup now, it's Free!" custom="mydomainurl" tp="0" tt="D" /]

The issue is that occasionally, users that register via this form are awarded with a “Subscriber” role (or level 0) and I can’t figure out why. It’s a big issue because level 0 registrations don’t get what they are supposed to.

I do have a hook that does some custom stuff when trial registrations are processed. It looks something like this:

add_action('ws_plugin__s2member_during_configure_user_registration', 's2_trial_rego');
 function s2_trial_rego($vars = array()) {
 if ($vars['_pmr']['ws_plugin__s2member_custom_reg_field_s2member_level']==1) {
 // do some stuff
 }
 }

The code above gets hit for every free registration, which is what I expect. But when I log into wp-admin, there is a “Subscriber” role next to the user and it clearly should be s2member Level 1.

Any ideas?

Cheers

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Thursday Oct 25th, 2012 at 9:44 am #29637
Marko
Username: mtomic

Actually I just tested level 2 registrations as well. They also assign users with a Subscriber level 0. Am I doing something obviously wrong? This worked perfectly before.

I do have heavy wp-super-cache in place and I’m wondering if that has something to do with this.

  • This reply was modified 4 years, 2 months ago by  Marko.
Posted: Thursday Oct 25th, 2012 at 11:49 am #29651
Marko
Username: mtomic

Fixed it. I took a look at all my hooks and one of them was handling 404 redirects by hooking into ‘template_redirect’ function. Lesson learnt – don’t hook into core functions without testing them from every angle :-)

Posted: Thursday Oct 25th, 2012 at 12:12 pm #29652
Eduan
Username: Eduan
Moderator

Glad you found and solved the problem Marko. :)

Viewing 3 replies - 1 through 3 (of 3 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.