Here's what I ended up doing to make the emails work in my multilanguage shop. I don't use the sidebox, so sorry, I can't help there.
For each of your languages, in admin/includes/languages/YOUR_LANGUAGE/order_status_email.php
Add to the bottom (replace the defined text with your language as necessary):
Code:
define('TY_PT_1','Your');
define('TY_PT_2','Tracking ID is');
define('TY_PT_3','Click here');
define('TY_PT_4','to track your package.<br /><br />If the above link does not work, copy the following URL address and paste it into your Web browser:<br/>');
define('TY_PT_5','<br><br>It may take up to 24 hours for the tracking information to appear on the website.');
In admin/includes/functions/extra_functions/common_orders_functions.php find // TY TRACKER 4 BEGIN
Replace the whole section with this:
Code:
// TY TRACKER 4 BEGIN ----------------------------------------------
$status = $status_info->fields['orders_status_id'];
$track_id1 = $status_info->fields['track_id1'];
$track_id2 = $status_info->fields['track_id2'];
$track_id3 = $status_info->fields['track_id3'];
$track_id4 = $status_info->fields['track_id4'];
$track_id5 = $status_info->fields['track_id5'];
if (zen_not_null($status_info->fields['comments']) && $status_info->fields['comments'] != '' && $_POST['notify_comments'] == 'on') {
$notify_comments = EMAIL_TEXT_COMMENTS_UPDATE . $status_info->fields['comments'] . "\n\n<br><br>";
}
if (zen_not_null($track_id1)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_1."\n".TY_PT_2.' '.$track_id1."\n\n<br/><br/> <a href=".CARRIER_LINK_1.$track_id1.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_1.$track_id1."\n".TY_PT_5."\n\n"; }
if (zen_not_null($track_id2)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_2."\n".TY_PT_2.' '.$track_id2."\n\n<br/><br/> <a href=".CARRIER_LINK_2.$track_id2.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_2.$track_id2."\n".TY_PT_5."\n\n"; }
if (zen_not_null($track_id3)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_3."\n".TY_PT_2.' '.$track_id3."\n\n<br/><br/> <a href=".CARRIER_LINK_3.$track_id3.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_3.$track_id3."\n".TY_PT_5."\n\n"; }
if (zen_not_null($track_id4)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_4."\n".TY_PT_2.' '.$track_id4."\n\n<br/><br/> <a href=".CARRIER_LINK_4.$track_id4.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_4.$track_id4."\n".TY_PT_5."\n\n"; }
if (zen_not_null($track_id5)) { $notify_comments .= "\n\n".TY_PT_1.' '.CARRIER_NAME_5."\n".TY_PT_2.' '.$track_id5."\n\n<br/><br/> <a href=".CARRIER_LINK_5.$track_id5.">".TY_PT_3."</a>"."\n".TY_PT_4."\n".CARRIER_LINK_5.$track_id5."\n".TY_PT_5."\n\n"; }
// END TY TRACKER 4 -------------------------------------------------