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.

Sell Tangible Products with s2Member?

Home Forums Community Forum Sell Tangible Products with s2Member?

This topic contains 5 replies, has 2 voices. Last updated by  Todd Friskey & Meghan Miller 4 years, 7 months ago.

Topic Author Topic
Posted: Thursday May 17th, 2012 at 4:48 pm #13802

I was under the impression that I could sell tangible products with s2member and paypal pro forms but I can’t seem to figure out how to do that.

I have 2 products I sell. I also want to have a 14 day free trial for each product. Any help would be appreciated.

List Of Topic Replies

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Friday May 18th, 2012 at 5:44 pm #13911

Hi Todd.

s2Member wasn’t designed to sell tangible products, but to sell and manage access to content in WordPress.

Despite that, I think some users have found ways to do it, where they sold the access to a page where the user would get access to a page and then the site owner would ship the product. I’m not sure how that’d work for you.

If you give some more info about your product and how you give a trial for a tangible product, I could maybe suggest an idea.

I hope that helps. :)

Posted: Wednesday May 23rd, 2012 at 9:52 pm #14381

I have most of it figured out now. One snag I have is that I’m trying to populate the billing address in the paypal pro forms with custom fields I created during the users registration.

My first test was putting my custom field’s code %%address%% in the value of the form, that doesn’t work. Gonna keep trying ….

Posted: Wednesday May 23rd, 2012 at 10:04 pm #14383

Okay so found this here :

<?php
add_action("ws_plugin__s2member_during_configure_user_registration", "my_function");
function my_function($vars_from_s2member = array())
{
extract($vars_from_s2member);
/* Here are a few variables now available to you here.
$role (s2member_level1, s2member_level2, etc)
$level = (level number of access now granted)
$email, $login, $ip, $custom, $subscr_id, $subscr_gateway
$fname, $lname, $name, $pass, $user_id (WP User ID), $ccaps
$user (a WP_User_object), $user->ID (the User's ID in WordPress)
$fields (an array of Custom Registration Fields for s2Member) */
}
?>

Going to see if I can get this to work.

Posted: Wednesday May 23rd, 2012 at 10:19 pm #14387

As you can tell I don’t do php … where do I add this to have access to the variables? Does it need to go into my functions.php file or maybe my s2-hacks.php file … I can’t seem to get access to these variables that it gets … Or am I just going at this wrong …

Posted: Wednesday May 23rd, 2012 at 10:44 pm #14390

I’m getting tired but I think I am doing this correctly … Here is what I have in my s2-hacks.php file.

<?php
/*GET USERS CUSTOM FIELDS ETC*/
add_action("ws_plugin__s2member_during_configure_user_registration", "my_function");
function my_function($vars_from_s2member = array())
{
extract($vars_from_s2member);
/* Here are a few variables now available to you here.
$role (s2member_level1, s2member_level2, etc)
$level = (level number of access now granted)
$email, $login, $ip, $custom, $subscr_id, $subscr_gateway
$fname, $lname, $name, $pass, $user_id (WP User ID), $ccaps
$user (a WP_User_object), $user->ID (the User's ID in WordPress)
$fields (an array of Custom Registration Fields for s2Member) */
var_dump($fields);
echo "First Name: ";
echo $fname;
echo $role;
echo $level;
echo $email;
echo $login;
}
?>

Then in one of my pages php template I am calling:

<?php do_action("ws_plugin__s2member_during_configure_user_registration", "my_function"); ?> 

What I am getting is:

NULL First Name: 

What am I doing wrong?

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