Tips and Tricks HQ Support Portal › Forums › WP PDF Stamper › Email Customization – French Translation
Tagged: pdf stamper, Translation
- This topic has 15 replies, 2 voices, and was last updated 13 years, 5 months ago by amin007.
-
AuthorPosts
-
May 21, 2011 at 1:03 am #3447IncreaserMember
Hello,
My customers are French and I need to translate the emails sent to them with their stamped PDF links.
I have looked in the PDF Stamper folder but there is no language folder or file.
Thanks.
May 21, 2011 at 4:01 am #32763amin007ParticipantAre you using PDF stamper with Plain PayPal or WP eStore or Clickbank?
May 21, 2011 at 4:52 pm #32764IncreaserMemberHello,
I am using WP Stamper stand-alone version with Plain Paypal.
Thanks.
May 22, 2011 at 12:01 am #32765amin007ParticipantThank you. Please open the following file and edit the email text to your language:
wp-pdf-stamper/api/ipn_customization_config.php
May 24, 2011 at 4:35 pm #32766IncreaserMemberHello,
I have made the translation, making sure I respected what’s required on each line, but PDF Stamper is not sending the emails any more.
Below is my code in full. I cannot see where I am making a mistake.
Thanks.
<?php
//The from email address that will be used to send emails to the buyer. By default it will use the paypal receiver email address.
$from_email = “”;
//Email subject
$subject = “Les Services Esther – Merci Pour Votre Commande”;
//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 = “Cher(Chère) {first_name} {last_name},”.
“nnMerci pour votre commande sur notre site web.”.
“nnPour plus d’informations concernant la transaction financière,”.
“nveuillez vous référer au reçu envoyé par Paypal.”.
“nnVotre Commande”.
“n
“.“nPour télécharger votre carte ou video, veuillez cliquer sur le”.
“nlien ci-dessous.”.
“nSi le lien n’est pas cliquable, copiez-le en entier et collez-le”.
“ndans votre navigateur web.”.
“nn{product_link}”.
“nnService Clientèle”.
“n
“.“nPour toute assistance relative à votre commande, vous pouvez nous”.
“ncontacter à partir du site, en allant sur:”.
“nhttp://servicesesther.net/contact”.
“nMerci encore et que Dieu vous bénisse!”.
“nBureau des Publications”.
“nLes Services Esther”.
“nhttp://servicesesther.netn”;
//Enable or disable debug
$debug_enabled = false;
// Debug log file name
$debug_log = “ipn_handle_debug.log”;
//Sandbox mode is off
$sandbox = false;
?>
May 25, 2011 at 1:01 am #32767amin007ParticipantPlease change the following line:
$debug_enabled = false;
to the following:
$debug_enabled = true;
This will make it to where the plugin logs the activities in a log filed called “ipn_handle_debug.log”. Share the content of that file after a transaction and it will tell us what is going on after a payment.
June 1, 2011 at 1:27 pm #32768IncreaserMemberHello,
I have done the change, but there is no ipn_handle_debug.log file in the folder.
Is it created automatically or should I create one?
June 1, 2011 at 11:51 pm #32769amin007ParticipantIt is automatically created for you when the IPN (payment notification is received). It appears that IPN is not being received by the plugin.
The following post is for the WP eStore plugin but the PayPal IPN concept is the same. Please have a read and it will give you good idea of how to find out what is wrong with your account or server (maybe you just need to enable IPN in your PayPal profile):
https://support.tipsandtricks-hq.com/forums/topic/how-and-when-to-enable-debug-and-what-does-it-do
June 2, 2011 at 12:56 pm #32770IncreaserMemberHello,
It’s working now. Thanks.
Another question:
Does WP PDF Stamper send an email to the customer when using the API GET call? or does it not?
Thank you.
June 2, 2011 at 11:39 pm #32771amin007ParticipantNo, the API call is used to stamp the file only. This allows the 3rd party program to customize the rest of the behavior.
June 3, 2011 at 10:02 am #32772IncreaserMemberHello,
The thing is; I have a script that I use as my main IPN handler because it comes with many customisation features.
It’s able to send the API GET Call to WP Stamper and allows me to display the returned data in my download and email page templates.
My problem is that: the returned data text is in English (for French customers).
Is there a way to customise the text in French?
My concern is that in case the returned data is an error, my customers might freak out and this would not give a good image of my services at all.
Thanks.
June 3, 2011 at 11:57 pm #32773amin007ParticipantYou should not directly show the return data from the API to your customers. Your script should process the return data from the API then do some customizations with the data then display. All you are after from the API is the URL of the stamped PDF file.
Please go to the “Integration Help” tab of the PDF Stamper plugin and it has a sample PHP script that shows you how to make a API call and process the return data. Take the sample PHP code and add it to your IPN handler and do modify it as necessary.
June 4, 2011 at 12:57 am #32774IncreaserMemberHello,
I am not a programmer or coder but simply followed the instructions in the script manual that came with my IPN handler to test the API GET Call.
No further processing is mentioned other than displaying the results in the download or email templates.
However, the developer has left the script open.
Do you mean that if I copy the sample php code in the WP Stamper integration panel and add it to the above script it should work?
Isn’t there any other coding to be done about it?
Thanks.
June 4, 2011 at 2:32 am #32775amin007ParticipantI would recommend giving the example PHP code to the developer who sold/gave you this 3rd party IPN handler script (it will be hard for you to do anything with the code if you can’t read and understand PHP code yourself). It is beyond our support capability to help and troubleshoot a 3rd party script that we didn’t develop.
June 4, 2011 at 4:53 pm #32776IncreaserMemberHello,
One last question:
If I have understood well, the Api Get or Post process only stamps the PDF file, but nnever send the email to the customer.
Basically, it is the same as manual stamping.
So this means that WP Stamper does not send the email to the customer unless it has received the IPN validation from the payment processor?
Is this correct?
Thanks.
-
AuthorPosts
- You must be logged in to reply to this topic.