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.

Home Forums RM

About: RM

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 14 topics - 1 through 14 (of 14 total)
Topic Count Last Reply
https

By:  RM in: Community Forum

voices: 1
replies: 0

3 years ago  RM

s2member delay recurring payment

By:  RM in: Community Forum

voices: 1
replies: 1

3 years, 1 month ago  RM

Requirements of PayPal Pro for Dynamic EOT

By:  Simon Mater in: Community Forum

voices: 2
replies: 2

3 years, 1 month ago  RM

WP Coupon Voucher Extension for S2 Member

By:  Marco Rodrigues in: Community Forum

voices: 2
replies: 1

3 years, 1 month ago  RM

Pay per download or monthly membership

By:  Nicole Bandes in: Community Forum

voices: 1
replies: 0

3 years, 1 month ago  Nicole Bandes

Update user level based on coupon code

By:  dragos balota in: Community Forum

voices: 2
replies: 1

3 years, 2 months ago  RM

Using Access Codes

By:  RM in: Community Forum

voices: 1
replies: 0

3 years, 2 months ago  RM

Free Membership form in Pro Forms

By:  RM in: Community Forum

voices: 1
replies: 2

3 years, 2 months ago  RM

Agree to Terms with current account upgrading

By:  RM in: Community Forum

voices: 2
replies: 6

3 years, 3 months ago  Cristián Lávaque

Updating Prices & Billing Modification

By:  Jennifer Reaves in: Community Forum

voices: 1
replies: 0

3 years, 3 months ago  Jennifer Reaves

Free registration form in checkout options

By:  RM in: Community Forum

voices: 1
replies: 0

3 years, 4 months ago  RM

Pro Forms does not detect logged in user

By:  RM in: Community Forum

voices: 2
replies: 8

3 years, 5 months ago  Cristián Lávaque

Pro Forms doesn't detect logged in user

By:  RH in: Community Forum

voices: 3
replies: 24

3 years, 5 months ago  Cristián Lávaque

Viewing 14 topics - 1 through 14 (of 14 total)

Topics I've Started

Viewing 7 topics - 1 through 7 (of 7 total)
Topic Count Last Reply
https

By:  RM in: Community Forum

voices: 1
replies: 0

3 years ago  RM

s2member delay recurring payment

By:  RM in: Community Forum

voices: 1
replies: 1

3 years, 1 month ago  RM

Using Access Codes

By:  RM in: Community Forum

voices: 1
replies: 0

3 years, 2 months ago  RM

Free Membership form in Pro Forms

By:  RM in: Community Forum

voices: 1
replies: 2

3 years, 2 months ago  RM

Agree to Terms with current account upgrading

By:  RM in: Community Forum

voices: 2
replies: 6

3 years, 3 months ago  Cristián Lávaque

Free registration form in checkout options

By:  RM in: Community Forum

voices: 1
replies: 0

3 years, 4 months ago  RM

Pro Forms does not detect logged in user

By:  RM in: Community Forum

voices: 2
replies: 8

3 years, 5 months ago  Cristián Lávaque

Viewing 7 topics - 1 through 7 (of 7 total)

My Latest Replies (From Various Topics)

Viewing 21 replies - 1 through 21 (of 21 total)
Author Replies
Author Replies
Posted: Friday Nov 22nd, 2013 at 5:06 am #61286
RM
Username: rmendoza

NO answer? … any help is appreciated.

Posted: Wednesday Nov 13th, 2013 at 2:37 pm #61096
RM
Username: rmendoza

I used the following line to set an EOT

update_user_option( $user_id, 's2member_auto_eot_time', $expire_on );
Posted: Wednesday Nov 13th, 2013 at 2:36 pm #61095
RM
Username: rmendoza

WRONG INFO

Posted: Wednesday Oct 30th, 2013 at 3:00 pm #60764
RM
Username: rmendoza

I am also looking into implementing something like this. Any help would be appreciated.

Posted: Friday Oct 11th, 2013 at 1:42 pm #60296
RM
Username: rmendoza

