richieri
Forum Replies Created
-
Hi guys, I think this is the same problem I have, when I try to break lines.
I made this workaround until the fix is ready. I added the following code on functions.php of my child theme:
function linebreak_pms( $string ) {
$string = str_replace(“\\n”,”<br>”,$string);
return $string;
}
add_filter( ‘pms_email_content’, ‘linebreak_pms’);In PMS setings, I write the text in just one line, adding “\n”, for example:
“Dear Customer!\n\nYou have successfully created your account!\n\nNow we waiting for your payment confirmation. You don’t need to answer this message.”
This of course is a ugly workaround, but I was able to send emails with line breaks in the body.
Thanks!
Dear Teodor,
Just confirming, is PMS already compatible with WPML? I’m trying to put it to work but without success. Thanks!
Dear Teodor, yes I have. Maybe it’s something particular in my server, but I was not able to discover.
At this moment I only tested it with paypal sandbox. I’ll try it also on production and keep you informed if this code was also necessary there.
Thanks and congrats for your software!