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.

How to edit Registration confirmation message

Home Forums Community Forum How to edit Registration confirmation message

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

Topic Author Topic
Posted: Tuesday Jan 1st, 2013 at 2:19 pm #35907

I do not want to redirect the user to a custom confirmation/thank-you page but instead want to change the message that appears after successful registration is complete (“Thank you. Your account has been approved. — Please login.”)

what’s the easiest way to do that / where is this message generated?

thanks

List Of Topic Replies

Viewing 13 replies - 1 through 13 (of 13 total)
Author Replies
Author Replies
Posted: Thursday Jan 3rd, 2013 at 2:06 am #36055

Hi Pirco.

You could try this in /wp-content/mu-plugins/s2hacks.php (create the dir/file if you don’t have it yet):

[hilite pre_code]
Thank you! Your account has been approved.
The next step is to Register a Username for immediate access.')
$translated = 'My customized thank-you.';
return $translated;
}
[/hilite]
Posted: Thursday Jan 3rd, 2013 at 12:20 pm #36115

thanks, Cristián. this looks great.
I suppose I can “translate” other texts with that. but how do I know which $context to reference? is there a quick way to find out?

thanks again.

Posted: Saturday Jan 5th, 2013 at 7:05 am #36247

Right, you can translate other strings too. Search for the string in the s2Member files and there you’ll see the complete string you need to match, as well as the context string. There are editors that let you search in several files, I use EditPlus.

Posted: Saturday Jan 5th, 2013 at 12:44 pm #36281

thanks!

Posted: Monday Jan 7th, 2013 at 5:18 am #36430

No problem! :)

Posted: Monday Jan 7th, 2013 at 1:46 pm #36473

