Community Support Forums — WordPress® ( Users Helping Users ) — 2011-11-22T17:49:19-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=10368 2011-11-22T17:49:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=53720#p53720 <![CDATA[Re: Custom thank you email per product?]]> viewtopic.php?f=4&t=10368&p=33365&hilit=basic+transactional#p33365

Statistics: Posted by Jason Caldwell — November 22nd, 2011, 5:49 pm


]]>
2011-11-22T17:22:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=53716#p53716 <![CDATA[Re: Custom thank you email per product?]]> Statistics: Posted by artsyhome — November 22nd, 2011, 5:22 pm


]]>
2011-11-22T17:13:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=53714#p53714 <![CDATA[Re: Custom thank you email per product?]]> Statistics: Posted by cassel — November 22nd, 2011, 5:13 pm


]]>
2011-11-22T16:16:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=53707#p53707 <![CDATA[Re: Custom thank you email per product?]]> Current email body:
Thank you! You've been updated to:
ABC Membership.

Please log back in now.
http://myurl.com

Statistics: Posted by artsyhome — November 22nd, 2011, 4:16 pm


]]>
2011-11-15T17:00:02-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=53109#p53109 <![CDATA[Re: Custom thank you email per product?]]> Thanks for the follow-ups.

I assume that you're running a custom code snippet, based on the examples I gave here?
viewtopic.php?f=4&t=10368#p33365

If so, please post the full custom code and/or file that you ended up with, and I'll have a quick look to see if there is something that may cause this behavior. If you send a file, please ZIP it up first before posting it on the forum ( i.e. the forum does not allow PHP files to be uploaded, but you can ZIP them up ).

Statistics: Posted by Jason Caldwell — November 15th, 2011, 5:00 pm


]]>
2011-11-11T13:00:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=52806#p52806 <![CDATA[Re: Custom thank you email per product?]]> Statistics: Posted by cassel — November 11th, 2011, 1:00 pm


]]>
2011-11-11T12:48:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=52805#p52805 <![CDATA[Re: Custom thank you email per product?]]> I'm using Pro and Authorize.net
Is there a specific code for it?

Thanks in advance.

Statistics: Posted by yamidemichaos — November 11th, 2011, 12:48 pm


]]>
2011-09-28T20:07:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=41867#p41867 <![CDATA[Re: Custom thank you email per product?]]>
Now, if that is fixed, i still wonder if there is a reason why i get the Paypal notification with a different "subject line"? Not a big deal, but puzzling.

Statistics: Posted by cassel — September 28th, 2011, 8:07 pm


]]>
2011-09-28T06:40:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=41826#p41826 <![CDATA[Re: Custom thank you email per product?]]>

Statistics: Posted by cassel — September 28th, 2011, 6:40 am


]]>
2011-09-28T04:37:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=41820#p41820 <![CDATA[Re: Custom thank you email per product?]]>
cassel wrote:
The link shows http://scrapbookcampus.com instead of http://scrapbookcampus.com/success-element as expected.


So you're missing the $vars["cv"][1] value. Could you test if that var is set and has the right value?

Statistics: Posted by Cristián Lávaque — September 28th, 2011, 4:37 am


]]>
2011-09-27T21:39:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=41743#p41743 <![CDATA[Re: Custom thank you email per product?]]>
Otherwise, I'm as stumped as you are :-)

Statistics: Posted by Jason Caldwell — September 27th, 2011, 9:39 pm


]]>
2011-09-27T13:37:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=41709#p41709 <![CDATA[Re: Custom thank you email per product?]]>
I have not had any new sale since yesterday, so i cannot say, but i should have another promotion in a couple of weeks so it might give me more documentation. Is there anything particular that should be checked, revised, or addressed before to get the best documentation for you to figure out why it behaves like that? I am mostly puzzled that it WAS working fine, and then stopped working fine.

Statistics: Posted by cassel — September 27th, 2011, 1:37 pm


]]>
2011-09-27T13:06:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=41705#p41705 <![CDATA[Re: Custom thank you email per product?]]> Statistics: Posted by Jason Caldwell — September 27th, 2011, 1:06 pm


]]>
2011-09-26T04:56:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=39198#p39198 <![CDATA[Re: Custom thank you email per product?]]>

Thanks SUE!

You have successfully purchased the Element.

If you haven't already done so, the next step is to Register a Username for the Campus.

Complete your registration here:
http://tinyurl.com/3ryexpl#scrapbookcampus.com

