andyshep Posted November 12, 2006 Posted November 12, 2006 hi all. When a customer fills out a new account form and their company name is somthing like A&Another services then make an order. in the confirmation email the company name is A&Another services. Any ideas where i can correct this? Cheers all, Andy.
Guest Posted November 12, 2006 Posted November 12, 2006 did you modify the create_account.php page in any way? check the database for all your customers, see what the fields look like.
andyshep Posted November 12, 2006 Author Posted November 12, 2006 did you modify the create_account.php page in any way? check the database for all your customers, see what the fields look like. checked the database and in there it shows as & not & so its obviously using htmlspecialchars() or similar to display it in the email. so it must be somewhere in the script that sends the order confirmation email. which is ?????
gatzo Posted November 13, 2006 Posted November 13, 2006 Did you find out why & is converted to &_amp; (without the underscore) in the confirmation email?
jdvb Posted November 13, 2006 Posted November 13, 2006 you could set the e-mail to be html, so it would still display correctly. That might be most simple
gatzo Posted November 13, 2006 Posted November 13, 2006 I found the answer for the non-html emails: checkout_process.php, replace this: tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n"; with this: tep_decode_specialchars(tep_address_label($customer_id, $sendto, 0, '', "\n")) . "\n"; and replace this: tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; with this: tep_decode_specialchars(tep_address_label($customer_id, $billto, 0, '', "\n")) . "\n\n"; Backup first.
andyshep Posted November 13, 2006 Author Posted November 13, 2006 I found the answer for the non-html emails: checkout_process.php, replace this: tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n"; with this: tep_decode_specialchars(tep_address_label($customer_id, $sendto, 0, '', "\n")) . "\n"; and replace this: tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; with this: tep_decode_specialchars(tep_address_label($customer_id, $billto, 0, '', "\n")) . "\n\n"; Backup first. cheers gatzo altered that we will see what happens. much appreciate your time cheers
gatzo Posted November 13, 2006 Posted November 13, 2006 No problem - but do make sure to test it yourself :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.