ok so I had to change direction and now need to re-direct users to a custom “thank you” page upon successful payment for a membership. I have set up the page (http://www.lookforward-yourwhitebook.com/thank-you/) and added

success="/thank-you"

to the short code

[s2Member-Pro-AuthNet-Form level="2" ccaps="" desc="$4.90 USD for 1 week access" cc="USD" custom="www.lookforward-yourwhitebook.com" ta="0" tp="0" tt="D" ra="4.90" rp="1" rt="W" rr="0" rrt="" accept="visa,mastercard,amex,discover" coupon="" accept_coupons="0" default_country_code="US" captcha="1" success="/thank-you" /]

but it does not redirect. the AJAX message displays instead. what am I missing? is there any setting that could have changed?

thanks

Posted: Tuesday Jan 8th, 2013 at 7:58 pm #36647

I try loading the page but it doesn’t let me, it’s protected. That could be messing with the redirection. http://www.lookforward-yourwhitebook.com/thank-you/

What do the logs say for that transaction? Anything odd there? If the transaction has any problems, the [hilite mono]success[/hilite] redirection will probably not happen. [hilite path]Dashboard -› s2Member® -› PayPal® Options -› Account Details -› Logging[/hilite]

Do you have hacks installed that may affect this? /wp-content/mu-plugins/

Also, try these please: Knowledge Base » Common Troubleshooting Tips

Posted: Tuesday Jan 8th, 2013 at 8:04 pm #36650

sorry. I tested without protection already and disabled the authentication now again.

I had the “silent mail chimp subscription” hack in mu-plugins but disabled that.

I followed the troubleshooting tips. I’m using authorize.net. still a test account but it’s not in TEST mode…

just curious because everything works. users get added, emails sent out, and the new account works. authorize.net sends me the “charge” and all is good. except the re-direct…

thanks

Posted: Tuesday Jan 8th, 2013 at 8:07 pm #36652

for testing purposes you can access the registration page here
http://www.lookforward-yourwhitebook.com/become-a-member
and use authorize’s test VISA card 4007000000027

EDIT: well, it’s getting weirder… now the page does not only not re-direct. it doesn’t even show the AJAX confirmation message. it seems to think this page is now protected (it is not). at least that’s what I can glean from the URL http://www.lookforward-yourwhitebook.com/become-a-member/?_s2member_seeking%5Btype%5D=page&_s2member_seeking%5Bpage%5D=1172&…

EDIT2: and now I see this message in the log: Unable to verify POST vars. This is most likely related to an invalid Authorize.Net® configuration. Please check: s2Member -> Authorize.Net® Options.
(sorry, EDIT3: looks like that message is a default message)

Posted: Tuesday Jan 8th, 2013 at 8:39 pm #36658

here are the logs

authnet IPN:

PHP v5.3.14 :: WordPress® v3.4.2 :: s2Member® v121213 :: s2Member® Pro v121213
Memory 27.33 MB :: Real Memory 27.75 MB :: Peak Memory 27.55 MB :: Real Peak Memory 27.75 MB
www.lookforward-yourwhitebook.com/?s2member_pro_authnet_notify=1
User-Agent: 
array (
  's2member_log' => 
  array (
    0 => 'Unable to verify POST vars. This is most likely related to an invalid Authorize.Net® configuration. Please check: s2Member -> Authorize.Net® Options.',
    1 => 'If you\'re absolutely SURE that your Authorize.Net® configuration is valid, you may want to run some tests on your server, just to be sure $_POST variables are populated, and that your server is able to connect to Authorize.Net® over an HTTPS connection.',
    2 => 's2Member uses the WP_Http class for remote connections; which will try to use cURL first, and then fall back on the FOPEN method when cURL is not available. On a Windows® server, you may have to disable your cURL extension. Instead, set allow_url_fopen = yes in your php.ini file. The cURL extension (usually) does NOT support SSL connections on a Windows® server.',
    3 => 'array (
  \'s2member_pro_authnet_notify\' => \'1\',
  \'x_response_code\' => \'1\',
  \'x_response_reason_code\' => \'1\',
  \'x_response_reason_text\' => \'This transaction has been approved.\',
  \'x_avs_code\' => \'Y\',
  \'x_auth_code\' => \'xyz\',
  \'x_trans_id\' => \'123\',
  \'x_method\' => \'CC\',
  \'x_card_type\' => \'Visa\',
  \'x_account_number\' => \'XXXX\',
  \'x_first_name\' => \'test\',
  \'x_last_name\' => \'subscriber\',
  \'x_company\' => \'\',
  \'x_address\' => \'123 street\',
  \'x_city\' => \'LA\',
  \'x_state\' => \'CA\',
  \'x_zip\' => \'90291\',
  \'x_country\' => \'US\',
  \'x_phone\' => \'\',
  \'x_fax\' => \'\',
  \'x_email\' => \'pirco@testing.com\',
  \'x_invoice_num\' => \'s2-123\',
  \'x_description\' => \'1 year membership: $49.95 USD\',
  \'x_type\' => \'auth_capture\',
  \'x_cust_id\' => \'\',
  \'x_ship_to_first_name\' => \'\',
  \'x_ship_to_last_name\' => \'\',
  \'x_ship_to_company\' => \'\',
  \'x_ship_to_address\' => \'\',
  \'x_ship_to_city\' => \'\',
  \'x_ship_to_state\' => \'\',
  \'x_ship_to_zip\' => \'\',
  \'x_ship_to_country\' => \'\',
  \'x_amount\' => \'4.90\',
  \'x_tax\' => \'0.00\',
  \'x_duty\' => \'0.00\',
  \'x_freight\' => \'0.00\',
  \'x_tax_exempt\' => \'FALSE\',
  \'x_po_num\' => \'\',
  \'x_MD5_Hash\' => \'XYZ123\',
  \'x_cvv2_resp_code\' => \'P\',
  \'x_cavv_response\' => \'2\',
  \'x_test_request\' => \'false\',
  \'s2_invoice\' => \'2::1 W\',
  \'s2_custom\' => \'www.lookforward-yourwhitebook.com\',
)',
  ),
)

authnet API:

