Cristián Lávaque
Forum Replies Created
-
s2If won’t be good enough for that, because there isn’t a function you can use in it for the check you mention.
You can use a PHP condition, though. WP Admin -> s2Member -> Scripting -> Advanced Conditions
E.g.
<?php if (get_current_user_id() == 1) { ?> Hello 1 <?php } ?>Remember to install a PHP execution plugin like ezPHP and use the text editor instead of the visual one for the page. https://wordpress.org/plugins/ezphp/
I hope that helps. 🙂
My registration button does not redirect
Could you show me the page with the button?
I see a “Register” link in the top navigation, that points to page 265, not wp-login. See: http://s2member.net/?attachment_id=404
And what are you using for the form in page 265? Are you using BuddyPress or something else that adds a new registration form?
I look forward to your update. 🙂
You’ll need some PHP in the page where the pro-form is, to adjust dynamically the attributes of the pro-form’s shortcode. WP Admin -> s2Member -> Stripe Forms -> Shortcode Attributes
Using the date or strtotime functions, I guess, and some math you could calculate what to charge him and ajust the times of access.
You’ll need a plugin like ezPHP to run PHP code on your page’s content. https://wordpress.org/plugins/ezphp/
I could give you code samples, but this forum is not for Pro support and moderators here don’t like it. You can start a new topic over at s2member.net/forum and I’ll be happy to help you there.
I hope that helps. 🙂
Cristián
That sounds like you updated the Framework, but not the Pro add-on.
You need the Pro add-on’s version to match the Framework’s or it won’t get activated.
The widget is a Pro feature, so having the add-on inactive would make the widget to disappear until you activate it again.
I hope that helps. 🙂
🙂
You can try this in the post/page:
<?php echo get_user_field('s2member_access_level', get_the_author_meta('id')); ?>See:
– https://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_get_user_field()
– https://codex.wordpress.org/Function_Reference/get_the_author_meta
– https://wordpress.org/plugins/ezphp/I hope that helps. 🙂
do not want the paypal button which is the default s2Member button
You can use a custom image. See: WP Admin -> s2Member -> PayPal Buttons -> Shortcode Attributes -> image
I hope that helps. 🙂
This video may help: “s2Member® (Using The PayPal Sandbox)” https://www.youtube.com/watch?v=UPRLeHjeINY
But I suggest you also watch this one: “s2Member PayPal Sandbox Tip” https://www.youtube.com/watch?v=08t45PYeHxk
I hope that helps. 🙂
user registration not allowed
I guess you’re trying free registrations (without a purchase first). See this setting: WP Admin -> s2Member -> General -> Open Registration
I hope that helps. 🙂
Here’s what Jason said:
The original affiliate is credited in that case. The coupon code will be applied, but the affiliate associated with that coupon code (if it is different from the original referring affiliate), will not be credited, because the customer was already associated with the first affiliate that referred them.
The original (initial) association between customer and affiliate occurs whenever a potential customer clicks a link or enters a coupon code that is associated with an affiliate. So even if that customer doesn’t actually make a purchase initially, that association is still there behind-the-scenes. When the customer does finally make a purchase, the *first to send visitor* gets credit, even if a coupon code is entered during checkout with another affiliate’s ID in it.
See also, the IMPORTANT NOTE here: https://s2member.com/kb-article/idevaffiliate-commission-tracking/#toc-258b9356
I hope that helps. 🙂
Yes, that’s added by the Pro add-on.
🙂
Levels have incremental access, so someone with a higher level can see content at levels below too.
For what you describe, I’d suggest using custom capabilities instead. WP Admin -> s2Member -> Scripting -> Custom Capabilities
I hope that helps. 🙂
It doesn’t matter if they already had an account, that’s fine.
Just make sure that they are logged in when they pay the upgrade, or it’ll go towards a new registration instead of the existing account.
So I’d suggest having the upgrade form/button in a page protected at level 0, so the user won’t be able to reach it without logging in first.
I hope that helps. 🙂
🙂