Tandem
Forum Replies Created
-
Link to s2Member Knowledge Base article with answer:
https://s2member.com/kb-article/how-can-i-show-the-end-of-term-eot-date-in-the-signup-confirmation-email/To hide the admin bar from non-admins you can place this code into your theme’s function.php file:
if (!current_user_can('administrator')): show_admin_bar(false); endif;
You will need to create the mu-plugin directory inside the content folder
/wp-content/mu-plugins
There are more details and caveats about this at
https://codex.www.ads-software.com/Must_Use_PluginsThere are different opinions about the closing or not of the php tag, I understand it is optional and okay to leave out.
dynalabs is the one that needs assistance.
I apologise for hijacking this thread. I was just trying to point out an issue with your support system that may not be obvious from your end, sorry.
That is all good, you are using ZenDesk on your end, but on our (s2Member Customers) end, all the support ticket communication after the initial submission happens through e-mail without the ticket number reference. So unless we write it down right then or take a screenshot it is kind of hard to keep track. So the problem is probably with ZenDesk if it does not include the number when it generates the e-mail response. That is pretty backwards, all other support systems I use always include the ticket number in all communication.
The above code is incorrect and does not work in certain situations.
I am still trying to find a better solution.
This example seem to work better.[s2If php="S2MEMBER_CURRENT_USER_LOGIN_COUNTER == 0 AND (!empty($_GET))"] ... thank you message for first time purchase login ... [/s2If]
or
[s2If php="S2MEMBER_CURRENT_USER_LOGIN_COUNTER >= 1 AND (!empty($_GET))"] ... thank you message for existing user upgrade etc. ... [/s2If]
I am a bit disappointed that US$90 Professional plugin requires so much modification just to display a customised message to the user after a checkout process.
From my experience I never know what my s2Member / WebSharks Support Ticket number is until I receive the “Waiting for your response” email where the ticket number is shown in the subject.
I just tried to reproduce your problem without success. Works as expected.
Which shortcode are you using for the registration?@ Jan RE:
@rvctinker I get that you’re frustrated and that does suck. But for support as their customer you really would be best served by asking in their customer forums.
Unless I am mistaken WebSharks do not have their customer forums anymore.
Good point, thanks for sharing.
You are welcome.
I find it quite difficult to find things, the documentation is pretty thorough, but allover the place. A more centralised approach would be much better.S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS
See s2Member > API / Scripting > s2Member PHP/API ConstantsHere is what seems to work:
Addsuccess="/thank-you/?msg=%%s_response%%"
attribute to the Pro-Form shortcode.On the thank-you page add:
[s2If is_user_logged_in() AND php="S2MEMBER_CURRENT_USER_LOGIN_COUNTER < 1" AND php="(!empty($_GET))"] ... Some Success / Thank You message ... [/s2If]
@tandem the offending email is not a templated one its the Email transaction log: s2member > api/notifications > payment notifications. Not sure if this throws any more light on this?
Sorry, I am not familiar with the notifications functionality.
I was hoping to avoid having to pull down a version to debug locally but as suggested it looks like the next step.
To match the server configuration, it may be better to setup a test site on the same server. You may be not able to reproduce the problem if you run run the test site locally.
It may be also quite a bit more work to configure your local environment to test a plugin like this because of the transactions between the gateways etc.
If you decide to test locally, make sure to check out the s2Member > General Options > Localhost WAMP/MAMP Developers section.Thanks for the suggestion KTS915.
I started playing with this, but then I realised that the successful checkout message really needs to be displayed only once.If I try to fake this with the One Time Offer feature or the SUCCESS attribute and redirect to any custom page, the message will be displayed anytime the user loads that page directly or otherwise.
Even if I use something like
[s2If php="S2MEMBER_CURRENT_USER_LOGIN_COUNTER < 1"] ... some fake custom success message here ... [/s2If]
to wrap the text in, it would show on that page until the user logs out.