Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Define(' question


Ken_Shea

Recommended Posts

Posted

Here are the two original define statements

 

define('EMAIL_TEXT_SUBJECT', 'On Target Sports OnLine ');

define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:');

 

What I would like to do is include in the email subject line 'EMAIL_TEXT_ORDER_NUMBER' ahead of the EMAIL_TEXT_SUBJECT'

 

Can this be even done and if so help on how.

 

OK, 2nd thought, that's not going to work as what is needed is the order number value there.

 

Output example on the email confirmation subject line "10768 On Target Sports OnLine "

 

 

Thanks for your help

 

Ken

Posted
Output example on the email confirmation subject line "10768 On Target Sports OnLine "
You'd need to change lines in at least two files to do this properly.

 

define('EMAIL_TEXT_SUBJECT', '%s On Target Sports OnLine ');

 

tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], sprintf(EMAIL_TEXT_SUBJECT, $insert_id), $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

 tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, sprintf(EMAIL_TEXT_SUBJECT, $insert_id), $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

Changes untested.

Always back up before making changes.

Archived

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

×
×
  • Create New...