-------- Output string/vars: ( Wed Jan 9, 2013 1:29:29 am UTC ) --------
"1","1","1","This transaction has been approved.","XYZ123","Y","123","s2-55xyz7878","1 year membership: $49.95 USD","4.90","CC","auth_capture","","test","subscriber","","123 street","LA","CA","90291","US","","","pirco@testing.com","","","","","","","","","0.00","","","","","XYZ123","P","2","","","","","","","","","","","XYZ123","Visa","","","","","","","","","","","","","","","","","2::1 W","www.lookforward-yourwhitebook.com"
array (
  0 => '1',
  1 => '1',
  2 => '1',
  3 => 'This transaction has been approved.',
  4 => 'XYZ123',
  5 => 'Y',
  6 => '123',
  7 => 's2-55xyz7878',
  8 => '1 year membership: $49.95 USD',
  9 => '4.90',
  10 => 'CC',
  11 => 'auth_capture',
  12 => '',
  13 => 'test',
  14 => 'subscriber',
  15 => '',
  16 => '123 street',
  17 => 'LA',
  18 => 'CA',
  19 => '90291',
  20 => 'US',
  21 => '',
  22 => '',
  23 => 'pirco@testing.com',
  24 => '',
  25 => '',
  26 => '',
  27 => '',
  28 => '',
  29 => '',
  30 => '',
  31 => '',
  32 => '0.00',
  33 => '',
  34 => '',
  35 => '',
  36 => '',
  37 => 'XYZ123',
  38 => 'P',
  39 => '2',
  40 => '',
  41 => '',
  42 => '',
  43 => '',
  44 => '',
  45 => '',
  46 => '',
  47 => '',
  48 => '',
  49 => '',
  50 => 'XYZ123',
  51 => 'Visa',
  52 => '',
  53 => '',
  54 => '',
  55 => '',
  56 => '',
  57 => '',
  58 => '',
  59 => '',
  60 => '',
  61 => '',
  62 => '',
  63 => '',
  64 => '',
  65 => '',
  66 => '',
  67 => '',
  68 => '2::1 W',
  69 => 'www.lookforward-yourwhitebook.com',
  'response_code' => '1',
  'response_subcode' => '1',
  'response_reason_code' => '1',
  'response_reason_text' => 'This transaction has been approved.',
  'authorization_code' => 'XYZ123',
  'avs_response' => 'Y',
  'transaction_id' => '123',
  'invoice_number' => 's2-55xyz7878',
  'description' => '1 year membership: $49.95 USD',
  'amount' => '4.90',
  'method' => 'CC',
  'transaction_type' => 'auth_capture',
  'customer_id' => '',
  'first_name' => 'test',
  'last_name' => 'subscriber',
  'company' => '',
  'address' => '123 street',
  'city' => 'LA',
  'state' => 'CA',
  'zipcode' => '90291',
  'country' => 'US',
  'phone' => '',
  'fax' => '',
  'email' => 'pirco@testing.com',
  'ship_to_first_name' => '',
  'ship_to_last_name' => '',
  'ship_to_company' => '',
  'ship_to_address' => '',
  'ship_to_city' => '',
  'ship_to_state' => '',
  'ship_to_zipcode' => '',
  'ship_to_country' => '',
  'tax' => '0.00',
  'duty' => '',
  'freight' => '',
  'tax_exempt' => '',
  'po_number' => '',
  'md5_hash' => 'XYZ123',
  'card_code_response' => 'P',
  'cavv_response' => '2',
  'card_number' => '',
  'card_type' => '',
  'split_tender_id' => '',
  'requested_amount' => '',
  'balance_on_card' => '',
)

paypal IPN:

