Community Support Forums — WordPress® ( Users Helping Users ) — 2011-08-12T23:17:33-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2835 2011-08-12T23:17:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=30658#p30658 <![CDATA[Re: Manager purchasing logins for employees]]>
I apologize for the late response. Yes we can share our experience, our team is available for contracting if you'd like some help.

Thanks,

Nate

Statistics: Posted by natecroy — August 12th, 2011, 11:17 pm


]]>
2011-08-09T16:24:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=30328#p30328 <![CDATA[Re: Manager purchasing logins for employees]]> I have also same problem described as Group membership http://www.primothemes.com/forums/viewtopic.php?f=4&t=14169&p=28874#p28874 and I think you solved it very well. Is there any chance if you would like to share any of your experince, code, etc.?

Statistics: Posted by ZebEl — August 9th, 2011, 4:24 pm


]]>
2011-08-09T13:29:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=30297#p30297 <![CDATA[Re: Manager purchasing logins for employees]]>

Statistics: Posted by Cristián Lávaque — August 9th, 2011, 1:29 pm


]]>
2011-08-09T11:50:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=30280#p30280 <![CDATA[Re: Manager purchasing logins for employees]]> Statistics: Posted by natecroy — August 9th, 2011, 11:50 am


]]>
2011-08-09T11:42:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=30278#p30278 <![CDATA[Re: Manager purchasing logins for employees]]>

Statistics: Posted by Cristián Lávaque — August 9th, 2011, 11:42 am


]]>
2011-08-08T20:37:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=30239#p30239 <![CDATA[Re: Manager purchasing logins for employees]]>
I'm just getting caught up with this thread. We did end up creating the automated voucher system for one of our latest projects: http://www.newbarista.com. We did so while continuing to use s2member for payment, without the need to invite a shopping cart to the party. We sell Barista Training, so we also built a custom LMS (Learning Management System) for Wordpress that keeps the Manager/Owner accounts tied to Barista accounts along with tracking testing records. This may be of interest to you as well for your school accounts.

Jason and Cristián were a great help in supporting the s2member side of things and getting us started in a good direction. It was quite time consuming to get the entire voucher system programmed and tested. I've included some screen shots of how the voucher system appears on the front-end to a Manager/Owner. Our team is available if you need help building a similar voucher system for your site. You can get a hold of us through the Contact Us link on http://www.newbarista.com.

Thanks Dave,

Nate

voucher1.png
voucher2.png
voucher3.png
voucher5.png
voucher4.png

Statistics: Posted by natecroy — August 8th, 2011, 8:37 pm


]]>
2011-08-08T09:00:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=30168#p30168 <![CDATA[Re: Manager purchasing logins for employees]]>

-dave

Statistics: Posted by dhempy — August 8th, 2011, 9:00 am


]]>
2011-08-06T13:00:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=30024#p30024 <![CDATA[Re: Manager purchasing logins for employees]]>

The basic strategy is to have the employees (students) register as free users, but have a hook on the account creation to immediately upgrade their account, assuming they redeem a valid voucher. The separate manager account is not terribly critical to the vouchers, other than matching the original poster's marketing plan. You could go so far as to sell vouchers in a shopping cart, independent of s2member. Right?
Yes, that's correct.


Generating and validating the vouchers is beyond the scope of s2member, albeit there are hooks to support doing that. I missed where the vouchers get generated...I suppose that would be the result of the shopping cart purchase, pretty well unrelated to the manager's account. Yes?



I assume the developer (me) would write a script to create the 50 vouchers in the database and display/email the codes/links to the manager. Is there a hook on purchase completion using s2member's Buy Now forms where I could trigger that script?
Yes, the generation of Voucher Codes and the validation of them, are both something that would need to be custom coded.


On the voucher side of things, to be implemented by us, presumably the employee voucher would be linked to the manager's account, and perhaps other reports (developed locally) would show redemption status and such. Again, all this would occur outside s2member.

Did I get that pretty much right?
Yes, you've got it.


Now, the big question...is this something s2member is considering developing? While all this is within our development abilities, I'm looking to use as much off-the-shelf functionality as I can on this project.
Perhaps in the future, but honestly, I wouldn't look for this to come anytime soon, as we are working to develop/further s2Member in other ways that are/will take precedence over this. Sorry.

Statistics: Posted by Jason Caldwell — August 6th, 2011, 1:00 pm


]]>
2011-08-05T16:44:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=29959#p29959 <![CDATA[Re: Manager purchasing logins for employees]]>
Let me see if I understand the video correctly:

