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.

About: Simon Cooke

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
Manually demoting to free subscriber

By:  Simon Cooke in: Community Forum

voices: 2
replies: 2

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

Subscriptions with Google checkout?

By:  Simon Cooke in: Community Forum

voices: 4
replies: 17

4 years, 5 months ago  Jason (Lead Developer)

Clarification re type of paypal account

By:  Kate Gilbert in: Community Forum

voices: 3
replies: 3

4 years, 5 months ago  Raam Dev

Custom registration field not got default val

By:  Simon Cooke in: Community Forum

voices: 2
replies: 7

4 years, 6 months ago  Cristián Lávaque

Pause subscription

By:  Simon Cooke in: Community Forum

voices: 4
replies: 6

4 years, 7 months ago  Jason (Lead Developer)

Get custom profile field values

By:  Simon Cooke in: Community Forum

voices: 3
replies: 13

4 years, 9 months ago  Cristián Lávaque

non native custom fields in s2 user profiles

By:  Simon Cooke in: Community Forum

voices: 2
replies: 1

4 years, 9 months ago  Cristián Lávaque

non S2 custom fields in user profiles

By:  Simon Cooke in: Community Forum

voices: 2
replies: 1

4 years, 9 months ago  Raam Dev

Custom fields for user profiles

By:  Simon Cooke in: Community Forum

voices: 2
replies: 7

4 years, 9 months ago  Raam Dev

need help to add classes to custom fields

By:  Simon Cooke in: Community Forum

voices: 2
replies: 1

4 years, 9 months ago  Raam Dev

Custom Registration/Profile Fields

By:  Simon Cooke in: Community Forum

voices: 2
replies: 1

4 years, 9 months ago  Cristián Lávaque

User profile pic

By:  Simon Cooke in: Community Forum

voices: 3
replies: 3

4 years, 10 months ago  Cristián Lávaque

User profile pic

By:  Simon Cooke in: Community Forum

voices: 4
replies: 4

4 years, 10 months ago  Nelson

Getting a custom field in an author template

By:  Simon Cooke in: Community Forum

voices: 2
replies: 2

4 years, 10 months ago  Simon Cooke

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

Topics I've Started

Viewing 13 topics - 1 through 13 (of 13 total)
Topic Count Last Reply
Manually demoting to free subscriber

By:  Simon Cooke in: Community Forum

voices: 2
replies: 2

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

Subscriptions with Google checkout?

By:  Simon Cooke in: Community Forum

voices: 4
replies: 17

4 years, 5 months ago  Jason (Lead Developer)

Custom registration field not got default val

By:  Simon Cooke in: Community Forum

voices: 2
replies: 7

4 years, 6 months ago  Cristián Lávaque

Pause subscription

By:  Simon Cooke in: Community Forum

voices: 4
replies: 6

4 years, 7 months ago  Jason (Lead Developer)

Get custom profile field values

By:  Simon Cooke in: Community Forum

voices: 3
replies: 13

4 years, 9 months ago  Cristián Lávaque

non native custom fields in s2 user profiles

By:  Simon Cooke in: Community Forum

voices: 2
replies: 1

4 years, 9 months ago  Cristián Lávaque

non S2 custom fields in user profiles

By:  Simon Cooke in: Community Forum

voices: 2
replies: 1

4 years, 9 months ago  Raam Dev

Custom fields for user profiles

By:  Simon Cooke in: Community Forum

voices: 2
replies: 7

4 years, 9 months ago  Raam Dev

need help to add classes to custom fields

By:  Simon Cooke in: Community Forum

voices: 2
replies: 1

4 years, 9 months ago  Raam Dev

Custom Registration/Profile Fields

By:  Simon Cooke in: Community Forum

voices: 2
replies: 1

4 years, 9 months ago  Cristián Lávaque

User profile pic

By:  Simon Cooke in: Community Forum

voices: 3
replies: 3

4 years, 10 months ago  Cristián Lávaque

User profile pic

By:  Simon Cooke in: Community Forum

voices: 4
replies: 4

4 years, 10 months ago  Nelson

Getting a custom field in an author template

By:  Simon Cooke in: Community Forum

voices: 2
replies: 2

4 years, 10 months ago  Simon Cooke

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

My Latest Replies (From Various Topics)

Viewing 25 replies - 1 through 25 (of 30 total)
Author Replies
Author Replies
Posted: Friday Mar 8th, 2013 at 4:46 am #44042
Simon Cooke
Username: Simon23

bump – is this a Customer forum or a Community forum ?

Posted: Monday Jul 16th, 2012 at 5:38 am #19332
Simon Cooke
Username: Simon23

Seems no one is answering that Google Groups question?

Posted: Saturday Jul 14th, 2012 at 5:35 am #19221
Simon Cooke
Username: Simon23

thanks – I see that

But, can we do recurring payments (subscriptions) and allow the user to pay with a credit card ?

