latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

"Thank you, please check your email…" msg

Home Forums Community Forum "Thank you, please check your email…" msg

This topic contains 26 replies, has 3 voices. Last updated by  Cristián Lávaque 4 years, 2 months ago.

Topic Author Topic
Posted: Monday Oct 8th, 2012 at 10:05 am #27796

Having an issue with what my site says to the customer after returning from Paypal. Currently it says, “Thank you. Please check your email.” However, I keep running into problems with customers who check their email they used during registration and then submit a help desk ticket when they don’t see the email. The problem is it is being sent to their Paypal email and they’re not checking that email. This could all be avoided if the message said what it used to say, which was something along the lines of “Thank you, please click here to register a username…” Just wondering why this message isn’t being shown to the user, which is what I want. Is there something in the settings I need to change for the to be reflected?

List Of Topic Replies

Viewing 25 replies - 1 through 25 (of 26 total)
Author Replies
Author Replies
Posted: Tuesday Oct 9th, 2012 at 3:26 am #27853
Raam Dev
Username: Raam
Staff Member

Hi Matt,

s2Member will only allow the user to register when it receives a confirmation IPN message from PayPal indicating that payment has completed. If PayPal doesn’t respond immediately with that message, then s2Member tells the user to wait for an email and s2Member sends the email once it receives confirmation from PayPal.

There are various things that could cause PayPal to not send a confirmation message immediately, including things like the payer using an unconfirmed account that takes PayPal a bit longer to process. Unfortunately, there really isn’t anything s2Member can do to speed this process up.

If you’re curious, you can enable logging (Dashboard -› s2Member® -› PayPal® Options -› Account Details -› Logging) and then check the log files to see what’s happening.

Posted: Tuesday Oct 9th, 2012 at 8:12 am #27889

Thank you for your response. Is there any way to customize that message the customers see when s2Member doesn’t get the immediate confirmation it needs? Screen shot:
For example, I’d like to be able to let them know who the email will be from, what the title will be, that they should check their PAYPAL email, etc. This would be very helpful in eliminating unnecessary confusion, frustration (on both our parts) and help desk tickets. Thank you.

Posted: Wednesday Oct 10th, 2012 at 4:21 am #27950
Raam Dev
Username: Raam
Staff Member

You should be able to use this method for changing front-end messages.

Posted: Wednesday Oct 10th, 2012 at 8:16 am #27984

This doesn’t help me at all. I’m not a developer and have no idea how to write the message that I would want to appear with proper formatting. The code given is for a coupon variable. How I would take that code and modify it for my purposes is beyond my level of code knowledge. I suppose it’s up to me then to find a developer to make sense of it for me?

Posted: Wednesday Oct 10th, 2012 at 8:13 pm #28041
Raam Dev
Username: Raam
Staff Member

In the code sample I linked to you, you’re simply replacing the original text (i.e, “Thank you! ( you MUST check your email before proceeding ).” and translating it into whatever you want to replace it with (i.e., “Thank you! Please check your email for the next steps.”. The linked sample was just changing a message about coupon codes.

This method of changing front-end messages is only used when there is no other option. The specific message you’re trying to modify is hard-coded into the software, so changing it requires using a bit of PHP code.

Another option, if you’re using s2Member Pro, is to use the success=”” attribute inside your button and/or form shortcodes. The success=”” attribute allows you to specify a URL that the user should be redirected to after a successful payment. That way, you can create a page that describes the next steps in your own words. (See Dashboard -› s2Member® -› PayPal® Buttons -› Shortcode Attributes (Explained)). I’m not entirely sure how you’ve got things set up, but this may be an option.

Posted: Wednesday Oct 10th, 2012 at 8:45 pm #28050

I’m sorry Raam, I don’t see that text anywhere in the link you sent me, otherwise it would be clear that I could just change that text to whatever I want. If it’s the part of the code that says”original”, again I wouldn’t know how and where to replace it.

I don’t believe the 2nd option would work only because if s2Member was able to get that info by writing it into the button, it should be getting the sale info returned as well. The problem is not with s2Member I’m sure, it’s most likely with the system I’m selling through, JVZoo. They do have fields to add the domain, the custom return url with “gateway” replacement, and the item number, but for whatever reason, it’s still not getting back to s2Member.

Any idea where I could add the actual text I want to add in order to replace the default text? Thank you for your help with this.

Posted: Thursday Oct 11th, 2012 at 6:52 am #28100

I’m sorry Raam, I don’t see that text anywhere in the link you sent me, otherwise it would be clear that I could just change that text to whatever I want. If it’s the part of the code that says”original”, again I wouldn’t know how and where to replace it.

Create this dir/file: /wp-content/mu-plugins/s2hacks.php

[hilite pre_code]
Thank you! ( you MUST check your email before proceeding ).

* Note: It can take ( up to 15 minutes ) for Email Confirmation with important details. If you don\'t receive email confirmation in the next 15 minutes, please contact Support.')
$translated = 'Now I say this';

return $translated;
}
[/hilite]