The basic strategy is to have the employees (students) register as free users, but have a hook on the account creation to immediately upgrade their account, assuming they redeem a valid voucher. The separate manager account is not terribly critical to the vouchers, other than matching the original poster's marketing plan. You could go so far as to sell vouchers in a shopping cart, independent of s2member. Right?

Generating and validating the vouchers is beyond the scope of s2member, albeit there are hooks to support doing that. I missed where the vouchers get generated...I suppose that would be the result of the shopping cart purchase, pretty well unrelated to the manager's account. Yes?

I assume the developer (me) would write a script to create the 50 vouchers in the database and display/email the codes/links to the manager. Is there a hook on purchase completion using s2member's Buy Now forms where I could trigger that script?

On the voucher side of things, to be implemented by us, presumably the employee voucher would be linked to the manager's account, and perhaps other reports (developed locally) would show redemption status and such. Again, all this would occur outside s2member.

Did I get that pretty much right?


Now, the big question...is this something s2member is considering developing? While all this is within our development abilities, I'm looking to use as much off-the-shelf functionality as I can on this project.

Thanks,
-dave

Statistics: Posted by dhempy — August 5th, 2011, 4:44 pm


]]>
2011-05-23T10:03:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=15641#p15641 <![CDATA[Re: Manager purchasing logins for employees]]> Statistics: Posted by natecroy — May 23rd, 2011, 10:03 am


]]>
2011-05-23T04:07:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=15625#p15625 <![CDATA[Re: Manager purchasing logins for employees]]>
natecroy wrote:
Passing our quantity is where we're running into problems. Is there any way to pass query vars into the access URL?

You might try something like this.
Create this directory and file:
/wp-content/mu-plugins/s2-hacks.php
Code:
<?php
add_filter
("ws_plugin__s2member_sp_access_link_gen_alternative", "my_sp_access_link_shrinker");
function my_sp_access_link_shrinker($raw_sp_access_link)
    {
        $raw_sp_access_link .= "&quantity=xx";
        return ($tinyurl = c_ws_plugin__s2member_utils_urls::remote ("http://tinyurl.com/api-create.php?url=" . rawurlencode ($raw_sp_access_link)));
    }
?>
* Note, you MUST compress the link, making it smaller. If you don't make the link smaller using the tinyURL server ( or something equivalent ), s2Member will not use your generated link.

Statistics: Posted by Jason Caldwell — May 23rd, 2011, 4:07 am


]]>
2011-05-20T19:40:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=15526#p15526 <![CDATA[Re: Manager purchasing logins for employees]]> Statistics: Posted by natecroy — May 20th, 2011, 7:40 pm


]]>
2011-05-20T13:53:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=15508#p15508 <![CDATA[Re: Manager purchasing logins for employees]]>
WP Admin -> s2Member -> PayPal Options -> Signup Confirmation Email (Standard)
WP Admin -> s2Member -> PayPal Options -> Signup Confirmation Email (Pro-Forms)
WP Admin -> s2Member -> PayPal Options -> Specific Post/Page Confirmation Email (Standard)
WP Admin -> s2Member -> PayPal Options -> Specific Post/Page Confirmation Email (Pro-Forms)


Does that help?

Statistics: Posted by Cristián Lávaque — May 20th, 2011, 1:53 pm


]]>
2011-05-20T12:25:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=15502#p15502 <![CDATA[Re: Manager purchasing logins for employees]]>
Can we add custom query variables to the email sent to the customer containing the vouchers? If so, do you know how we would do that? We would need to add the quantity to the end of the link.

We really appreciate the help, Cristián. Thanks again.

Statistics: Posted by natecroy — May 20th, 2011, 12:25 pm


]]>
2011-05-20T12:08:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=15499#p15499 <![CDATA[Re: Manager purchasing logins for employees]]>
What I'm saying is that you shouldn't send people to the sold page as the purchase thank-you. That page can only be accessed with the link that is sent to them by email, you can't just redirect them there with a simple link.

What I'm saying is that, if you want a thank-you page for the purchase, it should be another one than the one sold, where you can explain that they will get an email with a special link to the page where his vouchers are.

I hope that makes sense.

Statistics: Posted by Cristián Lávaque — May 20th, 2011, 12:08 pm


]]>
2011-05-19T16:50:39-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=15428#p15428 <![CDATA[Re: Manager purchasing logins for employees]]>

Statistics: Posted by Cristián Lávaque — May 19th, 2011, 4:50 pm


]]>
2011-05-19T16:33:17-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=15420#p15420 <![CDATA[Re: Manager purchasing logins for employees]]> Statistics: Posted by natecroy — May 19th, 2011, 4:33 pm


]]>
2011-05-19T16:14:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=15410#p15410 <![CDATA[Re: Manager purchasing logins for employees]]>
You should have your custom thankyou page not be protected at all or he won't be able to see it after purchase, unless you protect with a level/ccap he has and is logged in with at the time of redirection. I hope that makes sense.

