PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
natecroy wrote:Passing our quantity is where we're running into problems. Is there any way to pass query vars into the access URL?
<?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)));
}
?>
Yes, that's correct.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?
Yes, the generation of Voucher Codes and the validation of them, are both something that would need to be custom coded.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, you've got it.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?
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.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.
Users browsing this forum: Exabot [Bot], Google [Bot] and 1 guest