I hope that helps! :)

Posted: Thursday Oct 11th, 2012 at 7:40 am #28104

Perfect, thank you! Saved me from having to hire someone. I’m testing this out now.

Posted: Thursday Oct 11th, 2012 at 7:45 am #28107

Saved this, then tried to log into my site and got this error:
“Parse error: syntax error, unexpected ‘)’ in /home/ml4mlm/public_html/crushitoncraigslist.com/wp-content/mu-plugins/s2hacks.php on line 8”

Posted: Thursday Oct 11th, 2012 at 8:13 am #28117

Hmm… Not sure why the error. Could you try this?

[hilite pre_code]
Thank you! ( you MUST check your email before proceeding ).

* Note: It can take ( up to 15 minutes ) for Email Confirmation with important details. If you don\'t receive email confirmation in the next 15 minutes, please contact Support.')
$translated = 'Now I say this';
}

return $translated;
}
[/hilite]

Posted: Thursday Oct 11th, 2012 at 9:11 am #28124

Same problem, but now on line 9. Here is my exact code:

<?php

add_filter('gettext_with_context', 's2_translation', 10, 4);
function s2_translation($translated_text, $original_text, $context, $domain)
{
	if ($domain === 's2member' && $context === 's2member-front')
	{
		if ($original === '<strong>Thank you! ( you MUST check your email before proceeding ).</strong><br /><br />* Note: It can take <em>( up to 15 minutes )</em> for Email Confirmation with important details. If you don\'t receive email confirmation in the next 15 minutes, please contact Support.')
			$translated = '<strong>Thank you! You MUST check your PAYPAL email before proceeding.</strong><br /><br />* Note: It can take up to 15 minutes for the email containing your <strong>registration link</strong> to arrive.  This email will be from Matt Stefanik (not JVZoo or Paypal) and will be titled, Congratulations! (your membership has been approved).  Please check your junk folder if you do not see it. If you don\'t receive email confirmation in the next 15 minutes, please contact Support.');
	}

	return $translated;
}

Created here: public_html/crushitoncraigslist.com/wp-content/mu-plugins/s2hacks.php. I’ve since deleted the file, but the directory is still there.

Posted: Thursday Oct 11th, 2012 at 5:45 pm #28169

Ah, I see, it’s in the line you edited. Remove the parenthesis at the end of the $translated line, please. :)

Posted: Thursday Oct 11th, 2012 at 6:15 pm #28172

Yup, that did it. Thank you!

Posted: Thursday Oct 11th, 2012 at 6:16 pm #28173

:)

Posted: Friday Oct 12th, 2012 at 8:14 am #28224

This code has caused some undesired consequences. Firstly, when the user now clicks on the registration link and goes to the registration form, none of the form fields have text just quotation marks so they have no idea what goes where. Also, in the “Users” area of my dashboard, the “Add New” has completely disappeared and all of the user labels (subscriber, admin, s2 Member Level 1, etc) are gone. These were only the first two issues I noticed before deleting the file, after which both problems were fixed.

Is there something wrong with the code causing this?

Posted: Friday Oct 12th, 2012 at 8:33 am #28232

I don’t see why that code would cause what you’re saying. If you remove the hack, does the problem go away with it? If so, could you try the code as I wrote it and see if you have the problem too? Then add your replacement text and see if then the problem starts.

Posted: Friday Oct 12th, 2012 at 8:51 am #28237

Yes, deleting the file removes the problem. I just copied your original code and created the s2hacks.php file with it, same results.

I tried to upload these images, but the “add new” was missing, so I had to delete the file again before I could. Deleting the file fixed all the new problems.