PHP v5.3.14 :: WordPress® v3.4.2 :: s2Member® v121213 :: s2Member® Pro v121213
Memory 15.61 MB :: Real Memory 16.25 MB :: Peak Memory 15.77 MB :: Real Peak Memory 16.25 MB
www.lookforward-yourwhitebook.com/?s2member_paypal_notify=1&s2member_paypal_proxy=authnet&s2member_paypal_proxy_use=pro-emails&s2member_paypal_proxy_verification=caa2d6e61ef84e67b31a32fdc225986e&s2member_paypal_proxy_return_url=%2Fthank-you
User-Agent: WordPress/3.4.2; http://www.lookforward-yourwhitebook.com
array (
  'txn_type' => 'web_accept',
  'txn_id' => '123',
  'custom' => 'www.lookforward-yourwhitebook.com',
  'mc_gross' => '4.90',
  'mc_currency' => 'USD',
  'tax' => '0.00',
  'payer_email' => 'pirco@testing.com',
  'first_name' => 'test',
  'last_name' => 'subscriber',
  'option_name1' => 'Originating Domain',
  'option_selection1' => 'www.lookforward-yourwhitebook.com',
  'option_name2' => 'Customer IP Address',
  'option_selection2' => '1.1.1.1',
  'item_name' => '1 year membership: $49.95 USD',
  'item_number' => '2::1 W',
  'proxy_verified' => 'authnet',
  's2member_log' => 
  array (
    0 => 'IPN received on: Wed Jan 9, 2013 1:29:31 am UTC',
    1 => 's2Member POST vars verified with a Proxy Key',
    2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
    3 => 's2Member `txn_type` identified as ( `web_accept|subscr_signup` ).',
    4 => 's2Member `txn_type` identified as ( `web_accept|subscr_signup` ) w/o update vars.',
    5 => 'Signup Confirmation Email sent to: "test subscriber" <pirco@testing.com>.',
    6 => 'Subscr. Return ( `modification=0` ), a Proxy Return URL is ready.',
    7 => 'User exists. Handling `payment` for Subscription via ( `web_accept` ).',
    8 => 'Storing IPN signup vars now. These are associated with a User\'s account record; for future reference.',
  ),
  'subscr_gateway' => 'authnet',
  'subscr_id' => '123',
  'eotper' => '1 W',
  'ccaps' => '',
  'level' => '2',
  'ip' => '1.1.1.1',
  'period1' => '0 D',
  'mc_amount1' => '0.00',
  'period3' => '1 W',
  'mc_amount3' => '4.90',
  'initial_term' => '0 D',
  'initial' => '4.90',
  'regular' => '4.90',
  'regular_term' => '1 W',
  'recurring' => '0',
  's2member_paypal_proxy_return_url' => '/thank-you',
  's2member_paypal_proxy' => 'authnet',
  's2member_paypal_proxy_use' => 'pro-emails',
  's2member_paypal_proxy_verification' => 'zzzz',
)
Posted: Wednesday Jan 9th, 2013 at 10:34 pm #36822

Thanks for the info, Pirco.

I followed the troubleshooting tips.

So you tried using the default theme and deactivating all the other plugins? Or did you try a clean WP installation with just s2Member added for the tests and you still had the problem?

just curious because everything works. users get added, emails sent out, and the new account works. authorize.net sends me the “charge” and all is good. except the re-direct…

Yes, it’s odd. Did you also try using the full URL in the [hilite mono]success[/hilite] attribute? http://www.lookforward-yourwhitebook.com/thank-you/

EDIT2: and now I see this message in the log: Unable to verify POST vars. This is most likely related to an invalid Authorize.Net® configuration. Please check: s2Member -> Authorize.Net® Options.

Did you do the server check to see that nothing wrong is reported there? http://www.s2member.com/kb/common-troubleshooting-tips/#server

Did you review and verify that all your integration is properly filled out in s2Member and Authorize.Net? [hilite path]Dashboard -› s2Member® -› Authorize.Net® Options[/hilite]

Posted: Wednesday Jan 9th, 2013 at 10:51 pm #36823

hi cristian
I did the troubleshooting tests a while back when I had other issues. but I suppose I need to do all of it again.
so I will be back.

thanks

Posted: Wednesday Jan 9th, 2013 at 11:07 pm #36827

Cool. :)

Viewing 13 replies - 1 through 13 (of 13 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.