Posted: Friday Jul 13th, 2012 at 9:36 am #19172
Simon Cooke
Username: Simon23

Thanks Christian, for clarifying the detail re: PayPal

The original question was about Google Checkout

Can we setup subscriptions for S2 customers, where they can pay by credit card ?

joe

  • This reply was modified 4 years, 5 months ago by  Simon Cooke.
Posted: Friday Jul 13th, 2012 at 7:40 am #19159
Simon Cooke
Username: Simon23

yes – but can she take customer payments with credit cards with this approach ?

or just accept payments via other paypal accounts ?

si

Posted: Thursday Jul 12th, 2012 at 6:29 am #19018
Simon Cooke
Username: Simon23

Thanks – I dont think these articles are accurate anymore.

I have a PayPal Business account, then freely upgraded to PayPal Express checkout and can now get my API credentials and use Pro forms.

With this and pro forms I cannot, however, pay with credit cards – only a PayPal account
Using PP standard buttons, customers can pay with credit cards (for one off payments)

I already know all this from testing in last 2 weeks and it condradicts some of the info in the articles you gave links to

What I don’t know is how this operates when trying to use forms/buttosn for subscriptions

Joe

Posted: Wednesday Jul 11th, 2012 at 10:25 am #18923
Simon Cooke
Username: Simon23

Thanks – I am starting to develop a picture of what is and is not possible but its still not really clear.

At the moment it looks like, using a PayPal Business account, I could setup recurring payments with PP buttons – but the customers would have to have PayPal accounts to subscribe this way.

Google also supports recurring payments but seems as if one needs a Wallet account to subscribe this way ?

My question is therefore: is there any way to create a subscription service where customers can pay with a Credit card ?

Perhaps you guys could start a separate knowledge base to keep abreast of these issues ?

They are complex and changing and intrinsic to s2member pro usage.

Posted: Wednesday Jul 11th, 2012 at 10:15 am #18920
Simon Cooke
Username: Simon23

Just to re-iterate, in my version of s2member pro, the hidden at registration, custom field, assigned a default value – does not work as it should.

Its not until I show the custom field that that the value is assigned to it during regsitration.

To work around the issue – I have given it a friendly name, made it a pre-checked checkbox and made it required (so the user cannot uncheck it when filling out reg form)

It now retains the correct value (in this case ‘1’) – which I cab use elsewhere

Joe

Posted: Wednesday Jul 11th, 2012 at 7:03 am #18908
Simon Cooke
Username: Simon23

this is my s2member

120309

Posted: Wednesday Jul 11th, 2012 at 6:22 am #18903
Simon Cooke
Username: Simon23

using a paypal button to pay for registration, this redirects back to out of the box s2 registration

after it completes the hidden field is in users profile but has no value

no other plugins are involved in this process

Joe

Posted: Wednesday Jul 11th, 2012 at 5:45 am #18899
Simon Cooke
Username: Simon23

Also, alongside this is the issue of the checkout accepting customer credit cards

I have got a PayPal Business account (not pro) accepting cards for one-off payments (via s2member buttons)

Can Google checkout accept subscription payments with customer credit cards ?

si

Posted: Wednesday Jul 11th, 2012 at 5:41 am #18898
Simon Cooke
Username: Simon23

Yes, I think it does – thanks.

I am a little confused about the various options supported by PayPal, depending on what type of PayPal account you have.

I think this is the case:

PayPal Business does NOT support recurring subscriptions (using s2member buttons)
PayPal Pro does support recurring subscriptions (using s2member pro forms)

Google checkout (normal account) does support recurring subscriptions (using s2member buttons)

Can you confirm this ?

I have to clarify options for clients and need clarity myself

Si

Posted: Wednesday Jul 11th, 2012 at 2:51 am #18882
Simon Cooke
Username: Simon23

bump

Posted: Wednesday Jul 11th, 2012 at 2:49 am #18881
Simon Cooke
Username: Simon23

bump

Posted: Thursday Jun 7th, 2012 at 3:25 am #15764
Simon Cooke
Username: Simon23

Thanks – look fwd to reply

Posted: Wednesday Jun 6th, 2012 at 5:13 am #15671
Simon Cooke
Username: Simon23

There appears to be a method to suspend subscriptions in PP account:

https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_subscribe_buttons#id09A7FJ00JHS

With this in mind, how would a WordPress/S2 administrator handle the subscription in WP, should they suspend a subscription in PP – or would S2 know this automatically ?

Thanks

Posted: Wednesday Jun 6th, 2012 at 3:45 am #15657
Simon Cooke
Username: Simon23

thanks for the advice.

darn

is there any way a site admin could achieve something manually ?

Posted: Tuesday Apr 10th, 2012 at 7:03 am #10447
Simon Cooke
Username: Simon23

This is what I have in my author.php (gives me a blank page)