Why has there been no response? Not even to say you can’t. Poor Support.

Posted: Monday Sep 30th, 2013 at 2:42 pm #60015
RM
Username: rmendoza

STILL WAITING ….

Posted: Monday Sep 30th, 2013 at 2:39 pm #60012
RM
Username: rmendoza

I got it to work with a few hooks. I am posting the code below for anyone who would like to use it. I am posting this as well for the moderators/programmers to see if there is an easier way to do this.

in s2hacks.php (in mu-plugins)

function save_tos_profile_modifications( $defined ) {
    if( !$defined['fields_applicable'] || !in_array( 'tos', $defined['fields_applicable'] ) )
        return;
    
    if( isset( $defined['_p']['ws_plugin__s2member_profile_tos'] ) ) {
        global $current_user;
        if( isset( $defined['fields'] ) )
            $fields = $defined['fields'];
        else
            $fields = array();
    
        $fields['tos'] = $defined['_p']['ws_plugin__s2member_profile_tos'];
        update_user_option ($current_user->id, 's2member_custom_fields', $fields);
    }
    
    return;
}   
add_filter( 'ws_plugin__s2member_during_handle_profile_modifications', 'save_tos_profile_modifications', 10, 1);
    
function configure_tos_editable( $configured, $defined) {
    if( isset( $defined['field'] ) )
        if( $defined['field']['id'] == 'tos' )
            array_push( $configured, 'tos' );
    
    return $configured;
}   
add_filter( 'ws_plugin__s2member_custom_fields_configured_at_level', 'configure_tos_editable', 10, 2 );

The first function will save the tos to the member profile. Just because you sent the new value of tos didn’t make the function save it. This will make the function always save it if it is present. The second function will allow the field to be visible. Before, it will block the showing of the field due to my current setup of not editable and hidden after registration.

I also used the code previously posted. Hope this helps someone.

Posted: Monday Sep 30th, 2013 at 2:35 pm #60010
RM
Username: rmendoza

was a double post … see below

  • This reply was modified 3 years, 3 months ago by  RM.
Posted: Friday Sep 27th, 2013 at 4:21 pm #59966
RM
Username: rmendoza

Thanks for the help.

I am having a new problem. I am unable to edit the field using s2member. Here is what I have:

function tos_agreement_check( $obj ) {
    if( is_user_not_logged_in() )
        return;
          
    $agreed_to_tos = get_user_field( 'tos' );
    if( $agreed_to_tos )
        return;
          
    if( $obj->request != 'my-account' ) {
        wp_redirect( home_url( '/my-account' ) );                                                                                                                                                                                                                              
    }     
          
    return;
}         
add_action( 'wp', 'tos_agreement_check' );

And to display the field:

<form method="post" name="accept_tos" id="accept_tos" action="<?php echo esc_attr (site_url ("/")); ?>">
<?php echo c_ws_plugin__s2member_custom_reg_fields::custom_field_gen (true, $custom_fields['tos']['config'], 'ws_plugin__s2member_profile_', 'ws-plugin--s2member-profile-', 'ws-plugin--s2member-profile-field', '', 1, '', $custom_fields, $agreed_to_tos, '');?>
<input type="hidden" name="ws_plugin__s2member_profile_save" id="ws-plugin--s2member-profile-save" value="<?php echo esc_attr (wp_create_nonce ("ws-plugin--s2member-profile-save")); ?>" />

I can get to the point of it alerting me that the profile has been saved, but it hasn’t. I figured out that the reason is because I have it noteditable after registration. Is there anyway to bypass this. I have not found a way to do this without setting the field to editable. I only want it editable on registration and at this certain place.

Thanks in advance,

Posted: Monday Sep 23rd, 2013 at 5:47 pm #59781
RM
Username: rmendoza

I need this to be handled immediately please. I would appreciate any and all help. Please help asap.

Posted: Wednesday Jul 24th, 2013 at 12:34 pm #53996
RM
Username: rmendoza

