Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

company name in order confirmation


andyshep

Recommended Posts

Posted

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.

Posted

did you modify the create_account.php page in any way? check the database for all your customers, see what the fields look like.

Posted
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 ?????

Posted

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.

Posted
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...