function get_s2member_custom_fields($user_id = $theUserID) {
    $return = array();
    $user = get_user_option('s2member_custom_fields', $user_id);

    foreach ((array)json_decode($GLOBALS['WS_PLUGIN__']['s2member']['o']['custom_reg_fields'], true) as $field) {
        if (isset($user[$field['id']])) {
            $return[$field['id']]['label'] = $field['label'];

            if (empty($field['options']))
                $return[$field['id']]['value'] = $user[$field['id']];
            else {
                $field['options'] = strpos($field['options'], "\n") ? explode("\n", $field['options']) : (array)$field['options'];
                foreach ($field['options'] as $option) {
                    $option = explode('|', $option);
                    $options[$option[0]] = $option[1];
                }
                foreach ((array)$user[$field['id']] as $choice)
                    $return[$field['id']]['options'][$choice] = $options[$choice];
            }
        }
    }
    return $return;
}
$s2_custom_fields = get_s2member_custom_fields($theUserID); 
echo $var['buyer_country_usa']['options'][0]['label'];
Posted: Tuesday Apr 10th, 2012 at 5:13 am #10444
Simon Cooke
Username: Simon23

Cristian, is there a bug in this code – it causes my page to go blank when I include it like this (with a user ID)

function get_s2member_custom_fields($user_id = $theUserID) {
    $return = array();
    $user = get_user_option('s2member_custom_fields', $user_id);

    foreach ((array)json_decode($GLOBALS['WS_PLUGIN__']['s2member']['o']['custom_reg_fields'], true) as $field) {
        if (isset($user[$field['id']])) {
            $return[$field['id']]['label'] = $field['label'];

            if (empty($field['options']))
                $return[$field['id']]['value'] = $user[$field['id']];
            else {
                $field['options'] = strpos($field['options'], "\n") ? explode("\n", $field['options']) : (array)$field['options'];
                foreach ($field['options'] as $option) {
                    $option = explode('|', $option);
                    $options[$option[0]] = $option[1];
                }
                foreach ((array)$user[$field['id']] as $choice)
                    $return[$field['id']]['options'][$choice] = $options[$choice];
            }
        }
    }
    return $return;
}
  
Posted: Tuesday Apr 10th, 2012 at 3:46 am #10437
Simon Cooke
Username: Simon23

That’s awesome, thanks Cristian.

Well what do you know:

A) the info already existed
B) you do help people to do things like this in the forums

cheers – I’ll post something back when I have a working solution

Posted: Monday Apr 9th, 2012 at 6:53 pm #10401
Simon Cooke
Username: Simon23

I understand but if you keep user meta data in a serialised array you could help me to extract that data in a meaningful way – that’s after all, at least partly what the support forums are about…no ?

I have posted some custom code that has made an attempt to get the data I need but is clearly not the full solution.

What I am asking for is help completing what I have attempted to start myself. This is consistent with other posts where users have subsequently had a good level of support for their custom coding.

If you don’t want to help me can you ask Jason to post me an answer, as I am not aware that an answer to this specific question exists anywhere at this time in your support forums.

If it does, simply point me to it

Thanks

Posted: Monday Apr 9th, 2012 at 6:20 pm #10393
Simon Cooke
Username: Simon23

oops

first code snippet:

$user_data = get_userdata($user_id);
echo $user_data['wp_lss2member_custom_fields']['buyer_country_usa'];

second code snippet:

echo get_user_field('buyer_country_usa', $theUserID);

ps – I have an unusual database table prefix

Posted: Monday Apr 9th, 2012 at 6:17 pm #10392
Simon Cooke
Username: Simon23

Thanks Raam

I had already read that thread – its not really aimed at what I am trying to achieve

Or, to put it another way, it relates to a method of searching users for custom fields and I am not clever enough to work out how to extract from it the information I need to:

Print/echo data from user meta fields (using an author ID)

I have tried this:

(it breaks the page)

and this:

(it returns ‘Array’)

buyer_country_usa is a multi-option checkbox field

Cheers

Joe

Posted: Monday Apr 9th, 2012 at 5:01 pm #10376
Simon Cooke
Username: Simon23

bump

Posted: Thursday Mar 29th, 2012 at 9:33 am #9454
Simon Cooke
Username: Simon23

Can you help ?

I have managed to use the plugin: Developer’s custom fields, to register a custom field for an s2member role:

The new field now shows in the back-end edit-user screen for only that user role.

GREAT

I need to get this new field to be editable in the s2member front-end user profile management screen.

The answer is here in the plugin’s documentation, but I am not experienced enough to work out how to do it

http://sltaylor.co.uk/wordpress/plugins/slt-custom-fields/docs/

I know I have to edit the s2member plugin here:

s2member/includes/classes/profile-in.inc.php

But I need someone to tell me what code from the plugin documentation to add to the above php file

Help ?

joe

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