3. PayPal® Pro ($30/mo + optional Recurring Billing service) = $60/mo total.
PayPal pro is only available in the US (including Alaska/Hawaii), the UK, and Canada.
This allows you to keep Customers on your site throughout the entire checkout process. You can accept Visa, MasterCard, Amex, Discover, Maestro, Solo, and ALSO offer PayPal® as an option to those who prefer to pay with PayPal®.

The above quote is from “Knowledge Base » PayPal® Services / A Quick Comparison.” I do not understand how this is true if they select paypal as their payment for subscription.

So my reworded question is ….

How do I allow a customer to purchase/upgrade a subscription with paypal and keep them on our site. It says …

This allows you to keep Customers on your site throughout the entire checkout process.

How do I achieve this?

Posted: Tuesday Jul 23rd, 2013 at 2:33 pm #53893
RM
Username: rmendoza

Is the only paypal way to checkout for a subscription, besides credit cards, express checkout?

Posted: Monday Jul 22nd, 2013 at 3:20 pm #53822
RM
Username: rmendoza

I have enabled Paypal Pro on my test account. I do see that I have recurring payments enabled and running as well. With these all working on my test site (paypal), what else do I need in order to keep the user on my website? If I understood “Knowledge Base » PayPal Pro, PayFlow, DPRP, Express Checkout” page, the user must still login to paypal if selling subscription. Do they have to go to paypal.com to do that or can they stay on my site?

Posted: Thursday Jul 18th, 2013 at 7:16 pm #53668
RM
Username: rmendoza

So by disabling all plugins (except s2member) and changing theme to twenty ten and then activating all plugins and changing theme back to custom it works. Weirdest thing ever. I am now having a problem with payment. I have selected paypal and then checkout with paypal, it goes to paypal.com. I thought everything was handled in pro forms on my site. I prefer the user to NOT leave my site. Also, how do I test credit cards inside s2member pro forms? Is there fake information that I can put in?

Thanks in advance.

Posted: Thursday Jul 18th, 2013 at 5:45 pm #53662
RM
Username: rmendoza

I am not sure if I should start a new thread or not. Let me know if I should. Thanks again.

Posted: Thursday Jul 18th, 2013 at 5:33 pm #53661
RM
Username: rmendoza

I am glad you figured it out. I am not using multi-site. So this does not help me. :( I am still trying to figure this out. I am hoping support can help me.

Posted: Thursday Jul 18th, 2013 at 5:20 pm #53659
RM
Username: rmendoza

So, the problem lies with the “\s2member\includes\classes\css-js-in.inc.php” file not loading the constants.

I have no problem with this page. S2MEMBER_CURRENT_USER_IS_LOGGED_IN is true when logged in and false when not. That just sets the global variable for javascript and does work correctly.

Posted: Thursday Jul 18th, 2013 at 4:46 pm #53655
RM
Username: rmendoza

I am logged in as an administrator on one browser and it gives the “Create Profile”. On a different browser (different session) I am logged in as a free member and still get the “Create Profile”. And on a third browser, I am logged in as a paid member and still see the “Create Profile.” I will continue to dig deeper

Posted: Thursday Jul 18th, 2013 at 2:56 pm #53647
RM
Username: rmendoza

I have been looking into the code and noticed that the create profile shows no matter what. If a user is logged in, is there a way not to show it with the fields filled in? Maybe I am overlooking this, but why would you show their information? Is it for paypal’s purposes?

Posted: Thursday Jul 18th, 2013 at 2:21 pm #53646
RM
Username: rmendoza

I have been reading the code and was unable to see any detection of a user being logged in or not and what to display if there was. Not even a check by global variables. It seems to always show up no matter what. Still looking into this.

Posted: Wednesday Jul 17th, 2013 at 7:05 pm #53589
RM
Username: rmendoza

I am having the same problem. I would like some debugging help. I can’t imagine any plugin or theme that can interfere with this part of the code, besides another member plugin, which I don’t have. Looking forward to a response. Thanks in advance.

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

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.