Tips and Tricks HQ Support Portal › Forums › WP PDF Stamper › Changed email message wording and email not longer sends after purchase
Tagged: PDF stamper and PayPal
- This topic has 6 replies, 2 voices, and was last updated 13 years, 5 months ago by
admin.
-
AuthorPosts
-
December 3, 2011 at 2:24 am #4927
dprodgers
MemberHi,
I am using the PDF Stamper with only a hosted PayPal button.
I tried a transaction and it worked. However, I would like to change the wording on the email that people receive immediately after they purchase.
I changed the file – Editing wp-pdf-stamper/api/ipn_customization_config.php (inactive) to the code shown below. Since changing this code, when testing transactions, the email does not get sent at all. I tried changing the enable debug code to “true,” but it didn’t work as true or as false. Is there something else I need to do so that the emails will send again with the new wording?
The code I made is as follows:
email address.
$from_email = “”;
//Email subject
$subject = “Thank you for your Ebook purchase”;
//The buyer email body. The first name, last name and stamped file’s URL will be replaced with the text with braces {}
$buyer_email_body = “Dear {first_name} {last_name}”.
“nnThank you for your purchase!”.
“nnPC users, right click on the link below and click Save Link As.”.
“nnMac users, hold the control key, click on the link, and select Download Linked File As.”.
“nnEmail brief questions regarding the book’s content at nutrientbalance@gmail.com.”.
“nnFor more in-depth health concerns, click consultations at nutrientbalance.com.”.
“nnThanks again and enjoy. If inclined, you may review the book at Amazon.com.”.
“nnHere is the download link for the purchased product”.
“n{product_link}”.
“nnThanks again!”
//Enable or disable debug
$debug_enabled = true;
// Debug log file name
$debug_log = “ipn_handle_debug.log”;
//Sandbox mode is off
$sandbox = false;
?>
December 3, 2011 at 2:26 am #39125dprodgers
MemberI noticed you told others to check the debug file – but I don’t see any file like that listed in the plugin edit area.
Thanks a lot for your help.
December 3, 2011 at 3:26 am #39126admin
KeymasterLets make sure you did not introduce any error in that file. What is the URL of your site?
December 3, 2011 at 4:58 am #39127dprodgers
MemberThe site is http://www.nutrientbalance.com and the page is http://www.nutrientbalance.com/reloadedhair
Thanks
December 3, 2011 at 5:13 am #39128admin
KeymasterNot sure how you edited that file but there is some error. The following script now returns error 500.
http://www.nutrientbalance.com/wp-content/plugins/wp-pdf-stamper/api/ipn_handler.php
So when PayPal sends the notification it won’t be able to process. Uploaded a fresh copy of the file you modified and do small changes while checking so you know where you are introducing the error. What part are you really trying to change?
December 3, 2011 at 3:53 pm #39129dprodgers
MemberOkay thanks – when I do this, should I keep the debug enabled false or true?
December 4, 2011 at 3:06 am #39130admin
KeymasterKeep it false as that is the default option.
-
AuthorPosts
- You must be logged in to reply to this topic.