Posted: Friday Oct 12th, 2012 at 9:09 am #28239

I see. I really have no idea why it would be affecting other strings than the one specified in the hack. :/

Besides using that hack to translate the string, you could edit the file where the original is. I searched all the files and only found it in two:

s2member\includes\classes\paypal-return-in-no-tx-data.inc.php
s2member\includes\classes\paypal-return-in-proxy-ty-email.inc.php

Copy them to the must-use plugins dir and edit those, so they aren’t replaced on update.

Posted: Friday Oct 12th, 2012 at 10:04 am #28241

That worked. Same desired outcome, but no side effects. I just cleared my cache/cookies and did a test purchase. The message displayed was what I wanted, the registration link worked and the form was correct. Note* This is really only a temporary fix, however, as I still need to figure out why the site isn’t receiving IPN data back from Paypal.

For the time being, this definitely helps and I appreciate your support with this issue. Thank you!

Posted: Saturday Oct 13th, 2012 at 12:50 am #28294

Great, glad that worked. :)

Right, IPN should work. Have you double checked your PayPal integration to make sure everything is correct? [hilite path]Dashboard -› s2Member® -› PayPal® Options[/hilite]

Could you enable logging and create a 1 cent button/pro-form so I do a test purchase? You can post the URL to it here or send privately. s2Member® » Private Contact Form

And have logging enabled so logs are generated and you can show me the entries for my test. [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Account Details -› Logging[/hilite]

Thanks!

Posted: Monday Oct 15th, 2012 at 8:00 am #28403

Thank you, yes. My settings are correct, and I do already have logging enabled. I have downloaded my paypal IPN log and sent it via the private contact form. Please let me know if there is anything else you need. I really appreciate you taking a look for me.

– Matt

Posted: Tuesday Oct 16th, 2012 at 7:42 am #28507

Thanks for the email.

I went over the latest entries in your log and nothing jumps at me as wrong. I’d have liked to see the other log files, but the login info for the FTP didn’t work, so I couldn’t get them. Could you please send me the right one? Thanks!

By the way, I saw you have W3 Total Cache active with object caching enabled, which is known to cause problems. It’d be best that you disable it. http://www.primothemes.com/forums/viewtopic.php?f=36&t=6309#p62322

Posted: Tuesday Oct 16th, 2012 at 8:03 am #28510

Sorry, wasn’t sure about the password, but I’ve reset it. The new password is 1Stefanik1. I’ll change it back when you’re done. Everything else I sent you is correct. Thanks again!

Posted: Wednesday Oct 17th, 2012 at 7:19 am #28656

Thanks, that worked.

I’m going through the logs now. The RTN log says in every entry that the return variables are missing, and there seem to be several entries for each person. Could this be a problem with the JVzoo integration?

The IPN log shows many transactions that seem okay, but some show the custom attribute (the one with your domain name) to be missing. All those with the problem say the gateway is PayPal, instead of JVzoo as the others do.

array (
  0 => 'IPN received on: Thu Oct 11, 2012 12:27:21 am UTC',
  1 => 's2Member POST vars verified through a POST back to PayPal®.',
  2 => 'Unable to verify `$_SERVER["HTTP_HOST"]`. Please check the `custom` value in your Button Code. It MUST start with your domain name.',
),
'subscr_gateway' => 'paypal',

Are you using a PayPal button too?

Posted: Wednesday Oct 17th, 2012 at 7:32 am #28658

That’s probably because I’ve tried several times to change the settings within Paypal, within JVZoo and with my button code to try to get it to work.

Originally, I was just using the fourth option in JVZoo with the 3rd option blank. My paypal return url was what s2member instructs and my button code was the one provided by JVZoo. As you can see in the screenshot, I’ve changed my Paypal return url to JVZoo’s and added the s2member notify url in JVZoo. I’ve also tried adding the “custom” variable and product number (1) to my JVZoo button code. None of what I’ve attempted so far has made a bit of difference.

I’ve read that for some reason JVZoo doesn’t work with the paid version of s2member, which I have but am not using on this domain. So, I’m using the free version and it’s supposed to work just fine, but not sure what I’m doing wrong because it’s not working very well.

Any suggestions on how the settings should be adjusted?

Thanks again!

Viewing 25 replies - 1 through 25 (of 26 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.