If you have any trouble, please feel free to contact us.

Once your registation is completed, you can login and access your bonuses here:
http://scrapbookcampus.com/

Enjoy your stay in the Campus,

Cassel
Scrapbook Campus


The link shows http://scrapbookcampus.com instead of http://scrapbookcampus.com/success-element as expected.

Statistics: Posted by cassel — September 26th, 2011, 4:56 am


]]>
2011-09-25T23:20:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=39159#p39159 <![CDATA[Re: Custom thank you email per product?]]> Statistics: Posted by Cristián Lávaque — September 25th, 2011, 11:20 pm


]]>
2011-09-20T23:00:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=38851#p38851 <![CDATA[Re: Custom thank you email per product?]]>
Code:
<?php
add_filter ('ws_plugin__s2member_modification_email_sbj', 'my_s2_modification_sbj', 10, 2);
function my_s2_modification_sbj ($s2member_default_sbj, $vars = array ())
    {       
        return 'Thank you for purchasing '. $vars["item_name"];
    }
add_filter ('ws_plugin__s2member_modification_email_msg', 'my_s2_modification_msg', 10, 2);
function my_s2_modification_msg ($s2member_default_msg, $vars = array ())
    {       
        return "Thank you ". $vars["first_name"] . "\n\nYou have successfully purchased the " . $vars["item_name"] . "\n\nIf you have not already done so, the next step is to Register a Username for the Campus.\n\n Please complete your registration here:" . wp_login_url () . "\n\n
        If you have any trouble, please feel free to contact us.\n\nOnce your registation is completed, you can login and access your bonuses here: http://scrapbookcampus.com/".$vars["cv"][1];   
    }
?>


The strange thing is that it DID work in the test so i dont know what happened after.

Statistics: Posted by cassel — September 20th, 2011, 11:00 pm


]]>
2011-09-20T19:13:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=38819#p38819 <![CDATA[Re: Custom thank you email per product?]]> Can I see the code that you ended up with please?

Statistics: Posted by Jason Caldwell — September 20th, 2011, 7:13 pm


]]>
2011-09-17T17:03:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=38242#p38242 <![CDATA[Re: Custom thank you email per product?]]>
Curious about that, i email another registrant who completed the purchase yesterday and asked her for a copy of her thank you email and sure enough, that link is also incomplete. I dont really want to ask every registrant to email me their thank you email to check the exact time it broke so i sent a general email to all of them with the correct link.

But at this point, i am really stumped as i thought it was working fine since the test email did show the correct custom link and now, it does not. Any suggestion as where to look for the possible 'break'?

Statistics: Posted by cassel — September 17th, 2011, 5:03 pm


]]>
2011-09-01T23:52:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=33729#p33729 <![CDATA[Re: Custom thank you email per product?]]>

I already have pointed someone to this thread, but all of it because the explanations help understand the hack better.

Statistics: Posted by Cristián Lávaque — September 1st, 2011, 11:52 pm


]]>
2011-09-01T22:12:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=33709#p33709 <![CDATA[Re: Custom thank you email per product?]]> Statistics: Posted by cassel — September 1st, 2011, 10:12 pm


]]>
2011-09-01T22:06:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=33706#p33706 <![CDATA[Re: Custom thank you email per product?]]> Statistics: Posted by Jason Caldwell — September 1st, 2011, 10:06 pm


]]>
2011-09-01T21:09:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=33700#p33700 <![CDATA[Re: Custom thank you email per product?]]> You are so patient with us (especially me!)

I got this as a confirmation email:

Subject: Congratulations! You officially registered for the Element Creation with PSP


Thanks Robert!

You have successfully purchased the Element Creation with PSP.

If you haven't already done so, the next step is to Register a Username
for the Campus.

Complete your registration here:
http://tinyurl.com/xxxxxxxx
If you have any trouble, please feel free to contact us.

Once your registation is completed, you can login and access your bonuses
here:
http://xxxxxxxxx
Enjoy your stay in the Campus,

Cassel
Scrapbook Campus


So, it does tell the registrant the right message, and the variable was in there to direct to the correct "success" page where the bonus for that SPECIFIC purchase will be posted (it is not yet, so dont try to grab anything!) However, at this point, i only have a curiosity question: is it expected to have the registration URL is using a tinyurl?

:?: :?: (had to edit the links because i found out someone used this post to access pages that should not be accessed by non-members)

