gredkor
Forum Replies Created
-
Getting it to autosubmit after entering stripe info is trickier, but doable with some jquery.
Thanks, I figured it out now!
s2member was passing in the text “Add” to stripe. You can override it by making a php file under mu-plugins:
<?php
add_filter(“gettext_with_context”, “s2_contextual_translation”, 10, 4);
function s2_contextual_translation($translation = NULL, $original = NULL, $context = NULL, $domain = NULL)
{
if ($domain === ‘s2member’ && $context === ‘s2member-front’)
{
if ($original === “Add”)
$translation = ‘Purchase’;
}
return $translation;
}
?>Thanks for taking the time to answer!
Unfortunately I can’t do that either, since the iframe is from stripe, so that would be cross-site scripting, which is blocked for security reasons.
Do you know how to modify s2member’s implementation of the stripe checkout? The behavior I want is closer to the default stripe behavior, I think s2member is customizing it in a way I don’t want 🙂
Thanks for your response krumch!
The stripe popup is inside of iframe, and I don’t think I can write css from my site that will affect the contents of the iframe.
Thanks for your reply Cristian!
I don’t think it’s a login session issue. The offending links are all the same as the nonoffending ones – no www. And like I said, using the *exact* same link a second time ends up working.
Immediately after upgrading to the latest version of s2Member, we got reports of this problem. I reverted our install of s2Member to 2014-04-23 and the problem immediately stopped for our users.
This makes me believe that something changed in the last couple revisions of s2member. Since I can’t reproduce the problem consistently on my side – I only got it to appear once after hours of testing – I’m stuck grasping at straws with this.
Are you aware of any particular things that were changed in the last couple versions of s2Member which may be the source of this?
I am noticing the same problem since updating to the latest version of s2member. It happens intermittently, when makes it super hard to debug.
Since updating, we get occasional reports by users who get redirected to the Member Options page. I was able to reproduce it a couple of times, but not consistently. Trying to go to the exact same page again (even using the same link) doesn’t trigger the problem.
On some of these, the required level in _s2member_vars on the redirect is 0, which makes no sense these are level 1 users.
These are all links without the www. So I know it’s not the problem in the link you provided.
Do you know what is happening?
Thanks!