Hello - returning to the original topic for this thread - about skipping blank lines in the address block for the emails that are sent following an order.
I have tried to follow the instructions given above, but I'm afraid this did not work for me. I still get the blank lines. I must be doing something wrong.
Can you please tell me the correct syntax for changing the order_admin_notification.preload.php file - if indeed that is the file I'm supposed to change?
I think the lines that I need to change are lines 414 and 424. Here's what they look like now:
414:
$vars['BILLING_ADDRESS'] = str_replace(array("\r\n","\r","\n"),'<br/>',str_replace("\r\n","\n",preg_replace('#{(?:(?!}).)*}#i','',$billing)));
424:
$vars['SHIPPING_ADDRESS'] = str_replace(array("\r\n","\r","\n"),'<br/>',str_replace("\r\n","\n",preg_replace('#{(?:(?!}).)*}#i','',$shipping)));
I tried adding in the str_replace("\r\n","\n", before the preg_replace with the closing parenthesis, but I saw no change in the email output.
Line 414 looked like this:
$vars['BILLING_ADDRESS'] = str_replace(array("\r\n","\r","\n"),'<br/>',str_replace("\r\n","\n",str_replace("\r\n", "\n", preg_replace('#{(?:(?!}).)*}#i','',$billing))));
Perhaps I put it in the wrong place? Any advice would be appreciated.
Note: (I still haven't fixed the forbidden access issue; i'm just doing this in an editor and uploading via FTP.)
Thanks!
Scott