Statistics: Posted by cassel — September 1st, 2011, 9:09 pm


]]>
2011-09-01T20:46:42-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=33699#p33699 <![CDATA[Re: Custom thank you email per product?]]>
cassel wrote:
Code:
<?php
add_filter ("ws_plugin__s2member_modification_email_sbj", "my_s2_modification_sbj", 10, 2);
function my_s2_modification_sbj ($s2member_default_sbj, $vars = array ())
    {       
        return 'Thank you for purchasing '. $vars["item_name"] .;
    }
add_filter ("ws_plugin__s2member_modification_email_msg", "my_s2_modification_msg", 10, 2);
function my_s2_modification_msg ($s2member_default_msg, $vars = array ())
    {       
        return 'Thank you' $vars["first_name"] '\n\nYou have successfully purchased the ' $vars["item_name"] '\n\nIf you have not already done so, the next step is to Register a Username for the Campus.\n\n Please complete your registration here:' . wp_login_url ()'\n\n
        If you have any trouble, please feel free to contact us.\n\nOnce your registation is completed, you can login and access your bonuses here: http://scrapbookcampus.com/'$vars["cv"][1];   
    }
?>


Try this instead at line #5:
Code:
return 'Thank you for purchasing '. $vars["item_name"]; 


Also, this section has many syntax errors:
Code:
        return 'Thank you' $vars["first_name"] '\n\nYou have successfully purchased the ' $vars["item_name"] '\n\nIf you have not already done so, the next step is to Register a Username for the Campus.\n\n Please complete your registration here:' . wp_login_url ()'\n\n
        If you have any trouble, please feel free to contact us.\n\nOnce your registation is completed, you can login and access your bonuses here: http://scrapbookcampus.com/'$vars["cv"][1];
Please have a look at these articles related to string concatenation.
http://phphowto.blogspot.com/2006/12/co ... rings.html
http://www.phpf1.com/tutorial/php-strin ... ation.html

Statistics: Posted by Jason Caldwell — September 1st, 2011, 8:46 pm


]]>
2011-09-01T18:20:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=33681#p33681 <![CDATA[Re: Custom thank you email per product?]]>
I do have a s2Member-logs and i can see the transaction AND the various variables (yayyyy!!!!). So, i code the hack file but i am getting still an error message. My guess is a syntax error. Here is the error i get on loading the page:


Parse error: syntax error, unexpected ';' in /home/creas1/public_html/scrapbookcampus.com/wp-content/mu-plugins/s2-hacks.php on line 5

and here is the code i created, in light of the variables i found in the paypal log:
Code:
<?php
add_filter ("ws_plugin__s2member_modification_email_sbj", "my_s2_modification_sbj", 10, 2);
function my_s2_modification_sbj ($s2member_default_sbj, $vars = array ())
    {       
        return 'Thank you for purchasing '. $vars["item_name"] .;
    }
add_filter ("ws_plugin__s2member_modification_email_msg", "my_s2_modification_msg", 10, 2);
function my_s2_modification_msg ($s2member_default_msg, $vars = array ())
    {       
        return 'Thank you' $vars["first_name"] '\n\nYou have successfully purchased the ' $vars["item_name"] '\n\nIf you have not already done so, the next step is to Register a Username for the Campus.\n\n Please complete your registration here:' . wp_login_url ()'\n\n
        If you have any trouble, please feel free to contact us.\n\nOnce your registation is completed, you can login and access your bonuses here: http://scrapbookcampus.com/'$vars["cv"][1];   
    }
?>

Statistics: Posted by cassel — September 1st, 2011, 6:20 pm


]]>
2011-09-01T17:03:48-05:00 http://www.primothemes.com/forums/viewtopic.php?t=10368&p=33675#p33675 <![CDATA[Re: Custom thank you email per product?]]> Please see: /wp-content/plugins/s2member-logs/

If you don't have anything there, please enable s2Member's logging routines, in your Dashboard.
See: s2Member -> PayPal Options -> Account Details -> Logging.

If you continue to have trouble, please send us a screenshot of your s2Member -> PayPal Options -> Signup Confirmation Email configuration, and also post the full contents of the PHP file that you're modifying s2Member with ( i.e. your s2-hacks.php file ). Short of that, it sounds like you might need assistance from a PHP developer. The code samples above are really intended for a site owner with experience in PHP, and may not work for everyone.

Statistics: Posted by Jason Caldwell — September 1st, 2011, 5:03 pm


]]>