Statistics: Posted by Cristián Lávaque — May 19th, 2011, 4:14 pm


]]>
2011-05-19T13:49:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=15393#p15393 <![CDATA[Re: Manager purchasing logins for employees]]>
Also, how do you use the success parameter with specific page purchases? Are we using it correctly?

Thanks Cristián!

Nate

Statistics: Posted by natecroy — May 19th, 2011, 1:49 pm


]]>
2011-05-19T13:36:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=15391#p15391 <![CDATA[Re: Manager purchasing logins for employees]]> Statistics: Posted by Cristián Lávaque — May 19th, 2011, 1:36 pm


]]>
2011-05-19T13:23:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=15389#p15389 <![CDATA[Re: Manager purchasing logins for employees]]>
Believe it or not, we're actually very close to having this solution implemented. Thanks so much for the help a while back. Here's the latest from our programmer...

We're having some issues we don't understand with specific page purchases. The process is working great when I go through the purchase as an admin, but level 1 members (who we want using this) are redirected differently.

Here's what should happen:
User goes to /addabarista/ (this page isn't protected by member level or custom capabilities) and gets a purchase form
User completes purchase
User is forwarded to /thankyou-baristapurchase (the protected page; ID is 996; there are no protections other than the Specific Page Purchase protection)
When you go through the purchase as an admin, the process is flawless. When you try it as a Level 1 user, you're forwarded to /pricing?s2member_seeking=page-996&s2member_sp_req=996 after the successful purchase. I'm assuming those query vars mean the user isn't authorized to view the page.

Here's the code for that purchase form: https://gist.github.com/d5f820ce1ed80c12d86a

Any ideas?

If I can provide any additional info to help troubleshoot, please let me know.

Thanks!

Statistics: Posted by natecroy — May 19th, 2011, 1:23 pm


]]>
2011-03-31T00:37:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=8662#p8662 <![CDATA[Re: Manager purchasing logins for employees]]> I've set the video to start at the correct point for you.
object

Statistics: Posted by Jason Caldwell — March 31st, 2011, 12:37 am


]]>
2011-03-27T14:14:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=8460#p8460 <![CDATA[Re: Manager purchasing logins for employees]]>
I'm going to start working through your solution on our site and get some programming help when necessary. One thing I may have missed in the video was how the block of 50 logins can be physically purchased. I'm guessing this would involve integrating a shopping cart alongside s2member. I've been a bit timid to invite another eCommerce solution to the party as it may cause conflicts with s2member. Any suggestions for a solution that plays well with s2member or can s2member help us purchase multiple logins in a single transaction?

Thanks for all of your help Jason,

Nate

Statistics: Posted by natecroy — March 27th, 2011, 2:14 pm


]]>
2011-03-27T07:45:04-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=8449#p8449 <![CDATA[Re: Manager purchasing logins for employees]]> Hi Nate. Thanks for the excellent question.
Video
I've done a video tutorial for you covering this topic in detail.
Please let me know if you have any questions that I may have missed.

Please click this link to download/view the MP4 video file:
http://www.s2member.com/wp-content/uplo ... counts.mp4

Statistics: Posted by Jason Caldwell — March 27th, 2011, 7:45 am


]]>
2011-03-26T21:32:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2835&p=8421#p8421 <![CDATA[Manager purchasing logins for employees]]>
Here is our user level setup:

User Level 0 = Free (access to sample training content)
User Level 1 = Manager (access to employee reports and sample training content). Low recurring monthly fee.
User Level 2 = Employee (access to all training content). One time larger fee for 30-day access.

We would like a Manager to be able to purchase multiple Employee logins at any given time. An ideal workflow would be:

1. After logging in, a Manager clicks on an "add employees" button on his/her Login Welcome page leading to a Paypal Pro form
2. Paypal Pro form has a Quantity field where Manager enters 50 Employee logins
3. Manager enters credit card information for the entire transaction
4. 50 logins are sent to the Manager for distribution to employees (these could be access links, vouchers, or Paid Subscriber IDs that an Employee could update their free accounts with).

As our site sits now, a Manager would have to logout of their account and complete all Billing/Credit Card information (along w/ the Employee information) 50 times in order to get 50 logins. We're looking for an automated solution that doesn't involve admin intervention.

Any ideas for enabling a single user to purchase logins for additional user logins?

Thanks,

Nate

Statistics: Posted by natecroy — March 26th, 2011, 9:32 pm


]]>