Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

regarding email language from order??


HelleM

Recommended Posts

Hi DJ

 

I looked in the orders.php file and can see I've been trying to get a hyperlink within the email to the customer. Somebody gave me this piece of code - and that's the problem (language)!!

 

The link works fine - but the language is not set right......

 

In the "Edit Order" - the language is fine - but the link in the email sent to the customer is missing!

Is it possible to "create" some code that would make a active hyperlink in the customer mail..??

 

Helle :-)

 

This is the "not so good" code i got - and used in the orders.php file:

 

_______________________________

 

/* original code

$email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);

Under here new code for the customer email */

$email = NULL;

$link_to_order = tep_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL');

 

if (EMAIL_USE_HTML) {

$email .= STORE_NAME . "\n";

$email .= EMAIL_SEPARATOR . "\n";

$email .= EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID."\n";

$email .= EMAIL_TEXT_INVOICE_URL . ' <a href="' . $link_to_order . '">' . $link_to_order . '</a>' . "\n";

$email .= EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n";

$email .= $notify_comments;

$email .= sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);

} else {

$email .= STORE_NAME . "\n";

$email .= EMAIL_SEPARATOR . "\n";

$email .= EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID."\n";

$email .= EMAIL_TEXT_INVOICE_URL . ' ' . $link_to_order . "\n";

$email .= EMAIL_TEXT_DATE_ORDERED . ' ' . tep_date_long($check_status['date_purchased']) . "\n\n";

$email .= $notify_comments;

$email .= sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);

}

 

unset($link_to_order);

// End email to client

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...